Bug 64242

Summary: WebSocket: Copy existing WebSocket tests
Product: WebKit Reporter: Yuta Kitamura <yutak>
Component: Tools / TestsAssignee: Yuta Kitamura <yutak>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, ap, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 50099    
Attachments:
Description Flags
Patch
none
Patch v2 (Put tests under hybi/)
none
Merge to trunk to see EWS results yutak: commit-queue-

Description Yuta Kitamura 2011-07-10 11:35:05 PDT
To land the new WebSocket protocol implementation, we need to land existing tests under http/tests/websocket/tests and make them run correctly with the new protocol.

Necessary steps are:

(1) Copy existing WebSocket tests into http/tests/websocket/tests, and mark them as skipped.
(2) Fix the tests so they can be run with the new protocol. Some obsolete tests may be removed in this step.
(3) Land the new WebSocket protocol implementation, and unskip the tests.

This bug takes care of step (1).
Comment 1 Yuta Kitamura 2011-07-10 11:53:35 PDT
Created attachment 100234 [details]
Patch
Comment 2 Yuta Kitamura 2011-07-10 11:54:34 PDT
Comment on attachment 100234 [details]
Patch

This should be committed manually, so setting cq-.
Comment 3 Kent Tamura 2011-07-10 18:06:32 PDT
Comment on attachment 100234 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=100234&action=review

> LayoutTests/platform/win/Skipped:1355
> +# Skipped until new WebSocket protocol is implemented. http://webkit.org/b/50099
> +http/tests/websocket/tests/alert-in-event-handler.html

I prefer copy the tests into a subdirectory such as http/tests/websocket/tets/hybi/, and skip the directory.
Yuta-san, what do you think?
Comment 4 Yuta Kitamura 2011-07-10 20:09:29 PDT
Comment on attachment 100234 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=100234&action=review

>> LayoutTests/platform/win/Skipped:1355
>> +http/tests/websocket/tests/alert-in-event-handler.html
> 
> I prefer copy the tests into a subdirectory such as http/tests/websocket/tets/hybi/, and skip the directory.
> Yuta-san, what do you think?

Sure, that sounds better to me, too. I will update the patch.
Comment 5 Yuta Kitamura 2011-07-10 23:15:12 PDT
Created attachment 100245 [details]
Patch v2 (Put tests under hybi/)
Comment 6 Kent Tamura 2011-07-10 23:32:51 PDT
Comment on attachment 100245 [details]
Patch v2 (Put tests under hybi/)

ok
Comment 7 Yuta Kitamura 2011-07-10 23:48:06 PDT
Created attachment 100246 [details]
Merge to trunk to see EWS results
Comment 8 Yuta Kitamura 2011-07-10 23:50:40 PDT
Thanks, I will(In reply to comment #6)
> (From update of attachment 100245 [details])
> ok

Thanks, I'll commit this patch manually after results of the EWS bots are ready.
Comment 9 Yuta Kitamura 2011-07-11 00:51:38 PDT
Committed r90726: <http://trac.webkit.org/changeset/90726>