@@ -136,38 +136,38 @@ describe("Tests for runtime binding generator", function () {
136136
137137 __log ( "TEST: When_generating_a_class_that_implements_interfaces_typescript" ) ;
138138
139- var MyObject = ( function ( _super ) {
140- __extends ( MyObject , _super ) ;
141- function MyObject ( ) {
139+ var MyTSTranspiledObjectThatExtendsInterfaces = ( function ( _super ) {
140+ __extends ( MyTSTranspiledObjectThatExtendsInterfaces , _super ) ;
141+ function MyTSTranspiledObjectThatExtendsInterfaces ( ) {
142142 _super . apply ( this , arguments ) ;
143143 return global . __native ( this ) ;
144144 }
145- MyObject . prototype . greet = function ( greeting ) {
145+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . greet = function ( greeting ) {
146146 return "Hello, " + greeting ;
147147 } ;
148- MyObject . prototype . unpack = function ( ) {
148+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . unpack = function ( ) {
149149 } ;
150- MyObject . prototype . properties = function ( ) {
150+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . properties = function ( ) {
151151 } ;
152- MyObject . prototype . toString = function ( ) {
152+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . toString = function ( ) {
153153 } ;
154- MyObject . prototype . formatTo = function ( ) {
154+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . formatTo = function ( ) {
155155 } ;
156- MyObject . prototype . update = function ( ) {
156+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . update = function ( ) {
157157 } ;
158- MyObject . prototype . addPropertyChangeListener = function ( ) {
158+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . addPropertyChangeListener = function ( ) {
159159 } ;
160- MyObject . prototype . pack = function ( ) {
160+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . pack = function ( ) {
161161 } ;
162- MyObject . prototype . removePropertyChangeListener = function ( ) {
162+ MyTSTranspiledObjectThatExtendsInterfaces . prototype . removePropertyChangeListener = function ( ) {
163163 } ;
164- MyObject = __decorate ( [
164+ MyTSTranspiledObjectThatExtendsInterfaces = __decorate ( [
165165 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 ;
168168 } ( java . lang . Object ) ) ;
169169
170- var myObject = new MyObject ( ) ;
170+ var myObject = new MyTSTranspiledObjectThatExtendsInterfaces ( ) ;
171171
172172 var isInstanceOf = myObject instanceof java . lang . Object ;
173173
@@ -190,89 +190,5 @@ describe("Tests for runtime binding generator", function () {
190190 expect ( expectedInterfaces . indexOf ( interfaceName ) ) . not . toBe ( - 1 ) ;
191191 }
192192 }
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" ) ;
277193 } ) ;
278194} ) ;
0 commit comments