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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-getElementsByTagNameNS.html

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 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Element.getElementsByTagNameNS</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-getelementsbytagna mens">
5 <script src="../../../../resources/testharness.js"></script>
6 <script src="../../../../resources/testharnessreport.js"></script>
7 <script src="Document-Element-getElementsByTagNameNS.js"></script>
8 <div id="log"></div>
9 <script>
10 var element;
11 setup(function() {
12 element = document.createElement("div");
13 element.appendChild(document.createTextNode("text"));
14 var p = element.appendChild(document.createElement("p"));
15 p.appendChild(document.createElement("a"))
16 .appendChild(document.createTextNode("link"));
17 p.appendChild(document.createElement("b"))
18 .appendChild(document.createTextNode("bold"));
19 p.appendChild(document.createElement("em"))
20 .appendChild(document.createElement("u"))
21 .appendChild(document.createTextNode("emphasized"));
22 element.appendChild(document.createComment("comment"));
23 });
24
25 test_getElementsByTagNameNS(element, element);
26
27 test(function() {
28 assert_array_equals(element.getElementsByTagNameNS("*", element.localName), [] );
29 }, "Matching the context object (wildcard namespace)");
30
31 test(function() {
32 assert_array_equals(
33 element.getElementsByTagNameNS("http://www.w3.org/1999/xhtml",
34 element.localName),
35 []);
36 }, "Matching the context object (specific namespace)");
37 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698