RESOLVED FIXED 31337
Add test for Web Socket send
https://bugs.webkit.org/show_bug.cgi?id=31337
Summary Add test for Web Socket send
Yuzo Fujishima
Reported 2009-11-11 01:07:02 PST
Web Socket send method needs to be tested.
Attachments
add test for web socket send (5.46 KB, patch)
2009-11-11 01:13 PST, Yuzo Fujishima
no flags
add test for web socket send (5.44 KB, patch)
2009-11-11 17:26 PST, Yuzo Fujishima
no flags
add test for web socket send (5.48 KB, patch)
2009-11-12 18:26 PST, Yuzo Fujishima
no flags
add test for web socket send (5.48 KB, patch)
2009-12-03 20:34 PST, Yuzo Fujishima
no flags
add test for web socket send (5.48 KB, patch)
2009-12-03 20:44 PST, Yuzo Fujishima
no flags
Yuzo Fujishima
Comment 1 2009-11-11 01:13:59 PST
Created attachment 42938 [details] add test for web socket send
Yuzo Fujishima
Comment 2 2009-11-11 01:18:09 PST
Hi, reviewers, Can you review this patch and submit it, if it looks good? Yuzo
Eric Seidel (no email)
Comment 3 2009-11-11 09:38:54 PST
Comment on attachment 42938 [details] add test for web socket send The test itself looks good. Is websocket already added to the skipped list for platforms which don't have it turned on? Single line ifs don't need { } +if (window.layoutTestController) { + layoutTestController.waitUntilDone(); +} + if (window.layoutTestController) { + layoutTestController.notifyDone(); + }
Yuzo Fujishima
Comment 4 2009-11-11 17:26:15 PST
Created attachment 43022 [details] add test for web socket send
Yuzo Fujishima
Comment 5 2009-11-11 17:30:55 PST
Thank you for the review. Fixed the single line if's. Skipped files have been updated by https://bugs.webkit.org/show_bug.cgi?id=27492 Can you submit this if it still looks good? Yuzo
Yuzo Fujishima
Comment 6 2009-11-12 18:26:52 PST
Created attachment 43122 [details] add test for web socket send
Yuzo Fujishima
Comment 7 2009-11-12 18:27:47 PST
Fixed the patch such that the timeout timer is canceled on successful completion.
Eric Seidel (no email)
Comment 8 2009-11-26 21:23:52 PST
Comment on attachment 43122 [details] add test for web socket send LGTM.
WebKit Commit Bot
Comment 9 2009-12-02 15:00:45 PST
Comment on attachment 43122 [details] add test for web socket send Rejecting patch 43122 from commit-queue. Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--quiet', '--exit-after-n-failures=1']" exit_code: 1 Running build-dumprendertree Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests Testing 11704 test cases. websocket/tests/send.html -> failed Exiting early after 1 failures. 11698 tests run. 371.57s total testing time 11697 test cases (99%) succeeded 1 test case (<1%) had incorrect layout 6 test cases (<1%) had stderr output
Yuzo Fujishima
Comment 10 2009-12-03 20:34:54 PST
Created attachment 44284 [details] add test for web socket send
WebKit Review Bot
Comment 11 2009-12-03 20:36:37 PST
style-queue ran check-webkit-style on attachment 44284 [details] without any errors.
Yuzo Fujishima
Comment 12 2009-12-03 20:44:44 PST
Created attachment 44285 [details] add test for web socket send
Yuzo Fujishima
Comment 13 2009-12-03 20:46:48 PST
Sorry for the test breakage. A blank line was missing from the end of the expected output file. I've tested the latest patch with HEAD. Can you try again? Yuzo
WebKit Review Bot
Comment 14 2009-12-03 20:47:05 PST
style-queue ran check-webkit-style on attachment 44285 [details] without any errors.
Alexey Proskuryakov
Comment 15 2009-12-04 14:31:33 PST
Comment on attachment 44285 [details] add test for web socket send This seems to be covered by simple-stress now, but it's nice to have a lighter test for non-stress cases. +var timeoutID = setTimeout(timeOutCallback, 3000); I wish we could find a way to simplify this incantation needed in every WebSocket test.
WebKit Commit Bot
Comment 16 2009-12-04 16:31:44 PST
Comment on attachment 44285 [details] add test for web socket send Clearing flags on attachment: 44285 Committed r51721: <http://trac.webkit.org/changeset/51721>
WebKit Commit Bot
Comment 17 2009-12-04 16:32:03 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.