@@ -40,7 +40,7 @@ describe("Tests ", function () {
40
40
button1 . setLabel ( "first button" ) ;
41
41
42
42
__log ( "TEST: Creating MyButton2 class" ) ;
43
- var MyButton2 = new com . tns . tests . Button1 . extend ( "MyButton" , {
43
+ var MyButton2 = com . tns . tests . Button1 . extend ( "MyButton" , {
44
44
toString : function ( ) {
45
45
return "button2" ;
46
46
} } ) ;
@@ -79,7 +79,7 @@ describe("Tests ", function () {
79
79
button1 . setLabel ( "first button" ) ;
80
80
81
81
__log ( "TEST: Creating MyButton2 class" ) ;
82
- var MyButton2 = new com . tns . tests . Button1 . extend ( {
82
+ var MyButton2 = com . tns . tests . Button1 . extend ( {
83
83
toString : function ( ) {
84
84
return "button2" ;
85
85
} } ) ;
@@ -136,7 +136,7 @@ describe("Tests ", function () {
136
136
137
137
__log ( "TEST: When_implementing_an_interface_with_new__the_overrides_should_work" ) ;
138
138
139
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton60" , {
139
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton60" , {
140
140
toString : function ( ) {
141
141
return "button1" ;
142
142
}
@@ -158,7 +158,7 @@ describe("Tests ", function () {
158
158
159
159
__log ( "TEST: When_calling_instanceof_on_field_result_it_should_work" ) ;
160
160
161
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton81" , {
161
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton81" , {
162
162
toString : function ( ) {
163
163
return "button1" ;
164
164
} ,
@@ -176,7 +176,7 @@ describe("Tests ", function () {
176
176
177
177
__log ( "TEST: When_calling_instanceof_on_method_result_it_should_work" ) ;
178
178
179
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton98" , {
179
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton98" , {
180
180
toString : function ( ) {
181
181
return "button1" ;
182
182
} ,
@@ -196,7 +196,7 @@ describe("Tests ", function () {
196
196
197
197
var isInstanceOf ;
198
198
199
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton115" , {
199
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton115" , {
200
200
toString : function ( ) {
201
201
return "button1" ;
202
202
} ,
@@ -453,7 +453,7 @@ describe("Tests ", function () {
453
453
454
454
__log ( "TEST: When_implementing_an_interface_with_new__the_overrides_should_work" ) ;
455
455
456
- var MyButton = new com . tns . tests . Button1 . extend ( {
456
+ var MyButton = com . tns . tests . Button1 . extend ( {
457
457
toString : function ( ) {
458
458
return "button1" ;
459
459
}
@@ -477,7 +477,7 @@ describe("Tests ", function () {
477
477
478
478
__log ( "TEST: When_a_java_method_returns_object_that_needs_js_instance__it_should_create_the_instance" ) ;
479
479
480
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton381" , {
480
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton381" , {
481
481
toString : function ( ) {
482
482
return "button1" ;
483
483
}
@@ -501,7 +501,7 @@ describe("Tests ", function () {
501
501
502
502
__log ( "TEST: When_a_java_method_returns_object_that_needs_js_instance__it_should_create_the_instance_according_to_the_actual_return_type" ) ;
503
503
504
- var Button = new com . tns . tests . Button1 . extend ( "MyButton397" , {
504
+ var Button = com . tns . tests . Button1 . extend ( "MyButton397" , {
505
505
toString : function ( ) {
506
506
return "button1" ;
507
507
}
@@ -518,7 +518,7 @@ describe("Tests ", function () {
518
518
519
519
__log ( "TEST: When_a_java_field_returns_object_that_needs_js_instance__it_should_create_the_instance_according_to_the_actual_return_type" ) ;
520
520
521
- var Button = new com . tns . tests . Button1 . extend ( "MyButton413" , {
521
+ var Button = com . tns . tests . Button1 . extend ( "MyButton413" , {
522
522
toString : function ( ) {
523
523
return "button1" ;
524
524
}
@@ -536,7 +536,7 @@ describe("Tests ", function () {
536
536
__log ( "TEST: When_a_java_argument_is_passed_to_js_that_needs_js_instance__it_should_create_the_instance_according_to_the_actual_return_type" ) ;
537
537
538
538
var name = "" ;
539
- var Button = new com . tns . tests . Button1 . extend ( "MyButton418" , {
539
+ var Button = com . tns . tests . Button1 . extend ( "MyButton418" , {
540
540
toString : function ( ) {
541
541
return "button1" ;
542
542
} ,
@@ -557,7 +557,7 @@ describe("Tests ", function () {
557
557
558
558
__log ( "TEST: When_a_java_object_is_returned_from_indexer_that_needs_js_instance__it_should_create_the_instance_according_to_the_actual_return_type" ) ;
559
559
560
- var Button = new com . tns . tests . Button1 . extend ( "MyButton450" , {
560
+ var Button = com . tns . tests . Button1 . extend ( "MyButton450" , {
561
561
toString : function ( ) {
562
562
return "button1" ;
563
563
}
@@ -686,7 +686,7 @@ describe("Tests ", function () {
686
686
var ctorCalled = false ;
687
687
var isConstructor = false ;
688
688
689
- var MyButton = new com . tns . tests . Button1 . extend ( "MyButton574" , {
689
+ var MyButton = com . tns . tests . Button1 . extend ( "MyButton574" , {
690
690
init : function ( ) {
691
691
ctorCalled = true ;
692
692
isConstructor = arguments [ arguments . length - 1 ] ;
@@ -1568,7 +1568,7 @@ describe("Tests ", function () {
1568
1568
1569
1569
var exceptionCaught = false ;
1570
1570
1571
- var Button1 = new com . tns . tests . Button1 . extend ( "Button1" , implObj ) ;
1571
+ var Button1 = com . tns . tests . Button1 . extend ( "Button1" , implObj ) ;
1572
1572
1573
1573
try
1574
1574
{
0 commit comments