projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
security
/
mixedContent
/
websocket
/
resources
/
expect-throw-on-construction.js
1
function reportResult(msg) {
2
if ("opener" in self)
3
self.opener.postMessage(msg, "*");
4
else
5
postMessage(msg);
6
}
7
8
(function () {
9
try {
10
var ws = new WebSocket("ws://127.0.0.1:8880/echo");
11
} catch (e) {
12
reportResult("DONE");
13
return;
14
}
15
reportResult("FAIL: No exception was thrown")
16
})();