Chromium Code Reviews
DescriptionThis is a (first) implementation for a UI test of ToggleEncodingAutoDetect(), as discussed in http://codereview.chromium.org/173265 .
While the test (seems to) work as implemented (tested both Debug and Release builds), I would like to ask the reviewers to check and comment on those parts of the test that I marked as "Hack!". In detail:
.) In order to check that disabling auto-detect doesn't result in a page load currently the test waits 500ms and checks whether a page load occurred. While this time frame should be sufficient, on heavily loaded try servers there might be cases where a page load would be triggered after 500ms in a failure case. I.e., the test isn't 100% reliable to flag such failures.
However, I haven't yet found a better, more reliable approach.
The following bullet point has been resolved:
.) [REMOVED: There are 2 other cases where I added a pause of 100ms. Without that pause the test would often hang in the following WaitForNavigation(), waiting for a navigation that has already occurred. I have to admit that I don't fully understand how this can happen (can a navigation be so fast that the recorded time stays the same?).
AFAICT those pauses are in a place where they shouldn't have another side-effect, but it's still a hackish solution.]
UPDATE: cannot reproduce the above anymore. However, there still is flakiness on shutdown, although this doesn't seem to be caused by this test per se. I filed a separate bug for this - see http://code.google.com/p/chromium/issues/detail?id=24708
Any further input would be highly appreciated.
(The patch set contains also a few remnants of the fix for the GetBooleanPreference parameter order issue, submitted at http://codereview.chromium.org/209029)
BUG=23617
TEST=BrowserEncodingTest.TestToggleAutoDetect
Patch Set 1 #
Total comments: 5
Patch Set 2 : '' #Patch Set 3 : UI test for ToggleEncodingAutoDetect... #
Total comments: 2
Patch Set 4 : '' #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||