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'; |
} |
}); |