Changeset 50892 in webkit
- Timestamp:
- Nov 12, 2009 12:16:46 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r50890 r50892 1 2009-11-12 Alexey Proskuryakov <ap@apple.com> 2 3 Reviewed by David Levin. 4 5 https://bugs.webkit.org/show_bug.cgi?id=31426 6 Some WebSocket tests don't properly listen to close event 7 8 * websocket/tests/script-tests/handshake-error.js: 9 * websocket/tests/script-tests/simple.js: 10 Made the tests clear second-chance timer on finish, avoiding confusing output when running 11 them in Safari. 12 13 * websocket/tests/script-tests/frame-length-longer-than-buffer.js: 14 * websocket/tests/script-tests/frame-length-skip.js: 15 * websocket/tests/frame-length-longer-than-buffer-expected.txt: 16 * websocket/tests/frame-length-skip-expected.txt: 17 These tests now finish properly. 18 19 * websocket/tests/handshake-error-expected.txt: 20 * websocket/tests/simple-expected.txt: 21 I'm getting an extra empty line for these tests, which is surprising. But since I didn't 22 change anything, I assume that it should be there. 23 1 24 2009-11-12 Adam Barth <abarth@webkit.org> 2 25 -
trunk/LayoutTests/websocket/tests/frame-length-longer-than-buffer-expected.txt
r50862 r50892 5 5 WebSocket is open 6 6 received:hello 7 WebSocket is closed 7 8 1 8 9 PASS areArraysEqual(received_messages, expected_messages) is true -
trunk/LayoutTests/websocket/tests/frame-length-skip-expected.txt
r50862 r50892 6 6 received:hello 7 7 received:world 8 WebSocket is closed 8 9 2 9 10 PASS areArraysEqual(received_messages, expected_messages) is true -
trunk/LayoutTests/websocket/tests/handshake-error-expected.txt
r50795 r50892 8 8 9 9 TEST COMPLETE 10 -
trunk/LayoutTests/websocket/tests/script-tests/frame-length-longer-than-buffer.js
r50862 r50892 6 6 var expected_messages = ["hello"]; 7 7 function finish() { 8 clearTimeout(timeoutID); 8 9 debug(received_messages.length); 9 10 for (var i = 0; i < received_messages; i++) { … … 26 27 received_messages.push(evt.data); 27 28 }; 28 ws. close = function () {29 ws.onclose = function () { 29 30 debug("WebSocket is closed"); 30 31 finish(); 31 32 }; 32 setTimeout("finish()", 2000);33 var timeoutID = setTimeout("finish()", 2000); 33 34 34 35 var successfullyParsed = true; -
trunk/LayoutTests/websocket/tests/script-tests/frame-length-skip.js
r50862 r50892 6 6 var expected_messages = ["hello", "world"]; 7 7 function finish() { 8 clearTimeout(timeoutID); 8 9 debug(received_messages.length); 9 10 for (var i = 0; i < received_messages; i++) { … … 26 27 received_messages.push(evt.data); 27 28 }; 28 ws. close = function () {29 ws.onclose = function () { 29 30 debug("WebSocket is closed"); 30 31 finish(); 31 32 }; 32 setTimeout("finish()", 2000);33 var timeoutID = setTimeout("finish()", 2000); 33 34 34 35 var successfullyParsed = true; -
trunk/LayoutTests/websocket/tests/script-tests/handshake-error.js
r50795 r50892 8 8 { 9 9 isSuccessfullyParsed(); 10 clearTimeout(timeoutID); 10 11 if (window.layoutTestController) { 11 12 layoutTestController.notifyDone(); … … 38 39 } 39 40 40 window.setTimeout(timeOutCallback, 3000);41 var timeoutID = setTimeout(timeOutCallback, 3000); 41 42 42 43 var successfullyParsed = true; -
trunk/LayoutTests/websocket/tests/script-tests/simple.js
r50794 r50892 8 8 { 9 9 isSuccessfullyParsed(); 10 clearTimeout(timeoutID); 10 11 if (window.layoutTestController) { 11 12 layoutTestController.notifyDone(); … … 37 38 } 38 39 39 window.setTimeout(timeOutCallback, 3000);40 var timeoutID = setTimeout(timeOutCallback, 3000); 40 41 41 42 var successfullyParsed = true; -
trunk/LayoutTests/websocket/tests/simple-expected.txt
r50794 r50892 9 9 10 10 TEST COMPLETE 11
Note: See TracChangeset
for help on using the changeset viewer.