Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-firstElementChild.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-firstElementChild.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-firstElementChild.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0fc65e6e22ca71755ed1e12c7ee1625121c5c59b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-firstElementChild.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE HTML> |
+<meta charset=utf-8> |
+<title>firstElementChild</title> |
+<script src="../../../../resources/testharness.js"></script> |
+<script src="../../../../resources/testharnessreport.js"></script> |
+<h1>Test of firstElementChild</h1> |
+<div id="log"></div> |
+<p id="parentEl">The result of this test is |
+<span id="first_element_child" style="font-weight:bold;">logged above.</span></p> |
+<script> |
+test(function() { |
+ var parentEl = document.getElementById("parentEl"); |
+ var fec = parentEl.firstElementChild; |
+ assert_true(!!fec) |
+ assert_equals(fec.nodeType, 1) |
+ assert_equals(fec.getAttribute("id"), "first_element_child") |
+}) |
+</script> |