Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: LayoutTests/http/tests/websocket/url-parsing.html

Issue 236013006: Remove completeURL() call from WebSocket construction code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated virtual/stable Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/url-parsing-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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("Test WebSocket URL parsing."); 10 description("Test WebSocket URL parsing.");
(...skipping 21 matching lines...) Expand all
32 shouldBe('(new WebSocket("ws://127.0.0.1:8880/a/../simple")).URL', '"ws://127.0. 0.1:8880/simple"'); 32 shouldBe('(new WebSocket("ws://127.0.0.1:8880/a/../simple")).URL', '"ws://127.0. 0.1:8880/simple"');
33 shouldBe('(new WebSocket("ws://127.0.0.1:8880/simple?")).URL', '"ws://127.0.0.1: 8880/simple?"'); 33 shouldBe('(new WebSocket("ws://127.0.0.1:8880/simple?")).URL', '"ws://127.0.0.1: 8880/simple?"');
34 shouldBe('(new WebSocket("ws://127.0.0.1:8880/simple?k=v")).URL', '"ws://127.0.0 .1:8880/simple?k=v"'); 34 shouldBe('(new WebSocket("ws://127.0.0.1:8880/simple?k=v")).URL', '"ws://127.0.0 .1:8880/simple?k=v"');
35 35
36 // The WebSocket API specification says If /url/ has a <fragment> 36 // The WebSocket API specification says If /url/ has a <fragment>
37 // component, then fail the parsing WebSocket URLs, so throw a SYNTAX_ERR 37 // component, then fail the parsing WebSocket URLs, so throw a SYNTAX_ERR
38 // exception. 38 // exception.
39 shouldThrow('new WebSocket("ws://127.0.0.1/path#")'); 39 shouldThrow('new WebSocket("ws://127.0.0.1/path#")');
40 shouldThrow('new WebSocket("ws://127.0.0.1/path#fragment")'); 40 shouldThrow('new WebSocket("ws://127.0.0.1/path#fragment")');
41 41
42 shouldThrow('new WebSocket("ws:://127.0.0.1/")');
43
42 </script> 44 </script>
43 </body> 45 </body>
44 </html> 46 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/websocket/url-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698