Skip to content

Commit

Permalink
tweaks to make partials work
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Dec 18, 2012
1 parent 8d0b584 commit f8f8205
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions idlharness.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/*jshint evil:true, laxbreak:true */
/*
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
Expand All @@ -15,7 +14,7 @@ policies and contribution forms [3].
*
* <script src=/resources/testharness.js></script>
* <script src=/resources/testharnessreport.js></script>
* <script src=/resources/WebIDLParser.js></script>
* <script src=/resources/webidl2.js></script>
* <script src=/resources/idlharness.js></script>
*
* Then you'll need some type of IDLs. Here's some script that can be run on a
Expand Down Expand Up @@ -259,7 +258,7 @@ IdlArray.prototype.internal_add_idls = function(parsed_idls)
*/
parsed_idls.forEach(function(parsed_idl)
{
if (parsed_idl.type == "partialinterface")
if (parsed_idl.type == "interface" && parsed_idl.partial)
{
this.partials.push(parsed_idl);
return;
Expand Down Expand Up @@ -300,6 +299,10 @@ IdlArray.prototype.internal_add_idls = function(parsed_idls)
// TODO
break;

case "callback":
// TODO
break;

case "enum":
// TODO
break;
Expand Down

0 comments on commit f8f8205

Please sign in to comment.