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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/move_iframe_in_dom_01.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, DOM modifi cation)</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.body.appendChild(ifr.contentDocument.createElement('p')).t extContent = 'Modified document';
12 setTimeout(function() {
13 ifr.onload = function() {
14 assert_equals(ifr.contentDocument.body.textContent.indexOf('Modified'), -1 );
15 done();
16 };
17 document.getElementById('target').appendChild(ifr);
18 }, 100);
19 }
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698