History log of /packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4d2fcaba7fb8eb1723943ac9a10e76d509330bd1 24-Feb-2012 Jonathan Dixon <joth@google.com> Fixup browser to use WebView proxy

Has to escape out to WebViewClassic whenever it needs a hidden API.

Interdepends on https://android-git.corp.google.com/g/165608

Change-Id: Ic61dd7f57f75381864075605d5901f2688648cbd
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
1608e30403d4cd4f60d14bf2263443421e85b028 12-Jul-2011 Guang Zhu <guangzhu@google.com> Don't open new tab when launching new site in test

append an EXTRA_APPLICATION_ID field in the intent to navigate to
a new website, so that the browser won't open a new tab for every
new site

Change-Id: I69dddabeef83e124c43adab7bf3ed1e064b396ab
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
cbba1f3ecd54bda183f877a4b873ac9732d77f52 12-Jul-2011 Guang Zhu <guangzhu@google.com> Fix the calls to WebView from non-UI thread in test app

WebView is complaining that some calls used in test app is not from
UI thread.

Change-Id: I7ef61694e3988a663eeedf03463580a93e57fe46
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
8862c1dd48ac83011411c469afb5065b6d0c32f9 02-Jun-2011 Brian Carlstrom <bdc@google.com> Provide Browser implementation of WebViewClient.onReceivedClientCertRequest

Following the example of onReceivedSslError, implement onReceivedClientCertRequest

ERROR CASE CLIENT CERT CASE
<... From frameworks/base ...> <... From frameworks/base ...>
Tab.SubWindowClient.onReceivedSslError Tab.SubWindowClient.onReceivedClientCertRequest
Tab.mWebViewClient.onReceivedSslError Tab.mWebViewClient.onReceivedClientCertRequest
<... ssl_warnings dialog ...> <... KeyChain.choosePrivateKeyAlias/KeyChainLookup ...>
SslErrorHandler.proceed (with SslCertLookupTable) ClientCertRequestHandler.proceed (with SslClientCertLookupTable)
<... To frameworks/base ...> <... To frameworks/base ...>

Change-Id: I3ed3789c4efc97c87ab4773cdaed3e654a1fd1e3
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
9e78f51d14b9a16d645b754e073f549a5891db26 04-May-2011 Guang Zhu <guangzhu@google.com> add an intent parameter to skip crash recovery

This is useful for testing, where crash recovery is handled by the
tests and also dialog interaction in undesirabls and also dialog
interaction in undesirable. Also included a minor unrelated change
to test app to handle/disable pop windows.

Change-Id: Iab337b31c803d50b74ba24ca80cc614fa752a846
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
1bfab02d46cff0a6cef679dfbfc72007270b705e 18-Feb-2011 Guang Zhu <guangzhu@google.com> fix a bug in crash handling

currently, if a page load ended up in Java crash, the crash will be
intercepted by test harness and during the test tearDown step, the
test status file will be removed, and the harness would think all
sites have been loaded successfully

Change-Id: Ifc02d7f4b7e76c8e8aad06fff273f9d61060874d
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
2c82138d9e347120e5a4d6f5555484f8ef718f5f 17-Dec-2010 Guang Zhu <guangzhu@google.com> throw RuntimeException if failed to stop a timedout site

this situation usually happens when WebView is spinning or
deadlocked on something, throwing a RuntimeException will
make this kind of error more noticeable

Change-Id: Id2f495494f67206830fd9d9e8a4bc2b175e82614
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
afdb794ba4a05716dfc52be7c4d3885fb4174d4a 13-Dec-2010 Guang Zhu <guangzhu@google.com> prevent browser test from launching non-http urls

some websites may trigger the browser to launch a non-http url.
typical case is that some website saw the client is Android, then
launch a market search urln to promote their native app.

Change-Id: I7785f66c8516a95597fd264b88f130008c309618
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
39e1cbdbc5f20314fe4ae48b85aa37a8e0b2f128 11-Dec-2010 Guang Zhu <guangzhu@google.com> some improvements for browser test harness

* intercept JavaScript onUnload confirmation, no dialog shown
* using null download manager to avoid actual downloading during
random url test

Change-Id: I41758a87a0c5de5b42d34db8a403bb6d6ca053b2
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
14107b7a9857444a8cc7e418ae3bb9526f38e641 03-Dec-2010 Guang Zhu <guangzhu@google.com> popular url test should load website list from external file

