Browse Source

added Issue2857 for unit tests with basic tests for HTMLElement

mockey 11 years ago
parent
commit
ee53d9d86e
1 changed files with 14 additions and 0 deletions
  1. 14 0
      tests/unit/issues/Issue2857.hx

+ 14 - 0
tests/unit/issues/Issue2857.hx

@@ -0,0 +1,14 @@
+package unit.issues;
+
+class Issue2857 extends unit.Test {
+#if js
+	function testElement() {
+		var vid = js.Browser.document.createVideoElement();
+		t(Std.is(vid, js.html.VideoElement));
+		t(Std.is(vid, js.html.Element));
+		f(Std.is(vid, haxe.Http));
+		f(Std.is(vid, js.html.ArrayBuffer));
+		eq(Type.getClass(vid), js.html.VideoElement);
+	}
+#end
+}