| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="/js-test-resources/js-test.js"></script> | 4 <script src="/js-test-resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <div id="description"></div> | 7 <div id="description"></div> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
| 10 description("WebSocket.protocol should not be modified."); | 10 description("WebSocket.protocol should not be modified."); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 debug("Exited onclose handler"); | 42 debug("Exited onclose handler"); |
| 43 shouldBeEqualToString("ws.protocol", "chat"); | 43 shouldBeEqualToString("ws.protocol", "chat"); |
| 44 ws.protocol = "superchat"; | 44 ws.protocol = "superchat"; |
| 45 shouldBeEqualToString("ws.protocol", "chat"); | 45 shouldBeEqualToString("ws.protocol", "chat"); |
| 46 finishJSTest(); | 46 finishJSTest(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 </script> | 49 </script> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |