| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library jsTest; | 5 library jsTest; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:typed_data' show ByteBuffer, Int32List; | 9 import 'dart:typed_data' show ByteBuffer, Int32List; |
| 10 import 'dart:indexed_db' show IdbFactory, KeyRange; | 10 import 'dart:indexed_db' show IdbFactory, KeyRange; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 context['obj'] = obj; | 288 context['obj'] = obj; |
| 289 expect(context['obj'], same(obj)); | 289 expect(context['obj'], same(obj)); |
| 290 context.deleteProperty('obj'); | 290 context.deleteProperty('obj'); |
| 291 }); | 291 }); |
| 292 | 292 |
| 293 group('caching', () { | 293 group('caching', () { |
| 294 test('JS->Dart', () { | 294 test('JS->Dart', () { |
| 295 // Test that we are not pulling cached proxy from the prototype | 295 // Test that we are not pulling cached proxy from the prototype |
| 296 // when asking for a proxy for the object. | 296 // when asking for a proxy for the object. |
| 297 final proto = context['someProto']; | 297 final proto = context['someProto']; |
| 298 expect(proto['role'], same('proto')); | 298 expect(proto['role'], equals('proto')); |
| 299 final obj = context['someObject']; | 299 final obj = context['someObject']; |
| 300 expect(obj['role'], same('object')); | 300 expect(obj['role'], equals('object')); |
| 301 }); | 301 }); |
| 302 }); | 302 }); |
| 303 | 303 |
| 304 }); | 304 }); |
| 305 | 305 |
| 306 group('context', () { | 306 group('context', () { |
| 307 | 307 |
| 308 test('read global field', () { | 308 test('read global field', () { |
| 309 expect(context['x'], equals(42)); | 309 expect(context['x'], equals(42)); |
| 310 expect(context['y'], isNull); | 310 expect(context['y'], isNull); |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), | 1005 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), |
| 1006 // isTrue); | 1006 // isTrue); |
| 1007 context.deleteProperty('o'); | 1007 context.deleteProperty('o'); |
| 1008 } | 1008 } |
| 1009 }); | 1009 }); |
| 1010 | 1010 |
| 1011 }); | 1011 }); |
| 1012 }); | 1012 }); |
| 1013 | 1013 |
| 1014 } | 1014 } |
| OLD | NEW |