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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Attr/parent-adopt-node.html

Issue 2781993003: Move tests for Attr interface to LayoutTests/dom/attr/. (Closed)
Patch Set: Created 3 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="target"></div>
8 <script>
9 var target = document.getElementById("target");
10 var attr = target.attributes[0];
11 var anotherDocument = document.implementation.createDocument("http://www.w3.org/ 1999/xhtml", "", null);
12 anotherDocument.title = "Hello";
13 anotherDocument.adoptNode(target);
14 shouldBe("attr.ownerDocument.title", "anotherDocument.title");
15 </script>
16 </body>
17 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698