-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Import WPT test for firstElementChild namespace in xhtml
- Loading branch information
1 parent
e3347c5
commit 0e2b9de
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...s/LibWeb/Text/expected/wpt-import/dom/nodes/Element-firstElementChild-namespace-xhtml.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Harness status: OK | ||
|
||
Found 1 tests | ||
|
||
1 Pass | ||
Pass firstElementChild with namespaces |
28 changes: 28 additions & 0 deletions
28
Tests/LibWeb/Text/input/wpt-import/dom/nodes/Element-firstElementChild-namespace-xhtml.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:pickle="http://ns.example.org/pickle"> | ||
<head> | ||
<title>firstElementChild with namespaces</title> | ||
<script src="../../resources/testharness.js"></script> | ||
<script src="../../resources/testharnessreport.js"></script> | ||
</head> | ||
<body> | ||
<h1>Test of firstElementChild with namespaces</h1> | ||
<div id="parentEl"> | ||
<pickle:dill id="first_element_child"/> | ||
</div> | ||
<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><![CDATA[ | ||
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") | ||
assert_equals(fec.localName, "dill") | ||
}) | ||
]]></script> | ||
</body> | ||
</html> |