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

Unified Diff: tests/html/websocket_test.dart

Issue 23061008: WebSocket security checks changed a bit with the latest Dartium roll so the test failed with the fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/websocket_test.dart
diff --git a/tests/html/websocket_test.dart b/tests/html/websocket_test.dart
index 752856c25199c5b8be55939df68688694667b6f3..2e02761cdc1a41db977d855c3733e4f65f2f12ca 100644
--- a/tests/html/websocket_test.dart
+++ b/tests/html/websocket_test.dart
@@ -19,7 +19,7 @@ main() {
test('constructorTest', () {
expect(() {
- var socket = new WebSocket('ws://localhost');
+ var socket = new WebSocket('ws://localhost/ws', 'chat');
expect(socket, isNotNull);
expect(socket, isWebSocket);
}, expectation);
@@ -27,7 +27,8 @@ main() {
if (WebSocket.supported) {
test('echo', () {
- var socket = new WebSocket('ws://${window.location.host}/ws', 'chat');
+ var socket = new WebSocket('ws://${window.location.host}/ws');
+
socket.onOpen.first.then((_) {
socket.send('hello!');
});
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698