RESOLVED DUPLICATE of bug 63532 63536
[Chromium] DRT: Add setHixie76WebSocketProtocolEnabled to LayoutTestController
https://bugs.webkit.org/show_bug.cgi?id=63536
Summary [Chromium] DRT: Add setHixie76WebSocketProtocolEnabled to LayoutTestController
Yuta Kitamura
Reported 2011-06-28 07:23:20 PDT
Add setHixie76WebSocketProtocolEnabled() method to LayoutTestController in order to switch WebSocket protocols in layout tests. Win/Mac implementation: bug 63532
Attachments
Patch (4.92 KB, patch)
2011-06-28 07:28 PDT, Yuta Kitamura
no flags
Yuta Kitamura
Comment 1 2011-06-28 07:28:09 PDT
Kent Tamura
Comment 2 2011-06-28 07:42:55 PDT
Comment on attachment 98916 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98916&action=review > Tools/ChangeLog:8 > + Add a method to LayoutTestController so we can switch WebSocket protocols in layout tests. Why don't you use window.internals? See WebCore/testing/Internals.*
Yuta Kitamura
Comment 3 2011-06-28 23:49:32 PDT
Comment on attachment 98916 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=98916&action=review Taking Adam's advice, I would like to use LayoutTestController::overridePreference(), rather than adding a new method to LayoutTestController. I'm preparing a new patch. >> Tools/ChangeLog:8 >> + Add a method to LayoutTestController so we can switch WebSocket protocols in layout tests. > > Why don't you use window.internals? > See WebCore/testing/Internals.* I don't think I can use window.internals for this purpose, because we need to reset preference values for each test run to prevent preference values from previous runs from leaking to the following tests.
Yuta Kitamura
Comment 4 2011-06-29 01:04:24 PDT
I will do Chromium part in bug 63532. *** This bug has been marked as a duplicate of bug 63532 ***
Note You need to log in before you can comment on or make changes to this bug.