There are two reasons to use hardcoded external path as website
list: 1) the InstrumentationTestRunner did not provide a
mechanism for passing extra parameters down to test class, so
it's hard to provide test class with a location of test list file
in a parameter 2) if we include the test list file as part of the
asset and loaded via context during test, then it become hard for
test harness to inject a list at test execution time because test
list file is essentially compiled in when the apk is generated.
So I'm reverting the test list loading part back to previous
approach.

Change-Id: I5532de8d153172771dba160d6ad89092f81ec6e4
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
4155485914f9e47b8ab22000fe6ef8ddad1f70f4 01-Dec-2010 John Reck <jreck@google.com> Fixes test errors

Bug: 3248213
Fixes errors in the tests that were caused by missing files, proguard,
and the refactor.

Change-Id: I503dfc7ee42d0173e3a5ad032f58a6f4f310588c
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
179b9a1fe98d371dc2064322ec227ba13065f921 18-Aug-2010 Guang Zhu <guangzhu@google.com> improvement test app's handling of irregular status file

if it reads an empty line, or have reached end of file, it
will default to the start from beginning scenario.

Change-Id: Ife2e49bf8adf70d6caba7a1d65094401990325a2
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
db8a53fa5eda4ba60733775ca62e4dd914259c52 27-Jul-2010 Guang Zhu <guangzhu@google.com> fix crash recovery bug in PopularUrlsTest

Currently the test does not increment page count after relaunched
after a crash. This means the crashed page will be loaded again,
causing a dead loop.

Change-Id: If4591fbd05521f0454151affafec09788e9208d9
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
d5a12e80fcd3ff53a1c975db2f6a89c0f28ed6cc 20-Jul-2010 Guang Zhu <guangzhu@google.com> various fixes for browser test harness

* the definitive way to determine page load finish seems to be
onPageLoadFinished AND onProgressChanged==100, changing test
harness logic to reflect that

* webview does not seem to be happen if ClearCache is called too
often (or for certain pages?). It may complain that failed to
delete blahblah, then the test harness goes crazy. So changing
cache clear to after an entire iteration of web pages have been
loaded

* browser will load default home page, which may be disruptive
to the page load process. So for the test, the browser is now
started with initial intent to visit about:blank, which does
not trigger any page load at all

Change-Id: I1cfbd8d0196a05caea6a1c5137f45f1f59cc4c5f
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
91825062617f361fdf3687811194195678123391 16-Jun-2010 Guang Zhu <guangzhu@google.com> add check for FileNotFoundException

make the test fail gracefully instead of throwing exception. because
otherwise it interrupts test run.

Change-Id: Ia2b92355db83cd13c55263f0699b29c10e00ea96
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
c5b6ba019f00b5f83b3b6838fc7d0bd08bb84dd7 24-Mar-2010 Guang Zhu <guangzhu@google.com> Prevent HTTP auth dialog from shwoing during test

Change-Id: Ia10e72eec60d8c2155df95dec06334beb9feaab6
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
bbace44a2cdcc1747892a3de5d3b80422d426538 22-Mar-2010 Guang Zhu <guangzhu@google.com> updates and improvements on PopularUrlsTest

* changed time recording unit from ns to ms
* implemented a timeout mechanism for page loading
* fixed a bug where url list will iterate forever
* minor changes in logging

Change-Id: I5f9812d2573d6942ddf404cf3fbb1782f328c73d
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
98e1137fe2221b6370a7e19ded46313d7bc5e4a6 11-Mar-2010 John Spong <spong@google.com> Writing page + time in one go so that the file always stays in an easily parsable format.

Change-Id: Ia7f5f216d21925aebf5c807ee95036ebf6f6fa35
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
28bd1c1c758e5abc10624fd0ceedc41916b6fa59 04-Mar-2010 John Spong <spong@google.com> Adding ability to resume test after crash.

- Refactoring test method to allow for optional looping and cache cleaning
- Adding test status output to resume + notify after a crash
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java
606e9392b3585a5ca401d65e1515963390b5e8ff 09-Feb-2010 Andrei Popescu <andreip@google.com> Implement test to iterate over list of URLs and store load times.

Also patch makefiles to correctly build tests and allow for hidden API calls in test.
/packages/apps/Browser/tests/src/com/android/browser/PopularUrlsTest.java