Index: client/tests/client/html/AudioElementTest.dart |
diff --git a/client/tests/client/html/AudioElementTest.dart b/client/tests/client/html/AudioElementTest.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..de2999679601c5037565ca5a115abe131671efa6 |
--- /dev/null |
+++ b/client/tests/client/html/AudioElementTest.dart |
@@ -0,0 +1,21 @@ |
+#library('AudioElementTest'); |
+#import('../../../testing/unittest/unittest_html.dart'); |
+#import('dart:html'); |
+ |
+main() { |
+ |
+ forLayoutTests(); |
+ |
+ test('constructorTest1', () { |
+ var audio = new AudioElement(); |
+ Expect.isTrue(audio != null); |
+ Expect.isTrue(audio is AudioElement); |
+ }); |
+ |
+ test('constructorTest2', () { |
+ var audio = new AudioElement('hahaURL'); |
+ Expect.isTrue(audio != null); |
+ Expect.isTrue(audio is AudioElement); |
+ Expect.isTrue(audio.src.indexOf('hahaURL') >= 0); |
+ }); |
+} |