Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Issue 11316304: Defalke testOnPageFinishedCalledAfterError (Closed)

Created:
8 years ago by boliu
Modified:
8 years ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Defalke testOnPageFinishedCalledAfterError by making timeout from 5 (default) to 15 seconds. BUG=152033 Android java test change. Ran through android trybot NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170848

Patch Set 1 #

Patch Set 2 : Fix compile #

Patch Set 3 : Use localhost for host connection error to avoid dns timeout. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageFinishedTest.java View 1 2 2 chunks +11 lines, -3 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/ClientOnReceivedErrorTest.java View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
boliu
See bug
8 years ago (2012-12-03 18:22:45 UTC) #1
mkosiba (inactive)
LGTM Thanks for de-flaking these!
8 years ago (2012-12-03 18:29:25 UTC) #2
mkosiba (inactive)
btw. I have a feeling that this is somehow related to the network. If only ...
8 years ago (2012-12-03 18:31:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/11316304/5002
8 years ago (2012-12-04 00:12:03 UTC) #4
commit-bot: I haz the power
Change committed as 170848
8 years ago (2012-12-04 00:13:50 UTC) #5
boliu
testOnPageFinishedCalledAfterError will pass with a connection error, so suing localhost:7 is fine. testOnReceivedErrorOnInvalidUrl explicitly checks ...
8 years ago (2012-12-04 08:20:19 UTC) #6
joth
I'd be tempted to change it to a bad URL and then look for ERROR_BAD_URL ...
8 years ago (2012-12-04 08:42:35 UTC) #7
mnaganov (inactive)
On Mon, Dec 3, 2012 at 11:05 PM, Bo Liu <boliu@chromium.org> wrote: > testOnPageFinishedCalledAfterError will ...
8 years ago (2012-12-04 10:05:37 UTC) #8
mkosiba (inactive)
the only reason this test checks for that specific error is because we have a ...
8 years ago (2012-12-04 11:25:55 UTC) #9
mnaganov (inactive)
You can write the resolver in Java. Another thing you need is to set the ...
8 years ago (2012-12-04 11:38:22 UTC) #10
mkosiba (inactive)
Oh, didn't know that. Thanks for the suggestion Mikhail! On Tue, Dec 4, 2012 at ...
8 years ago (2012-12-04 13:59:22 UTC) #11
joth
8 years ago (2012-12-04 23:07:33 UTC) #12
Sounds to me then like we'll get better overall coverage by using a
different error code? :)
but mikhail's the dns tricks sound good. do cts use either those?

oh, for good measure chromium also has a way to add pre-canned DNS resolver
rules for test too. see net/base/mock_host_resolver.h



On 4 December 2012 03:25, Martin Kosiba <mkosiba@chromium.org> wrote:

> the only reason this test checks for that specific error is because we
> have a CTS test that does the same thing.
> I wonder if we could somehow inject a mock dns resolver...
>
>
> On Mon, Dec 3, 2012 at 11:55 PM, Jonathan Dixon <joth@chromium.org> wrote:
>
>> I'd be tempted to change it to a bad URL and then look for ERROR_BAD_URL
>> instead. (I don't think there's reason we absolutely must check DNS failure
>> error code, but no others?)
>>
>>
>> On 3 December 2012 15:05, Bo Liu <boliu@chromium.org> wrote:
>>
>>> testOnReceivedErrorOnInvalidUrl
>>
>>
>>  --
>>
>>
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698