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

Unified Diff: LayoutTests/fast/workers/resources/shared-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
« no previous file with comments | « no previous file | LayoutTests/fast/workers/resources/worker-replace-event-handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/workers/resources/shared-worker-replace-event-handler.js
diff --git a/LayoutTests/fast/workers/resources/shared-worker-replace-event-handler.js b/LayoutTests/fast/workers/resources/shared-worker-replace-event-handler.js
new file mode 100644
index 0000000000000000000000000000000000000000..299beb0d24d41933c6423ade7bd4822200250802
--- /dev/null
+++ b/LayoutTests/fast/workers/resources/shared-worker-replace-event-handler.js
@@ -0,0 +1,10 @@
+onconnect = function(event) {
+ function update() {
+ onerror = undefined;
+ }
+ for (var i = 0; i < 8; ++i) {
+ update();
+ }
+ event.ports[0].postMessage("'onerror' repeatedly updated ok.");
+ event.ports[0].postMessage("DONE:");
+};
« no previous file with comments | « no previous file | LayoutTests/fast/workers/resources/worker-replace-event-handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698