Sign in
webkit
/
WebKit
/
47b8206e2462d5a862fef65e142ae8764bd9b9e5
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
workers
/
support
/
ImportScriptsNetworkErr.js
blob: 8179c8b10013192ae614a74beafca4bcdaa7f6ea [
file
] [
log
] [
blame
]
var
result
=
"Fail"
;
try
{
importScripts
(
"NonExistentFile.js"
);
}
catch
(
ex
)
{
if
(
ex
.
code
!=
null
&&
ex
.
code
==
ex
.
NETWORK_ERR
)
{
result
=
"Pass"
;
}
}
postMessage
(
result
);