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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-lookupPrefix.xhtml

Issue 2020943002: update-w3c-deps: Do not modify testharness tests. (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 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="test"> 1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="test">
2 <head> 2 <head>
3 <title>Node.lookupPrefix</title> 3 <title>Node.lookupPrefix</title>
4 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 </head> 6 </head>
7 <body xmlns:s="test"> 7 <body xmlns:s="test">
8 <div id="log"/> 8 <div id="log"/>
9 <x xmlns:t="test"><!-- comment --><?test test?>TEST<x/></x> 9 <x xmlns:t="test"><!--comment--><?test test?>TEST<x/></x>
10 <script> 10 <script>
11 function lookupPrefix(node, ns, prefix) { 11 function lookupPrefix(node, ns, prefix) {
12 test(function() { 12 test(function() {
13 assert_equals(node.lookupPrefix(ns), prefix) 13 assert_equals(node.lookupPrefix(ns), prefix)
14 }) 14 })
15 } 15 }
16 var x = document.getElementsByTagName("x")[0]; 16 var x = document.getElementsByTagName("x")[0];
17 lookupPrefix(document, "test", "x") // XXX add test for when there is no documen tElement 17 lookupPrefix(document, "test", "x") // XXX add test for when there is no documen tElement
18 lookupPrefix(document, null, null) 18 lookupPrefix(document, null, null)
19 lookupPrefix(x, "http://www.w3.org/1999/xhtml", null) 19 lookupPrefix(x, "http://www.w3.org/1999/xhtml", null)
20 lookupPrefix(x, "something", null) 20 lookupPrefix(x, "something", null)
21 lookupPrefix(x, null, null) 21 lookupPrefix(x, null, null)
22 lookupPrefix(x, "test", "t") 22 lookupPrefix(x, "test", "t")
23 lookupPrefix(x.parentNode, "test", "s") 23 lookupPrefix(x.parentNode, "test", "s")
24 lookupPrefix(x.firstChild, "test", "t") 24 lookupPrefix(x.firstChild, "test", "t")
25 lookupPrefix(x.childNodes[1], "test", "t") 25 lookupPrefix(x.childNodes[1], "test", "t")
26 lookupPrefix(x.childNodes[2], "test", "t") 26 lookupPrefix(x.childNodes[2], "test", "t")
27 lookupPrefix(x.lastChild, "test", "t") 27 lookupPrefix(x.lastChild, "test", "t")
28 x.parentNode.removeChild(x) 28 x.parentNode.removeChild(x)
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698