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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/syntax/parsing/Element.getElementsByTagName-foreign-02.html

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 <!doctype html> 1 <!doctype html>
2 <title>getElementsByTagName and font</title> 2 <title>getElementsByTagName and font</title>
3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"> 3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
4 <link rel="help" href="https://dom.spec.whatwg.org/#dom-element-getelementsbytag name"> 4 <link rel="help" href="https://dom.spec.whatwg.org/#dom-element-getelementsbytag name">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#parsing"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#parsing">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <div id="log"></div> 8 <div id="log"></div>
9 <div id="test"> 9 <div id="test">
10 <svg id="outer"> 10 <svg id="outer">
11 <foreignObject> 11 <foreignObject>
12 <font></font> 12 <font></font>
13 <svg><font/></svg> 13 <svg><font/></svg>
14 </foreignobject> 14 </foreignObject>
15 </svg> 15 </svg>
16 </div> 16 </div>
17 <script> 17 <script>
18 var HTML = "http://www.w3.org/1999/xhtml", SVG = "http://www.w3.org/2000/svg"; 18 var HTML = "http://www.w3.org/1999/xhtml", SVG = "http://www.w3.org/2000/svg";
19 var wrapper = document.getElementById("outer"); 19 var wrapper = document.getElementById("outer");
20 test(function() { 20 test(function() {
21 assert_equals(wrapper.getElementsByTagName("FONT").length, 1); 21 assert_equals(wrapper.getElementsByTagName("FONT").length, 1);
22 assert_equals(wrapper.getElementsByTagName("FONT")[0].namespaceURI, HTML); 22 assert_equals(wrapper.getElementsByTagName("FONT")[0].namespaceURI, HTML);
23 }, "Upper-case font") 23 }, "Upper-case font")
24 test(function() { 24 test(function() {
25 assert_equals(wrapper.getElementsByTagName("font").length, 2); 25 assert_equals(wrapper.getElementsByTagName("font").length, 2);
26 assert_equals(wrapper.getElementsByTagName("font")[0].namespaceURI, HTML); 26 assert_equals(wrapper.getElementsByTagName("font")[0].namespaceURI, HTML);
27 assert_equals(wrapper.getElementsByTagName("font")[1].namespaceURI, SVG); 27 assert_equals(wrapper.getElementsByTagName("font")[1].namespaceURI, SVG);
28 }, "Lower-case font") 28 }, "Lower-case font")
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698