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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/innerHTML-namespaces.xhtml

Issue 1894103003: Remove superfluous "*-expected.txt" files in LayoutTests/fast/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd"> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <body> 4 <body>
5 <p id="result" xmlns:a="urn:x-test:a"></p> 5 <p id="result" xmlns:a="urn:x-test:a" style="visibility: hidden;"></p>
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 <script type="text/javascript">//<![CDATA[ 8 <script type="text/javascript">//<![CDATA[
9 9
10 test(function () { 10 test(function () {
11 var result = document.getElementById("result"); 11 var result = document.getElementById("result");
12 result.innerHTML = "<span a:test='some value via innerHTML'>Testing</span>"; 12 result.innerHTML = "<span a:test='some value via innerHTML'>Testing</span>";
13 var spanElement = result.firstChild; 13 var spanElement = result.firstChild;
14 assert_equals(spanElement.namespaceURI, "http://www.w3.org/1999/xhtml", "<sp an> in correct namespace"); 14 assert_equals(spanElement.namespaceURI, "http://www.w3.org/1999/xhtml", "<sp an> in correct namespace");
15 assert_true(spanElement.hasAttributeNS("urn:x-test:a", "test"), "<span> has 'test' attribute in the 'urn:x-test:a' namespace"); 15 assert_true(spanElement.hasAttributeNS("urn:x-test:a", "test"), "<span> has 'test' attribute in the 'urn:x-test:a' namespace");
16 assert_equals(spanElement.getAttributeNS("urn:x-test:a", "test"), "some valu e via innerHTML", "'test' attribute in the 'urn:x-test:a' namespace has the corr ect value"); 16 assert_equals(spanElement.getAttributeNS("urn:x-test:a", "test"), "some valu e via innerHTML", "'test' attribute in the 'urn:x-test:a' namespace has the corr ect value");
17 }, "set innerHTML to an XHTML fragment with in-scope namespace prefixes on attri butes"); 17 }, "set innerHTML to an XHTML fragment with in-scope namespace prefixes on attri butes");
18 18
19 //]]> 19 //]]>
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698