Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed.html

Issue 2431223009: [DevTools] paint worklet should report context destroyed (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/worklet/worklet-should-report-context-destroyed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698