@@ -136,38 +136,38 @@ describe("Tests for runtime binding generator", function () {
136
136
137
137
__log ( "TEST: When_generating_a_class_that_implements_interfaces_typescript" ) ;
138
138
139
- var MyObject = ( function ( _super ) {
140
- __extends ( MyObject , _super ) ;
141
- function MyObject ( ) {
139
+ var MyTSTranspiledObjectThatExtendsInterfaces = ( function ( _super ) {
140
+ __extends ( MyTSTranspiledObjectThatExtendsInterfaces , _super ) ;
141
+ function MyTSTranspiledObjectThatExtendsInterfaces ( ) {
142
142
_super . apply ( this , arguments ) ;
143
143
return global . __native ( this ) ;
144
144
}
145
- MyObject . prototype . greet = function ( greeting ) {
145
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . greet = function ( greeting ) {
146
146
return "Hello, " + greeting ;
147
147
} ;
148
- MyObject . prototype . unpack = function ( ) {
148
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . unpack = function ( ) {
149
149
} ;
150
- MyObject . prototype . properties = function ( ) {
150
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . properties = function ( ) {
151
151
} ;
152
- MyObject . prototype . toString = function ( ) {
152
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . toString = function ( ) {
153
153
} ;
154
- MyObject . prototype . formatTo = function ( ) {
154
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . formatTo = function ( ) {
155
155
} ;
156
- MyObject . prototype . update = function ( ) {
156
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . update = function ( ) {
157
157
} ;
158
- MyObject . prototype . addPropertyChangeListener = function ( ) {
158
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . addPropertyChangeListener = function ( ) {
159
159
} ;
160
- MyObject . prototype . pack = function ( ) {
160
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . pack = function ( ) {
161
161
} ;
162
- MyObject . prototype . removePropertyChangeListener = function ( ) {
162
+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . removePropertyChangeListener = function ( ) {
163
163
} ;
164
- MyObject = __decorate ( [
164
+ MyTSTranspiledObjectThatExtendsInterfaces = __decorate ( [
165
165
Interfaces ( [ java . util . jar . Pack200 . Unpacker , java . util . Formattable , java . util . Observer , java . util . jar . Pack200 . Packer ] )
166
- ] , MyObject ) ;
167
- return MyObject ;
166
+ ] , MyTSTranspiledObjectThatExtendsInterfaces ) ;
167
+ return MyTSTranspiledObjectThatExtendsInterfaces ;
168
168
} ( java . lang . Object ) ) ;
169
169
170
- var myObject = new MyObject ( ) ;
170
+ var myObject = new MyTSTranspiledObjectThatExtendsInterfaces ( ) ;
171
171
172
172
var isInstanceOf = myObject instanceof java . lang . Object ;
173
173
@@ -190,89 +190,5 @@ describe("Tests for runtime binding generator", function () {
190
190
expect ( expectedInterfaces . indexOf ( interfaceName ) ) . not . toBe ( - 1 ) ;
191
191
}
192
192
}
193
- } ) ;
194
-
195
- it ( "Test_correct_behavior_when_two_or_more_classes_implement_the_same_interfaces" , function ( ) {
196
-
197
- __log ( "TEST: Test_correct_behavior_when_two_or_more_classes_implement_the_same_interfaces" ) ;
198
-
199
- var resultFromMyObject1UnpackCall = "" ,
200
- resultFromMyObject2UnpackCall = "" ;
201
-
202
- var MyObject1 = ( function ( _super ) {
203
- __extends ( MyObject1 , _super ) ;
204
- function MyObject1 ( ) {
205
- _super . apply ( this , arguments ) ;
206
- return global . __native ( this ) ;
207
- }
208
- MyObject1 . prototype . greet = function ( greeting ) {
209
- return "Hello, " + greeting ;
210
- } ;
211
- MyObject1 . prototype . unpack = function ( ) {
212
- resultFromMyObject1UnpackCall = "Object1" ;
213
- __log ( "From MyObject1" ) ;
214
- } ;
215
- MyObject1 . prototype . properties = function ( ) {
216
- } ;
217
- MyObject1 . prototype . toString = function ( ) {
218
- } ;
219
- MyObject1 . prototype . formatTo = function ( ) {
220
- } ;
221
- MyObject1 . prototype . update = function ( ) {
222
- } ;
223
- MyObject1 . prototype . addPropertyChangeListener = function ( ) {
224
- } ;
225
- MyObject1 . prototype . pack = function ( ) {
226
- } ;
227
- MyObject1 . prototype . removePropertyChangeListener = function ( ) {
228
- } ;
229
- MyObject1 = __decorate ( [
230
- Interfaces ( [ java . util . jar . Pack200 . Unpacker , java . util . Formattable , java . util . Observer , java . util . jar . Pack200 . Packer ] )
231
- ] , MyObject1 ) ;
232
- return MyObject1 ;
233
- } ( java . lang . Object ) ) ;
234
-
235
- var MyObject2 = ( function ( _super ) {
236
- __extends ( MyObject2 , _super ) ;
237
- function MyObject2 ( ) {
238
- _super . apply ( this , arguments ) ;
239
- return global . __native ( this ) ;
240
- }
241
- MyObject2 . prototype . greet = function ( greeting ) {
242
- return "Hello, " + greeting ;
243
- } ;
244
- MyObject2 . prototype . unpack = function ( ) {
245
- resultFromMyObject2UnpackCall = "Object2" ;
246
- __log ( "From MyObject2" ) ;
247
- } ;
248
- MyObject2 . prototype . properties = function ( ) {
249
- } ;
250
- MyObject2 . prototype . toString = function ( ) {
251
- } ;
252
- MyObject2 . prototype . formatTo = function ( ) {
253
- } ;
254
- MyObject2 . prototype . update = function ( ) {
255
- } ;
256
- MyObject2 . prototype . addPropertyChangeListener = function ( ) {
257
- } ;
258
- MyObject2 . prototype . pack = function ( ) {
259
- } ;
260
- MyObject2 . prototype . removePropertyChangeListener = function ( ) {
261
- } ;
262
- MyObject2 = __decorate ( [
263
- Interfaces ( [ java . util . jar . Pack200 . Unpacker , java . util . Formattable , java . util . Observer , java . util . jar . Pack200 . Packer ] )
264
- ] , MyObject2 ) ;
265
- return MyObject2 ;
266
- } ( java . lang . Object ) ) ;
267
-
268
-
269
- var myObj1 = new MyObject1 ( ) ;
270
- myObj1 . unpack ( ) ;
271
-
272
- var myObj2 = new MyObject2 ( ) ;
273
- myObj2 . unpack ( ) ;
274
-
275
- expect ( resultFromMyObject1UnpackCall ) . toBe ( "Object1" ) ;
276
- expect ( resultFromMyObject2UnpackCall ) . toBe ( "Object2" ) ;
277
193
} ) ;
278
194
} ) ;
0 commit comments