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 import 'dart:html'; | 5 import 'dart:html'; |
6 import 'dart:typed_data' show ByteBuffer, Int32List; | 6 import 'dart:typed_data' show ByteBuffer, Int32List; |
7 import 'dart:indexed_db' show IdbFactory, KeyRange; | 7 import 'dart:indexed_db' show IdbFactory, KeyRange; |
8 import 'dart:js'; | 8 import 'dart:js'; |
9 | 9 |
10 import 'package:minitest/minitest.dart'; | 10 import 'package:expect/minitest.dart'; |
11 | 11 |
12 _injectJs() { | 12 _injectJs() { |
13 final script = new ScriptElement(); | 13 final script = new ScriptElement(); |
14 script.type = 'text/javascript'; | 14 script.type = 'text/javascript'; |
15 script.innerHtml = r""" | 15 script.innerHtml = r""" |
16 var x = 42; | 16 var x = 42; |
17 | 17 |
18 var _x = 123; | 18 var _x = 123; |
19 | 19 |
20 var myArray = ["value1"]; | 20 var myArray = ["value1"]; |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), | 998 // expect(context.callMethod('isPropertyInstanceOf', ['o', listType]), |
999 // isTrue); | 999 // isTrue); |
1000 context.deleteProperty('o'); | 1000 context.deleteProperty('o'); |
1001 } | 1001 } |
1002 }); | 1002 }); |
1003 | 1003 |
1004 }); | 1004 }); |
1005 }); | 1005 }); |
1006 | 1006 |
1007 } | 1007 } |
OLD | NEW |