@@ -197,7 +197,9 @@ describe(module.id, function () {
197197
198198 if ( ! isSimulator ) {
199199 it ( "Throwing constructor" , function ( ) {
200- expect ( ( ) => TNSBaseInterface . alloc ( ) . initThrowingException ( ) ) . toThrowError ( "Custom Reason" ) ;
200+ for ( var i = 0 ; i < 20 ; i ++ ) {
201+ expect ( ( ) => TNSBaseInterface . alloc ( ) . initThrowingException ( ) ) . toThrowError ( "Custom Reason" ) ;
202+ }
201203 } ) ;
202204 }
203205
@@ -663,12 +665,12 @@ describe(module.id, function () {
663665 get isEqual ( ) {
664666 }
665667 } ) ) . toThrowError ( / C a n n o t o v e r r i d e n a t i v e m e t h o d " i s E q u a l " w i t h a p r o p e r t y , d e f i n e i t a s a J S f u n c t i o n i n s t e a d . \( e v a l u a t i n g ' N S O b j e c t .e x t e n d \( { [ ^ $ ] * } \) ' \) / m) ;
666-
668+
667669 expect ( ( ) => NSObject . extend ( {
668670 isEqual : true
669671 } ) ) . toThrowError ( / t r u e c a n n o t o v e r r i d e n a t i v e m e t h o d " i s E q u a l " . \( e v a l u a t i n g ' N S O b j e c t .e x t e n d \( { [ ^ $ ] * } \) ' \) / m) ;
670672 } ) ;
671-
673+
672674 it ( 'ConstructorOverrides: prototype' , function ( ) {
673675 var JSDerivedInterface = TNSDerivedInterface . extend ( {
674676 initBaseProtocolMethod1 : function ( ) {
@@ -1645,10 +1647,10 @@ describe(module.id, function () {
16451647 } ) ) . toThrowError ( 'Property "derivedImplementedOptionalProperty" requires a setter function.' ) ;
16461648 expect ( ( ) => TNSIDerivedInterface . extend ( {
16471649 derivedImplementedOptionalProperty : function ( ) {
1648- }
1650+ }
16491651 } ) ) . toThrowError ( / f u n c t i o n c a n n o t o v e r r i d e n a t i v e p r o p e r t y " d e r i v e d I m p l e m e n t e d O p t i o n a l P r o p e r t y " , d e f i n e i t a s a J S p r o p e r t y i n s t e a d . \( e v a l u a t i n g ' T N S I D e r i v e d I n t e r f a c e .e x t e n d \( { [ ^ $ ] * } \) ' \) / m) ;
16501652 } ) ;
1651-
1653+
16521654 it ( 'ConstructorOverrideAndVirtualCall: prototype' , function ( ) {
16531655 var JSObject = TNSIConstructorVirtualCalls . extend ( {
16541656 initWithXAndY : function initWithXAndY ( x , y ) {
@@ -2110,7 +2112,7 @@ describe(module.id, function () {
21102112 describe ( "instanceof" , function ( ) {
21112113 it ( "TNSIBaseProtocolImpl_Private returned as TNSIBaseInterface*" , function ( ) {
21122114 var inst = TNSPrivateInterfaceResults . instanceFromUnrelatedPrivateType ( ) ;
2113-
2115+
21142116 // Actual class is unrelated and doesn't inherit TNSIBaseInterface, but in order to be
21152117 // able to call methods from the puclicly declared type we are creating a constructor
21162118 // that inheriting from this public interface.
@@ -2129,14 +2131,14 @@ describe(module.id, function () {
21292131
21302132 it ( "TNSIBaseInterface_Private returned as id<TNSIBaseProtocol, TNSIDerivedProtocol>" , function ( ) {
21312133 var inst = TNSPrivateInterfaceResults . instanceFromPrivateTypeImplementingTwoProtocols ( ) ;
2132-
2134+
21332135 expect ( inst instanceof TNSIBaseInterface ) . toBe ( true , "Actual class inherits from TNSIBaseInterface" ) ;
21342136 expect ( inst . constructor . __constructorDescription ) . toMatch ( / T N S I B a s e I n t e r f a c e .* U n k n o w n .* T N S I B a s e I n t e r f a c e _ P r i v a t e .* p r o t o c o l s .* T N S I D e r i v e d P r o t o c o l / ) ;
21352137 expect ( inst . constructor . __constructorDescription ) . not . toMatch ( / T N S I B a s e P r o t o c o l / , "TNSIBaseProtocol must have been stripped" ) ;
21362138 expect ( inst . superclass ) . toBe ( TNSIBaseInterface , "Actual class inherits from TNSIBaseInterface" ) ;
21372139 expect ( inst . constructor ) . not . toBe ( global . TNSIBaseInterface , "The constructor which is wrapping an unknown interface should be different than the pure one" ) ;
21382140 } ) ;
2139-
2141+
21402142 it ( "TNSIBaseInterface returned as id<TNSIBaseProtocol>" , function ( ) {
21412143 var inst = TNSPrivateInterfaceResults . instanceFromPublicTypeImplementingProtocol ( ) ;
21422144
0 commit comments