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; |
11 import 'dart:js'; | 11 import 'dart:js'; |
12 | 12 |
13 import '../../pkg/unittest/lib/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
14 import '../../pkg/unittest/lib/html_config.dart'; | 14 import 'package:unittest/html_config.dart'; |
15 | 15 |
16 _injectJs() { | 16 _injectJs() { |
17 final script = new ScriptElement(); | 17 final script = new ScriptElement(); |
18 script.type = 'text/javascript'; | 18 script.type = 'text/javascript'; |
19 script.innerHtml = r""" | 19 script.innerHtml = r""" |
20 var x = 42; | 20 var x = 42; |
21 | 21 |
22 var _x = 123; | 22 var _x = 123; |
23 | 23 |
24 var myArray = ["value1"]; | 24 var myArray = ["value1"]; |
(...skipping 980 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 |