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

Unified Diff: third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js

Issue 2090953006: [Blink-Workers]Set verbosity of the external exception handler. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code changed as per the comments. Created 4 years, 5 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/resources/onerror-test.js
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js b/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
index 66e981ffa087ec1ccbf084ea5cdf3d88d1b74d34..79dadbe894bcd630f329bd70aaf62ecdf4325c0d 100644
--- a/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/onerror-test.js
@@ -69,6 +69,13 @@ function errorEventHandlerShouldNotFire() {
};
}
+function errorEventHandlerShouldFire() {
+ var worker = buildInlineWorker();
+ worker.onerror = function (e) {
+ testPassed("'worker.onerror' called.");
+ };
+}
+
function buildInlineWorker() {
var script = document.getElementById('workerCode').innerText;
var blob = new Blob([script], {type: 'text/javascript'});

Powered by Google App Engine
This is Rietveld 408576698