OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:html'; |
4 | 5 |
5 library dart2js.serialization.analysis2_test; | 6 loadWebComponents() async { |
6 | 7 ScriptElement shim = new ScriptElement() |
7 import 'analysis_test_helper.dart' as test; | 8 ..src = 'packages/web_components/webcomponents.js'; |
8 import 'test_data.dart'; | 9 document.head.children.add(shim); |
9 | 10 await shim.onLoad.first; |
10 main() { | |
11 test.main(['${TESTS.length ~/ 2}']); | |
12 } | 11 } |
OLD | NEW |