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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_02.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>moving modified IFRAME in document (original page about:blank, document.w rite modification)</title>
3 <script src="../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../resources/testharnessreport.js"></script>
5 <link rel="help" href="https://html.spec.whatwg.org/#iframe-load-event-steps">
6 <iframe src="about:blank"></iframe>
7 <div id="target"></div>
8 <script>
9 onload = function() {
10 var ifr = document.getElementsByTagName('iframe')[0];
11 ifr.contentDocument.open();
12 ifr.contentDocument.write('Modified document');
13 ifr.contentDocument.close();
14 setTimeout(function() {
15 ifr.onload = function() {
16 assert_equals(ifr.contentDocument.body.textContent.indexOf('Modified'), -1);
17 done();
18 };
19 document.getElementById('target').appendChild(ifr);
20 }, 100);
21 }
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698