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

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

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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")
(...skipping 12 matching lines...) Expand all
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