Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / srcdoc / reloading-a-srcdoc-document-loads-it-again.html
blobd5bb3a843d23dc644a95ea38eefe9f30036fcc50
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.waitUntilDone();
7 window.iframeLoadCount = 0;
9 window.onload = function() {
10 frames[0].location.reload();
12 </script>
13 <iframe srcdoc="
14 <script>
15 ++top.iframeLoadCount;
16 alert('Frame has loaded ' + top.iframeLoadCount + ' time(s).');
17 if (top.iframeLoadCount == 2) {
18 alert('PASS');
19 if (window.testRunner)
20 testRunner.notifyDone();
21 } else if (top.iframeLoadCount > 2)
22 alert('FAIL!!');
23 </script>
24 "></iframe>