Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / srcdoc / setting-srcdoc-reloads-document.html
blob2ba4faa2452b019538cc4cb82a68877c252b0e59
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
7 function pass() {
8 document.getElementById('result').textContent = 'PASS';
9 if (window.testRunner)
10 testRunner.notifyDone();
12 </script>
13 <p>This test ensures that setting the srcdoc attribute iframe causes the
14 document to change to the current value of the srcdoc attribute on the
15 iframe.</p>
16 <div id="result">Waiting...</div>
17 <iframe srcdoc="
18 <script>
19 window.frameElement.srcdoc = '<script>top.pass();<\/script>';
20 </script>
21 "></iframe>