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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/support/ImportScriptsNetworkErr.js

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 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 var result = "Fail";
2
3 try
4 {
5 importScripts("NonExistentFile.js");
6 }
7 catch(ex)
8 {
9 if (ex.code != null && ex.code == ex.NETWORK_ERR)
10 {
11 result = "Pass";
12 }
13 }
14
15 postMessage(result);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698