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

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

Issue 2419863002: Remove uses of unittest in the HTML tests where possible. (Closed)
Patch Set: Remove TODO. 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/track_element_constructor_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/track_element_constructor_test.dart b/pkg/dev_compiler/test/codegen/lib/html/track_element_constructor_test.dart
index 883dabdbf862565c14a47785fcae23b243761d2f..b2077ee163d14255a34168e1cade339f679a1eb0 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/track_element_constructor_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/track_element_constructor_test.dart
@@ -11,19 +11,18 @@
import 'dart:html';
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
+import 'package:expect/minitest.dart';
void main() {
- useHtmlConfiguration();
test('', () {
if (!TrackElement.supported) return;
document.body.append(new TrackElement()..defaultValue = true);
- if (!document.query('track').defaultValue) {
+ var trackElement = document.query('track') as TrackElement;
+ if (!trackElement.defaultValue) {
throw 'Expected default value to be true';
}
- document.query('track').defaultValue = false;
- if (document.query('track').defaultValue) {
+ trackElement.defaultValue = false;
+ if (trackElement.defaultValue) {
throw 'Expected default value to be false';
}
});

Powered by Google App Engine
This is Rietveld 408576698