Index: runtime/observatory/tests/observatory_ui/helpers/webcomponents.dart |
diff --git a/tests/compiler/dart2js/serialization/analysis2_test.dart b/runtime/observatory/tests/observatory_ui/helpers/webcomponents.dart |
similarity index 51% |
copy from tests/compiler/dart2js/serialization/analysis2_test.dart |
copy to runtime/observatory/tests/observatory_ui/helpers/webcomponents.dart |
index b13a6a366532d50714c23712dc1c2e4b66fdd4e3..c0c4f87cf1211eb1440c74711230450604b8d83a 100644 |
--- a/tests/compiler/dart2js/serialization/analysis2_test.dart |
+++ b/runtime/observatory/tests/observatory_ui/helpers/webcomponents.dart |
@@ -1,12 +1,11 @@ |
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import 'dart:html'; |
-library dart2js.serialization.analysis2_test; |
- |
-import 'analysis_test_helper.dart' as test; |
-import 'test_data.dart'; |
- |
-main() { |
- test.main(['${TESTS.length ~/ 2}']); |
+loadWebComponents() async { |
+ ScriptElement shim = new ScriptElement() |
+ ..src = 'packages/web_components/webcomponents.js'; |
+ document.head.children.add(shim); |
+ await shim.onLoad.first; |
} |