@@ -783,6 +783,10 @@ IdlArray.prototype.merge_partials = function()
783
783
}
784
784
testedPartials . set ( parsed_idl . name , partialTestCount ) ;
785
785
786
+ if ( ! self . shouldRunSubTest ( partialTestName ) ) {
787
+ return ;
788
+ }
789
+
786
790
if ( ! parsed_idl . untested ) {
787
791
test ( function ( ) {
788
792
assert_true ( originalExists , `Original ${ parsed_idl . type } should be defined` ) ;
@@ -871,14 +875,15 @@ IdlArray.prototype.merge_mixins = function()
871
875
{
872
876
const lhs = parsed_idl . target ;
873
877
const rhs = parsed_idl . includes ;
878
+ const testName = lhs + " includes " + rhs + ": member names are unique" ;
874
879
875
880
var errStr = lhs + " includes " + rhs + ", but " ;
876
881
if ( ! ( lhs in this . members ) ) throw errStr + lhs + " is undefined." ;
877
882
if ( ! ( this . members [ lhs ] instanceof IdlInterface ) ) throw errStr + lhs + " is not an interface." ;
878
883
if ( ! ( rhs in this . members ) ) throw errStr + rhs + " is undefined." ;
879
884
if ( ! ( this . members [ rhs ] instanceof IdlInterface ) ) throw errStr + rhs + " is not an interface." ;
880
885
881
- if ( this . members [ rhs ] . members . length ) {
886
+ if ( this . members [ rhs ] . members . length && self . shouldRunSubTest ( testName ) ) {
882
887
test ( function ( ) {
883
888
var clash = this . members [ rhs ] . members . find ( function ( member ) {
884
889
return this . members [ lhs ] . members . find ( function ( m ) {
@@ -892,7 +897,7 @@ IdlArray.prototype.merge_mixins = function()
892
897
this . members [ lhs ] . members . push ( new IdlInterfaceMember ( member ) ) ;
893
898
} . bind ( this ) ) ;
894
899
assert_true ( ! clash , "member " + ( clash && clash . name ) + " is unique" ) ;
895
- } . bind ( this ) , lhs + " includes " + rhs + ": member names are unique" ) ;
900
+ } . bind ( this ) , testName ) ;
896
901
}
897
902
}
898
903
this . includes = [ ] ;
0 commit comments