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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/insertAdjacentHTML-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>//<![CDATA[ 8 <script>//<![CDATA[
9 9
10 test(function () { 10 test(function () {
11 var result = document.getElementById("result"); 11 var result = document.getElementById("result");
12 result.insertAdjacentHTML("beforeEnd", "<span a:test='some value via insertA djacentHTML()'>Testing</span>"); 12 result.insertAdjacentHTML("beforeEnd", "<span a:test='some value via insertA djacentHTML()'>Testing</span>");
13 var spanElement = result.lastChild; 13 var spanElement = result.lastChild;
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 insertAdjacentHTML()", "'test' attribute in the 'urn:x-test:a' namespace h as the correct value"); 16 assert_equals(spanElement.getAttributeNS("urn:x-test:a", "test"), "some valu e via insertAdjacentHTML()", "'test' attribute in the 'urn:x-test:a' namespace h as the correct value");
17 }, "insert an XHTML fragment with in-scope namespace prefixes on attributes"); 17 }, "insert an XHTML fragment with in-scope namespace prefixes on attributes");
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