Bug 31337

Summary: Add test for Web Socket send
Product: WebKit Reporter: Yuzo Fujishima <yuzo>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric, ukai, webkit.review.bot, yuzo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
add test for web socket send
none
add test for web socket send
none
add test for web socket send
none
add test for web socket send
none
add test for web socket send none

Description Yuzo Fujishima 2009-11-11 01:07:02 PST
Web Socket send method needs to be tested.
Comment 1 Yuzo Fujishima 2009-11-11 01:13:59 PST
Created attachment 42938 [details]
add test for web socket send
Comment 2 Yuzo Fujishima 2009-11-11 01:18:09 PST
Hi, reviewers,

Can you review this patch and submit it, if it looks good?

Yuzo
Comment 3 Eric Seidel (no email) 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();
+    }
Comment 4 Yuzo Fujishima 2009-11-11 17:26:15 PST
Created attachment 43022 [details]
add test for web socket send
Comment 5 Yuzo Fujishima 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
Comment 6 Yuzo Fujishima 2009-11-12 18:26:52 PST
Created attachment 43122 [details]
add test for web socket send
Comment 7 Yuzo Fujishima 2009-11-12 18:27:47 PST
Fixed the patch such that the timeout timer is canceled on successful completion.
Comment 8 Eric Seidel (no email) 2009-11-26 21:23:52 PST
Comment on attachment 43122 [details]
add test for web socket send

LGTM.
Comment 9 WebKit Commit Bot 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
Comment 10 Yuzo Fujishima 2009-12-03 20:34:54 PST
Created attachment 44284 [details]
add test for web socket send
Comment 11 WebKit Review Bot 2009-12-03 20:36:37 PST
style-queue ran check-webkit-style on attachment 44284 [details] without any errors.
Comment 12 Yuzo Fujishima 2009-12-03 20:44:44 PST
Created attachment 44285 [details]
add test for web socket send
Comment 13 Yuzo Fujishima 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
Comment 14 WebKit Review Bot 2009-12-03 20:47:05 PST
style-queue ran check-webkit-style on attachment 44285 [details] without any errors.
Comment 15 Alexey Proskuryakov 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.
Comment 16 WebKit Commit Bot 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>
Comment 17 WebKit Commit Bot 2009-12-04 16:32:03 PST
All reviewed patches have been landed.  Closing bug.