summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/http/tests/misc/stop-loading-on-resource-timing-buffer-full-crash.html
blob: 173822fa3be31dd7e22d78037dfe86a53c2de8da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
<script>

performance.onwebkitresourcetimingbufferfull = function() { 
  window.stop();
  document.body.innerHTML = "PASS. No crash when stop loading on resource timing buffer full.";
  setTimeout("testRunner.notifyDone()", 0);
};

performance.webkitSetResourceTimingBufferSize(1);
</script>
</head>
<body>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
</script>
</body>
</html>