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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/audioelement_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/audioelement_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/audioelement_test.dart b/pkg/dev_compiler/test/codegen/lib/html/audioelement_test.dart
index 9957ff703e2fadacc2272e733b66be950d2f8d29..188932ebe5cf2f29adcbac88ae6f4989589a2afe 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/audioelement_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/audioelement_test.dart
@@ -1,11 +1,8 @@
-library AudioElementTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
import 'dart:html';
-main() {
- useHtmlConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
test('constructorTest1', () {
var audio = new AudioElement();
expect(audio, isNotNull);
@@ -16,7 +13,7 @@ main() {
var audio = new AudioElement('IntentionallyMissingFileURL');
expect(audio, isNotNull);
expect(audio is AudioElement, isTrue);
- expect(audio.src, contains('IntentionallyMissingFileURL'));
+ expect(audio.src.contains('IntentionallyMissingFileURL'), isTrue);
});
test('canPlayTypeTest', () {

Powered by Google App Engine
This is Rietveld 408576698