Index: client/tests/client/dom/DocumentTest.dart |
diff --git a/client/tests/client/dom/DocumentTest.dart b/client/tests/client/dom/DocumentTest.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2e4397e3e5fa3282d20ba46b9d93a50660d5c13f |
--- /dev/null |
+++ b/client/tests/client/dom/DocumentTest.dart |
@@ -0,0 +1,17 @@ |
+#library('DocumentTest'); |
+#import('../../../testing/unittest/unittest.dart'); |
+#import('dart:dom'); |
+ |
+main() { |
+ forLayoutTests(); |
+ test('CreateElement', () { |
+ // FIXME: nifty way crashes, do it boring way. |
+ Expect.isTrue(document.createElement('span') is HTMLElement); |
+ Expect.isTrue(document.createElement('div') is HTMLDivElement); |
+ Expect.isTrue(document.createElement('a') is HTMLAnchorElement); |
+ Expect.isTrue(document.createElement('bad_name') is HTMLUnknownElement); |
+ }); |
+ test('DocumentURL', () { |
+ Expect.isTrue(document.URL.endsWith('DocumentTest.html')); |
+ }); |
+} |