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

Side by Side Diff: LayoutTests/http/tests/misc/createElementNamespace2.xhtml

Issue 1254243002: Remove Node.localName and Node.namespaceURI (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test failure Created 5 years, 4 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 <foo> 1 <foo>
2 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript" src="../secu rity/resources/cross-frame-access.js"></script> 2 <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript" src="../secu rity/resources/cross-frame-access.js"></script>
3 <pre xmlns="http://www.w3.org/1999/xhtml" id="console"></pre> 3 <pre xmlns="http://www.w3.org/1999/xhtml" id="console"></pre>
4 <script xmlns="http://www.w3.org/1999/xhtml" id="scriptTag"> 4 <script xmlns="http://www.w3.org/1999/xhtml" id="scriptTag">
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 log("This test was written to address rdar://problem/4976879. And tests how namespaceURI's are assigned."); 8 log("This test was written to address rdar://problem/4976879. And tests how namespaceURI's are assigned.");
9 log(""); 9 log("");
10 10
11 log("Test1: document.namespaceURI") 11 log("Test1: document.namespaceURI")
12 shouldBe("document.namespaceURI", "null"); 12 shouldBe("document.namespaceURI", "undefined");
13 log(""); 13 log("");
14 14
15 log("Test2: document.createElement().namespaceURI") 15 log("Test2: document.createElement().namespaceURI")
16 shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org /1999/xhtml'"); 16 shouldBe("document.createElement(\"div\").namespaceURI", "'http://www.w3.org /1999/xhtml'");
17 log(""); 17 log("");
18 18
19 var myScriptTag = document.getElementById("scriptTag"); 19 var myScriptTag = document.getElementById("scriptTag");
20 log("Test3: script tag.namespaceURI"); 20 log("Test3: script tag.namespaceURI");
21 shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'"); 21 shouldBe("myScriptTag.namespaceURI", "'http://www.w3.org/1999/xhtml'");
22 </script> 22 </script>
23 </foo> 23 </foo>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698