Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-nodeName.html

Issue 2012333004: Fix testharness paths in imported/wpt/{dom,html}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Node.nodeName</title> 2 <title>Node.nodeName</title>
3 <script src="../../../../resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var HTMLNS = "http://www.w3.org/1999/xhtml", 8 var HTMLNS = "http://www.w3.org/1999/xhtml",
9 SVGNS = "http://www.w3.org/2000/svg" 9 SVGNS = "http://www.w3.org/2000/svg"
10 assert_equals(document.createElementNS(HTMLNS, "I").nodeName, "I") 10 assert_equals(document.createElementNS(HTMLNS, "I").nodeName, "I")
11 assert_equals(document.createElementNS(HTMLNS, "i").nodeName, "I") 11 assert_equals(document.createElementNS(HTMLNS, "i").nodeName, "I")
12 assert_equals(document.createElementNS(SVGNS, "svg").nodeName, "svg") 12 assert_equals(document.createElementNS(SVGNS, "svg").nodeName, "svg")
13 assert_equals(document.createElementNS(SVGNS, "SVG").nodeName, "SVG") 13 assert_equals(document.createElementNS(SVGNS, "SVG").nodeName, "SVG")
14 assert_equals(document.createElementNS(HTMLNS, "x:b").nodeName, "X:B") 14 assert_equals(document.createElementNS(HTMLNS, "x:b").nodeName, "X:B")
15 }, "For Element nodes, nodeName should return the same as tagName.") 15 }, "For Element nodes, nodeName should return the same as tagName.")
16 test(function() { 16 test(function() {
17 assert_equals(document.createTextNode("foo").nodeName, "#text") 17 assert_equals(document.createTextNode("foo").nodeName, "#text")
18 }, "For Text nodes, nodeName should return \"#text\".") 18 }, "For Text nodes, nodeName should return \"#text\".")
19 test(function() { 19 test(function() {
20 assert_equals(document.createComment("foo").nodeName, "#comment") 20 assert_equals(document.createComment("foo").nodeName, "#comment")
21 }, "For Comment nodes, nodeName should return \"#comment\".") 21 }, "For Comment nodes, nodeName should return \"#comment\".")
22 test(function() { 22 test(function() {
23 assert_equals(document.nodeName, "#document") 23 assert_equals(document.nodeName, "#document")
24 }, "For Document nodes, nodeName should return \"#document\".") 24 }, "For Document nodes, nodeName should return \"#document\".")
25 test(function() { 25 test(function() {
26 assert_equals(document.doctype.nodeName, "html") 26 assert_equals(document.doctype.nodeName, "html")
27 }, "For DocumentType nodes, nodeName should return the name.") 27 }, "For DocumentType nodes, nodeName should return the name.")
28 test(function() { 28 test(function() {
29 assert_equals(document.createDocumentFragment().nodeName, 29 assert_equals(document.createDocumentFragment().nodeName,
30 "#document-fragment") 30 "#document-fragment")
31 }, "For DocumentFragment nodes, nodeName should return \"#document-fragment\".") 31 }, "For DocumentFragment nodes, nodeName should return \"#document-fragment\".")
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698