summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/loading/slow-parsing-subframe.html
blob: 5d02bff6ec4f4f33f306f40b72f7f1ff5d651f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
<script>
    if (window.testRunner) {
      testRunner.dumpAsText();
      testRunner.waitUntilDone();
    }
</script>
<body>
This tests that we get frame load callbacks in the proper order when a subframe
is parsed and created from within a timer callback.
<script>
  // Force a sleep for 1 second, to make sure the rest of the parsing is done
  // via a timer.
  var start = new Date()
  var startMS = start.getTime()
  while (true) {
    var now = new Date()
    if (now.getTime() - startMS > 1000) {
      break;
    }
  }
</script>
<iframe name="f1" src="http://127.0.0.1:8000/misc/resources/200.html"></iframe><br>
</body>
</html>