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

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

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 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
4 [
5 <!ENTITY tree "<span id='first_element_child' style='font-weight:bold;'>unknown. </span>">
6 ]>
7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8 <head>
9 <title>Entity References</title>
10 <script src="../../../../resources/testharness.js"></script>
11 <script src="../../../../resources/testharnessreport.js"></script>
12 </head>
13 <body>
14 <h1>Test of Entity References</h1>
15 <div id="log"></div>
16 <p id="parentEl">The result of this test is &tree;</p>
17 <script><![CDATA[
18 test(function() {
19 var parentEl = document.getElementById("parentEl")
20 var fec = parentEl.firstElementChild;
21 assert_true(!!fec)
22 assert_equals(fec.nodeType, 1)
23 assert_equals(fec.getAttribute("id"), "first_element_child")
24 })
25 ]]></script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698