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

Unified Diff: tests/dom/htmlaudioelement_test.dart

Issue 10222026: Migrate dom tests to dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase & address comments. Created 8 years, 8 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: tests/dom/htmlaudioelement_test.dart
diff --git a/tests/dom/htmlaudioelement_test.dart b/tests/dom/htmlaudioelement_test.dart
index 72c1b5d960ebc2aeb29d1032ca0317405dc75be5..538877d15bca10d7ce47d0c3183aed7c77cbd996 100644
--- a/tests/dom/htmlaudioelement_test.dart
+++ b/tests/dom/htmlaudioelement_test.dart
@@ -1,22 +1,22 @@
-#library('HTMLAudioElementTest');
+#library('AudioElementTest');
#import('../../lib/unittest/unittest.dart');
-#import('../../lib/unittest/dom_config.dart');
-#import('dart:dom');
+#import('../../lib/unittest/html_config.dart');
+#import('dart:html');
main() {
- useDomConfiguration();
+ useHtmlConfiguration();
test('constructorTest1', () {
- var audio = new HTMLAudioElement(); // would be new Audio() in JS
+ var audio = new AudioElement(); // would be new Audio() in JS
Expect.isTrue(audio != null);
- Expect.isTrue(audio is HTMLAudioElement);
+ Expect.isTrue(audio is AudioElement);
});
test('constructorTest2', () {
- var audio = new HTMLAudioElement('hahaURL');
+ var audio = new AudioElement('hahaURL');
Expect.isTrue(audio != null);
- Expect.isTrue(audio is HTMLAudioElement);
+ Expect.isTrue(audio is AudioElement);
Expect.isTrue(audio.src.indexOf('hahaURL') >= 0);
});
}

Powered by Google App Engine
This is Rietveld 408576698