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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-firstElementChild-entity-xhtml.xhtml

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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" 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
4 [ 4 [
5 <!ENTITY tree "<span id='first_element_child' style='font-weight:bold;'>unknown. </span>"> 5 <!ENTITY tree "<span id='first_element_child' style='font-weight:bold;'>unknown. </span>">
6 ]> 6 ]>
7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8 <head> 8 <head>
9 <title>Entity References</title> 9 <title>Entity References</title>
10 <script src="../../../../resources/testharness.js"></script> 10 <script src="../../../../resources/testharness.js"></script>
11 <script src="../../../../resources/testharnessreport.js"></script> 11 <script src="../../../../resources/testharnessreport.js"></script>
12 </head> 12 </head>
13 <body> 13 <body>
14 <h1>Test of Entity References</h1> 14 <h1>Test of Entity References</h1>
15 <div id="log"></div> 15 <div id="log"></div>
16 <p id="parentEl">The result of this test is &tree;</p> 16 <p id="parentEl">The result of this test is &tree;</p>
17 <script><![CDATA[ 17 <script><![CDATA[
18 test(function() { 18 test(function() {
19 var parentEl = document.getElementById("parentEl") 19 var parentEl = document.getElementById("parentEl")
20 var fec = parentEl.firstElementChild; 20 var fec = parentEl.firstElementChild;
21 assert_true(!!fec) 21 assert_true(!!fec)
22 assert_equals(fec.nodeType, 1) 22 assert_equals(fec.nodeType, 1)
23 assert_equals(fec.getAttribute("id"), "first_element_child") 23 assert_equals(fec.getAttribute("id"), "first_element_child")
24 }) 24 })
25 ]]></script> 25 ]]></script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698