Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / websocket / workers / shared-worker-cookie-ws-to-ws.html
1 <!DOCTYPE HTML>
2 <html>
3 <head></head>
4 <script src="/js-test-resources/testharness.js"></script>
5 <script src="/js-test-resources/testharnessreport.js"></script>
6 <script type="text/javascript">
7
8 var test = async_test("Test that cookies set by one WebSocket on opening handshake are sent by another WebSocket on opening handshake");
9 test.step(function()
10 {
11     var worker = new SharedWorker("resources/cookie-ws-to-ws.js", "websocketCookie");
12     worker.port.onmessage = test.step_func(function (evt)
13     {
14         assert_equals(evt.data, "DONE", "evt.data");
15         test.done();
16     });
17 });
18
19 </script>
20 </head>
21 <body>
22 </body>
23 </html>