gecko-dev/testing/web-platform/tests/dom/nodes/Node-nodeName-xhtml.xhtml
James Graham f645b62a17 Bug 1233726 - Update web-platform-tests to revision 05c55fbdc527eacdc7b875f298a8cb1b6db0dfcd, a=testonly
--HG--
rename : testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction.xhtml => testing/web-platform/tests/dom/nodes/Document-createProcessingInstruction-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Document-getElementsByTagName.xhtml => testing/web-platform/tests/dom/nodes/Document-getElementsByTagName-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/DocumentType-literal.xhtml => testing/web-platform/tests/dom/nodes/DocumentType-literal-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElement-null.svg => testing/web-platform/tests/dom/nodes/Element-childElement-null-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElement-null.xhtml => testing/web-platform/tests/dom/nodes/Element-childElement-null-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-add-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-dynamic-remove-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-nochild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount.svg => testing/web-platform/tests/dom/nodes/Element-childElementCount-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-childElementCount.xhtml => testing/web-platform/tests/dom/nodes/Element-childElementCount-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-entity.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-entity-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace.svg => testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-namespace-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild.svg => testing/web-platform/tests/dom/nodes/Element-firstElementChild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-firstElementChild.xhtml => testing/web-platform/tests/dom/nodes/Element-firstElementChild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-lastElementChild.svg => testing/web-platform/tests/dom/nodes/Element-lastElementChild-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-lastElementChild.xhtml => testing/web-platform/tests/dom/nodes/Element-lastElementChild-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-nextElementSibling.svg => testing/web-platform/tests/dom/nodes/Element-nextElementSibling-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-nextElementSibling.xhtml => testing/web-platform/tests/dom/nodes/Element-nextElementSibling-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-previousElementSibling.svg => testing/web-platform/tests/dom/nodes/Element-previousElementSibling-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-previousElementSibling.xhtml => testing/web-platform/tests/dom/nodes/Element-previousElementSibling-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Element-siblingElement-null.svg => testing/web-platform/tests/dom/nodes/Element-siblingElement-null-svg.svg
rename : testing/web-platform/tests/dom/nodes/Element-siblingElement-null.xhtml => testing/web-platform/tests/dom/nodes/Element-siblingElement-null-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/Node-nodeName.xhtml => testing/web-platform/tests/dom/nodes/Node-nodeName-xhtml.xhtml
rename : testing/web-platform/tests/dom/nodes/ParentNode-querySelector-All.xht => testing/web-platform/tests/dom/nodes/ParentNode-querySelector-All-xht.xht
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-case-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-id-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-newelements-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-null-undef-xhtml.xhtml
rename : testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param.xhtml => testing/web-platform/tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-param-xhtml.xhtml
rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event.xhtml => testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-for-event-xhtml.xhtml
rename : testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text.xhtml => testing/web-platform/tests/html/semantics/scripting-1/the-script-element/script-text-xhtml.xhtml
rename : testing/web-platform/tests/url/a-element.xhtml => testing/web-platform/tests/url/a-element-xhtml.xhtml
2015-12-18 23:10:42 +00:00

42 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Node.nodeName</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"/>
<script>
test(function() {
var HTMLNS = "http://www.w3.org/1999/xhtml",
SVGNS = "http://www.w3.org/2000/svg"
assert_equals(document.createElementNS(HTMLNS, "I").nodeName, "I")
assert_equals(document.createElementNS(HTMLNS, "i").nodeName, "i")
assert_equals(document.createElementNS(SVGNS, "svg").nodeName, "svg")
assert_equals(document.createElementNS(SVGNS, "SVG").nodeName, "SVG")
assert_equals(document.createElementNS(HTMLNS, "x:b").nodeName, "x:b")
}, "For Element nodes, nodeName should return the same as tagName.")
test(function() {
assert_equals(document.createTextNode("foo").nodeName, "#text")
}, "For Text nodes, nodeName should return \"#text\".")
test(function() {
assert_equals(document.createProcessingInstruction("foo", "bar").nodeName,
"foo")
}, "For ProcessingInstruction nodes, nodeName should return the target.")
test(function() {
assert_equals(document.createComment("foo").nodeName, "#comment")
}, "For Comment nodes, nodeName should return \"#comment\".")
test(function() {
assert_equals(document.nodeName, "#document")
}, "For Document nodes, nodeName should return \"#document\".")
test(function() {
assert_equals(document.doctype.nodeName, "html")
}, "For DocumentType nodes, nodeName should return the name.")
test(function() {
assert_equals(document.createDocumentFragment().nodeName,
"#document-fragment")
}, "For DocumentFragment nodes, nodeName should return \"#document-fragment\".")
</script>
</body>
</html>