Index: client/tests/client/dom/HTMLAudioElementTest.dart |
diff --git a/client/tests/client/dom/HTMLAudioElementTest.dart b/client/tests/client/dom/HTMLAudioElementTest.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1b59d878077f04b8475c2465e234c1ca8f57d782 |
--- /dev/null |
+++ b/client/tests/client/dom/HTMLAudioElementTest.dart |
@@ -0,0 +1,21 @@ |
+#library('HTMLAudioElementTest'); |
+#import('../../../testing/unittest/unittest.dart'); |
+#import('dart:dom'); |
+ |
+main() { |
+ |
+ forLayoutTests(); |
+ |
+ test('constructorTest1', () { |
+ var audio = new HTMLAudioElement(); // would be new Audio() in JS |
+ Expect.isTrue(audio != null); |
+ Expect.isTrue(audio is HTMLAudioElement); |
+ }); |
+ |
+ test('constructorTest2', () { |
+ var audio = new HTMLAudioElement('hahaURL'); |
+ Expect.isTrue(audio != null); |
+ Expect.isTrue(audio is HTMLAudioElement); |
+ Expect.isTrue(audio.src.indexOf('hahaURL') >= 0); |
+ }); |
+} |