Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / websocket / websocket-pending-activity.html
blob9f12146f7513a83b06fda2ab306f10dfc56c8b50
1 <body onload="test()">
2 <p>Should alert "PASS".</p>
3 <script src="/js-test-resources/js-test.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
10 function test()
12 var ws = new WebSocket("ws://127.0.0.1:8880/echo");
13 ws.onopen = function() {
14 this.send("PASS");
16 ws.onmessage = function(msg) {
17 alert(msg.data);
18 if (window.testRunner)
19 testRunner.notifyDone();
21 ws = null;
22 gc();
24 </script>