Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: runtime/observatory/tests/observatory_ui/helpers/webcomponents.dart

Issue 2119733003: Wrapping leaf nodes in non polymer elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted error-ref tag Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698