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

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

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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
(Empty)
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="test">
2 <head>
3 <title>Node.lookupPrefix</title>
4 <script src="../../../../resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script>
6 </head>
7 <body xmlns:s="test">
8 <div id="log"/>
9 <x xmlns:t="test"><!-- comment --><?test test?>TEST<x/></x>
10 <script>
11 function lookupPrefix(node, ns, prefix) {
12 test(function() {
13 assert_equals(node.lookupPrefix(ns), prefix)
14 })
15 }
16 var x = document.getElementsByTagName("x")[0];
17 lookupPrefix(document, "test", "x") // XXX add test for when there is no documen tElement
18 lookupPrefix(document, null, null)
19 lookupPrefix(x, "http://www.w3.org/1999/xhtml", null)
20 lookupPrefix(x, "something", null)
21 lookupPrefix(x, null, null)
22 lookupPrefix(x, "test", "t")
23 lookupPrefix(x.parentNode, "test", "s")
24 lookupPrefix(x.firstChild, "test", "t")
25 lookupPrefix(x.childNodes[1], "test", "t")
26 lookupPrefix(x.childNodes[2], "test", "t")
27 lookupPrefix(x.lastChild, "test", "t")
28 x.parentNode.removeChild(x)
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698