forked from servo/servo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86c83f7
commit 4b0da08
Showing
6 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
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
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,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script src="harness.js"></script> | ||
<script id="script"> | ||
// test1: createElementNS | ||
{ | ||
var htmlElt = document.createElementNS("http://www.w3.org/1999/xhtml", "p"); | ||
is_not(htmlElt, null, "test1-0: createElementNS"); | ||
is_a(htmlElt, Element, "test1-1: createElementNS"); | ||
is_a(htmlElt, HTMLElement, "test1-2: createElementNS"); | ||
is_a(htmlElt, HTMLParagraphElement, "test1-3: createElementNS"); | ||
is(htmlElt.namespaceURI, "http://www.w3.org/1999/xhtml", "test1-4: createElementNS"); | ||
|
||
var otherNsElt = document.createElementNS("http://www.example.org/dummy", "p"); | ||
is_not(otherNsElt, null, "test1-5: createElementNS"); | ||
is_a(otherNsElt, Element, "test1-6: createElementNS"); | ||
is_not_a(otherNsElt, HTMLElement, "test1-7: createElementNS"); | ||
is(otherNsElt.namespaceURI, "http://www.example.org/dummy", "test1-8: createElementNS"); | ||
} | ||
// test2: Node.namespaceURI | ||
{ | ||
is(document.namespaceURI, null, "test2.0: createElementNS"); | ||
is(document.documentElement.namespaceURI, "http://www.w3.org/1999/xhtml", "test2.1: createElementNS"); | ||
var scriptElt = document.getElementById("script"); | ||
is(scriptElt.firstChild.namespaceURI, null, "test2.2: createElementNS"); | ||
is(scriptElt.nextSibling.namespaceURI, null, "test2.3: createElementNS"); | ||
} | ||
|
||
finish(); | ||
</script><!-- this is a comment --> | ||
</head> | ||
</html> |
4b0da08
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+