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

Unified Diff: packages/web_components/e2e_test/html_imports/test/basic_test.dart

Issue 2312183003: Removed Polymer from Observatory deps (Closed)
Patch Set: Created 4 years, 3 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: packages/web_components/e2e_test/html_imports/test/basic_test.dart
diff --git a/packages/web_components/e2e_test/html_imports/test/basic_test.dart b/packages/web_components/e2e_test/html_imports/test/basic_test.dart
index 0f1aee8ae396bd8a1a43fa2f60e61477b17420a3..c03e79d89dce6a33126ccf99865b538d09b9fdce 100644
--- a/packages/web_components/e2e_test/html_imports/test/basic_test.dart
+++ b/packages/web_components/e2e_test/html_imports/test/basic_test.dart
@@ -1,24 +1,22 @@
// Copyright (c) 2015, 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.
+@TestOn('browser')
@HtmlImport('packages/html_imports/theme.html')
library e2e_test.html_imports.basic_test;
import 'dart:html';
import 'package:initialize/initialize.dart' as init;
import 'package:web_components/html_import_annotation.dart';
-import 'package:unittest/html_config.dart';
-import 'package:unittest/unittest.dart';
-
-main() {
- useHtmlConfiguration();
+import 'package:test/test.dart';
+main() async {
// Waits until all html imports are loaded.
- init.run().then((_) {
- test('text is red', () {
- var p = document.createElement('p');
- document.body.append(p);
- expect(p.getComputedStyle().color, 'rgb(255, 0, 0)');
- });
+ await init.run();
+
+ test('text is red', () {
+ var p = document.createElement('p');
+ document.body.append(p);
+ expect(p.getComputedStyle().color, 'rgb(255, 0, 0)');
});
}

Powered by Google App Engine
This is Rietveld 408576698