| Index: third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed.html b/third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e2c7babf6bca42af33e9e85ba1fd826a99bfb250
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed.html
|
| @@ -0,0 +1,31 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script>
|
| + if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| + testRunner.dumpAsText();
|
| + }
|
| +
|
| + function gc()
|
| + {
|
| + if (window.GCController) {
|
| + GCController.collect();
|
| + } else {
|
| + for (var i = 0; i < 10000; ++i)
|
| + new Object;
|
| + }
|
| + }
|
| +
|
| + function tryCrash()
|
| + {
|
| + document.frame.paintWorklet;
|
| + tCF1.outerHTML = "";
|
| + gc();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }
|
| +</script>
|
| +<div id=tCF1><iframe onload="tryCrash()" name=frame id=frame></iframe></div>
|
| +</body>
|
| +</html>
|
|
|