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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 years, 2 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: pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart b/pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart
index ade3833ecd1abab46ad57fbad6c05d7d26e6643e..4a00f3ce56afe44c4d8d480cdec1a12703ab4e22 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/css_rule_list_test.dart
@@ -1,17 +1,13 @@
-library CssRuleListTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
+import 'package:minitest/minitest.dart';
+main() {
var isCssRuleList =
predicate((x) => x is List<CssRule>, 'is a List<CssRule>');
- useHtmlConfiguration();
-
test("ClientRectList test", () {
- var sheet = document.styleSheets[0];
+ var sheet = document.styleSheets[0] as CssStyleSheet;
List<CssRule> rulesList = sheet.cssRules;
expect(rulesList, isCssRuleList);
});

Powered by Google App Engine
This is Rietveld 408576698