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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/worker-gc-alive.html

Issue 2665733002: [wrapper-tracing] For a worker, mark relative to its wrapper map. (Closed)
Patch Set: Address comments Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/fast/workers/worker-gc-alive.html
diff --git a/third_party/WebKit/LayoutTests/fast/workers/worker-gc-alive.html b/third_party/WebKit/LayoutTests/fast/workers/worker-gc-alive.html
new file mode 100644
index 0000000000000000000000000000000000000000..7d9c0d409f0f3d48c4b60f0964b6e953705ef5c1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/workers/worker-gc-alive.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html>
+<head>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+</head>
+<body>
+<script>
+// hasPendingActivity() should keep wrapper and object alive inside a
+// Worker also.
+async_test(function(t) {
+ var worker = new Worker("resources/worker-xhr-onerror.js");
+ worker.onmessage = () => { t.done(); };
+}, 'hasPendingActivity() should also keep wrapper and object alive inside a worker');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698