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

Side by Side Diff: LayoutTests/fast/dom/Attr/set-attribute-node-from-iframe.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <iframe></iframe> 7 <iframe></iframe>
8 <div id="toBeMoved"></div> 8 <div id="toBeMoved"></div>
9 <script> 9 <script>
10 description("ownerDocument of Attr should be set on setAttributeNode"); 10 description("ownerDocument of Attr should be set on setAttributeNode");
11 elementToBeMoved = document.getElementById("toBeMoved"); 11 elementToBeMoved = document.getElementById("toBeMoved");
12 iframeElement = document.getElementsByTagName("iframe")[0]; 12 iframeElement = document.getElementsByTagName("iframe")[0];
13 iframeDocument = iframeElement.contentWindow.document; 13 iframeDocument = iframeElement.contentWindow.document;
14 attr = iframeDocument.createAttribute("foo"); 14 attr = iframeDocument.createAttribute("foo");
15 shouldBe("attr.ownerDocument", "iframeDocument") 15 shouldBe("attr.ownerDocument", "iframeDocument")
16 elementToBeMoved.setAttributeNode(attr); 16 elementToBeMoved.setAttributeNode(attr);
17 shouldBe("attr.ownerDocument", "document") 17 shouldBe("attr.ownerDocument", "document")
18 iframeDocument.documentElement.appendChild(elementToBeMoved); 18 iframeDocument.documentElement.appendChild(elementToBeMoved);
19 shouldBe("attr.ownerDocument", "iframeDocument") 19 shouldBe("attr.ownerDocument", "iframeDocument")
20 </script> 20 </script>
21 <script src="../../js/resources/js-test-post.js"></script>
22 </body> 21 </body>
23 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698