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

Unified Diff: LayoutTests/fast/workers/resources/worker-replace-event-handler.js

Issue 140723002: Test non-crashing updating of worker scope event handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: LayoutTests/fast/workers/resources/worker-replace-event-handler.js
diff --git a/LayoutTests/fast/workers/resources/worker-replace-event-handler.js b/LayoutTests/fast/workers/resources/worker-replace-event-handler.js
new file mode 100644
index 0000000000000000000000000000000000000000..c5c27808b5947be8aa288824be128b5048a5320a
--- /dev/null
+++ b/LayoutTests/fast/workers/resources/worker-replace-event-handler.js
@@ -0,0 +1,11 @@
+if (this.importScripts)
+ importScripts('../../../resources/js-test.js');
+
+function update() {
+ onmessage = undefined;
+}
+for (var i = 0; i < 8; ++i)
+ update();
+
+testPassed("onmessage repeatedly updated ok.");
+finishJSTest();

Powered by Google App Engine
This is Rietveld 408576698