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

Side by Side Diff: LayoutTests/fast/workers/worker-nested-importScripts-error.html

Issue 404513002: Propagate nested importScripts() error events outwards. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use STACK_ALLOCATED() Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("This tests that errors from nested importScripts have the expected provenance.");
9
10 self.jsTestIsAsync = true;
11
12 var worker = startWorker("resources/importScripts-1.js");
13 var event;
14 worker.onerror = function (e) {
15 event = e;
16 shouldBeEqualToString("event.type", "error");
17 shouldBeTrue("event.filename.indexOf('invalidScript.js') >= 0");
18 finishJSTest();
19 };
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698