summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix JNI Bindings Browser Test.Ben Murdoch2010-09-061-1/+4
| | | | | | | | | The JNI bindings test was broken after BrowserFrame.documentAsText started to take a parameter to determine if it should capture the main or child frames. Update the call here to pass the correct parameter. Change-Id: I5142214164db371d9106d799bfa4e5bd7293dad3
* am f3c6c24d: am 179b9a1f: improvement test app\'s handling of irregular ↵Guang Zhu2010-08-181-5/+15
|\ | | | | | | | | | | | | | | | | status file Merge commit 'f3c6c24d6ba7dd448c67fc064a7becc029c5981f' * commit 'f3c6c24d6ba7dd448c67fc064a7becc029c5981f': improvement test app's handling of irregular status file
| * improvement test app's handling of irregular status fileGuang Zhu2010-08-171-5/+15
| | | | | | | | | | | | | | if it reads an empty line, or have reached end of file, it will default to the start from beginning scenario. Change-Id: Ife2e49bf8adf70d6caba7a1d65094401990325a2
| * fix crash recovery bug in PopularUrlsTestGuang Zhu2010-08-091-9/+3
| | | | | | | | | | | | | | | | 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
* | fix crash recovery bug in PopularUrlsTestGuang Zhu2010-07-261-9/+3
| | | | | | | | | | | | | | | | 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: I4eb0255e2bdf8eea0d3c16797cbb21e1711c3d5b
* | am 1c5fe40b: am d5a12e80: various fixes for browser test harnessGuang Zhu2010-07-191-14/+40
|\ \ | |/ | | | | | | | | | | Merge commit '1c5fe40bbea43d4a2d8de74ce169f9f705896f26' * commit '1c5fe40bbea43d4a2d8de74ce169f9f705896f26': various fixes for browser test harness
| * various fixes for browser test harnessGuang Zhu2010-07-191-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | am 6cb16461: am 91825062: add check for FileNotFoundExceptionGuang Zhu2010-06-161-13/+19
|\ \ | |/ | | | | | | | | | | Merge commit '6cb16461e1524eb3272b4e9440db6c041feacbb3' * commit '6cb16461e1524eb3272b4e9440db6c041feacbb3': add check for FileNotFoundException
| * add check for FileNotFoundExceptionGuang Zhu2010-06-161-13/+19
| | | | | | | | | | | | | | make the test fail gracefully instead of throwing exception. because otherwise it interrupts test run. Change-Id: Ia2b92355db83cd13c55263f0699b29c10e00ea96
| * improvement and fixes for bindings test (DO NOT MERGE)Guang Zhu2010-06-163-8/+44
| | | | | | | | | | | | | | | | | | | | * the name "testComplete" will cause test runner to actually execute it as a test case, which is not the intention here, changed to "notifyComplete" * the test depends on "/sdcard/bindings_test.html". since the same file is already being carried in the apk as asset, added a setup/teardown step to extract the file. this removes manual setup step for the tests. Change-Id: I74dc42a7ca0442a84910441e535d950c049efc98
* | Add support for the camera as a source for the file picker.Ben Murdoch2010-05-201-2/+2
| | | | | | | | | | | | | | Determine whether to show the camera based on the accept type associated with the input element. Change-Id: I48fea76fbd7a1f3df3c87288f28e01a32d9e955e
* | improvement and fixes for bindings testGuang Zhu2010-05-053-8/+44
|/ | | | | | | | | | * the name "testComplete" will cause test runner to actually execute it as a test case, which is not the intention here, changed to "notifyComplete" * the test depends on "/sdcard/bindings_test.html". since the same file is already being carried in the apk as asset, added a setup/teardown step to extract the file. this removes manual setup step for the tests. Change-Id: I45e1e9755ec829086fae6a36885153874f3a94a2
* Merge "add launch performance test for browser" into froyoGuang Zhu2010-04-022-0/+31
|\
| * add launch performance test for browserGuang Zhu2010-04-012-0/+31
| | | | | | | | | | | | this is part of a larger effort to collect app launch performance for the platform. Change-Id: Id7159c67b0d746c9a109988e05f53be6a10921af
* | Update the JNI bindings unit test in light of b/2540502Ben Murdoch2010-04-013-1/+30
| | | | | | | | Change-Id: I166331ce198fba188df5365695a20588870374c4
* | Add a test for verifying the JS -> Java bindings.Ben Murdoch2010-03-303-0/+720
|/ | | | Change-Id: I7d15efd5cc1c40d9c0c5b7cf1a5a7f9775a709d7
* Prevent HTTP auth dialog from shwoing during testGuang Zhu2010-03-241-0/+9
| | | | Change-Id: Ia10e72eec60d8c2155df95dec06334beb9feaab6
* updates and improvements on PopularUrlsTestGuang Zhu2010-03-221-13/+29
| | | | | | | | | * 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
* Writing page + time in one go so that the file always stays in an easily ↵John Spong2010-03-111-6/+1
| | | | | | parsable format. Change-Id: Ia7f5f216d21925aebf5c807ee95036ebf6f6fa35
* Adding ability to resume test after crash.John Spong2010-03-041-24/+200
| | | | | - Refactoring test method to allow for optional looping and cache cleaning - Adding test status output to resume + notify after a crash
* Merge "Implement test to iterate over list of URLs and store load times."John Spong2010-02-234-3/+577
|\
| * Implement test to iterate over list of URLs and store load times.Andrei Popescu2010-02-224-3/+577
| | | | | | | | Also patch makefiles to correctly build tests and allow for hidden API calls in test.
* | Add some unit tests for BrowserProviderBjorn Bringert2010-02-221-0/+168
|/ | | | | | | This includes a test for http://b/issue?id=2152749 fails, since that bug has not yet been fixed. Change-Id: Ie2a71fe056528975279548f52c69953cef4dca1b
* When a second database is created on an origin, ensure that the quota for ↵Ben Murdoch2010-02-181-4/+73
| | | | | | | | that origin is large enough to cover both databases (old and new). Fix for 2417477 Change-Id: I914b29a5f90a11fe3c3dc9a927a8720197b03560
* Revert "Add a test case in browser to measure the power usage of loading a ↵Xia Wang2009-09-025-413/+0
| | | | | | web page" This reverts commit a4d616c5291877646558d954f5e3cc9733309b4c.
* Add a test case in browser to measure the power usage of loading a web pageXia Wang2009-09-025-0/+413
|
* Use the estimated size of new databases as the default quota if we have ↵Ben Murdoch2009-08-261-20/+31
| | | | | | enough space to satisfy it. Change-Id:I23daac8fbf27f50f304ee53060353423deaed50a
* Add unit tests for the WebStorageSizemanager. Also reduce the default quota ↵Andrei Popescu2009-07-291-1/+133
| | | | and quota increase step
* Refactor the WebStorage size management:Andrei Popescu2009-07-291-25/+25
| | | | | | | - Abandon the Quota UI: it does not make sense to ask the users to decide individual database quota increases. It is unlikely anyone will be able to make a meaningul decision. - Introduce a global limit for all WebStorage content. This is shared between Database and AppCache. - Make the quota increase decision automatic - Treat out-of-space situations by creaying a system notification (TODO).
* Enforce app cache maximum sizeAndrei Popescu2009-07-233-0/+162