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

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

Issue 2702613004: Worklet: Move a chromium-specific test to chromium/ (Closed)
Patch Set: Created 3 years, 10 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/chromium/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/chromium/worklet-should-report-context-destroyed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/worklet-should-report-context-destroyed.html b/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/worklet-should-report-context-destroyed.html
new file mode 100644
index 0000000000000000000000000000000000000000..692c4e9bc6dd0a1a06f692ff1302d2f5aa24cc02
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/worklet/chromium/worklet-should-report-context-destroyed.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<html>
+<title>Worklet: Worklet should report context destroyed</title>
+<body>
+<script>
+// This test was added for confirming a crash bug fix (see
+// https://crbug.com/657450). This should be in chromium/ because of using
+// testRunner and GCController.
+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/chromium/worklet-should-report-context-destroyed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698