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

Unified Diff: client/tests/client/dom/HTMLAudioElementTest.dart

Issue 9428050: Automatically generate most constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add test Created 8 years, 10 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
« no previous file with comments | « client/tests/client/client.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
+}
« no previous file with comments | « client/tests/client/client.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698