350
edits
(28 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
Make sure to check out the [[User:Mconnor/PrivateBrowsing|spec]] as well. | Make sure to check out the [[User:Mconnor/PrivateBrowsing|spec]] as well. | ||
The items which currently do have tests written in [https://bugzilla.mozilla.org/show_bug.cgi?id=248970|bug 248970] have been marked with a star next to their titles. | |||
=Testing areas= | =Testing areas= | ||
Line 7: | Line 9: | ||
==Cookies== | ==Cookies== | ||
=== | === Unit Tests * === | ||
* Create a cookie (Cookie-A) for a dummy site with specific details. | * Create a cookie (Cookie-A) for a dummy site with specific details. | ||
Line 22: | Line 24: | ||
==History== | ==History== | ||
=== Unit Tests === | === Unit Tests * === | ||
* start with an empty history DB | * start with an empty history DB | ||
Line 31: | Line 33: | ||
* enter private browsing mode | * enter private browsing mode | ||
* repeat the history verification step again via IsVisited only, should always return false. | * repeat the history verification step again via IsVisited only, should always return false. | ||
* try to | * try to check if the bookmark (Bookmark-A) has been visited, should fail | ||
* Add another series of history items. | * Add another series of history items. | ||
* Check for the second set of history URLs, none should be stored or retrievable. | * Check for the second set of history URLs, none should be stored or retrievable. | ||
Line 41: | Line 43: | ||
==Cache== | ==Cache== | ||
=== Unit Tests * === | |||
* Check that the memory, disk and offline cache devices are available. | |||
* Create an in memory cache entry (cache-A). | |||
* Create an on disk cache entry (cache-B). | |||
* Create an offline cache entry (cache-C). | |||
* Check that the cache entries are retrievable. | |||
* Enter private browsing mode. | |||
* Check that neither of the cache entries are retrievable. | |||
* Check that only the memory device is available. | |||
* Check that the memory device is empty. | |||
* Exit Private Browsing mode. | |||
* Check that the memory, disk and offline cache devices are available. | |||
* Check that Cache-A is gone. | |||
* Check that Cache-B is available. | |||
* Check that Cache-C is available. | |||
==Site Permissions== | ==Site Permissions== | ||
=== Unit Tests === | === Unit Tests * === | ||
No new unit tests for the component are required because we will not be making changes to the behaviour of the component. | |||
==Content prefs== | |||
=== Unit Tests * === | |||
* Save a zoom setting for a sample site (Zoom-A) | * Save a zoom setting for a sample site (Zoom-A) | ||
Line 58: | Line 83: | ||
==Passwords== | ==Passwords== | ||
=== Unit Tests * === | |||
* Save a login for a test page | |||
* Load test page, ensure that form is filled in | |||
* Enter private browsing mode | |||
* Load test page again, ensure that form is '''not''' filled in, but that autocomplete is enabled. | |||
* Exit private browsing mode | |||
* Load test page again, ensure that form is filled in. | |||
=== Browser UI Tests * === | |||
* Submit a form with a password. Verify that prompt appears to ask to save password. | |||
* Enter private | |||
* Submit a form with a password, Verify no prompt appears. | |||
* Exit private browsing | |||
* Submit a form with a password. Verify that prompt appears to ask to save password. | |||
* Submit a form which can change a password. Verify that prompt appears to ask to change the password. | |||
* Enter private | |||
* Submit a form which can change a password, Verify no prompt appears. | |||
* Exit private browsing | |||
* Submit a form which can change a password. Verify that prompt appears to ask to change the password. | |||
==Autocomplete== | ==Autocomplete== | ||
=== Unit Tests * === | |||
* Save a form history pair (Pair-A) | |||
* Ensure that Pair-A exists | |||
* Enter private browsing mode | |||
* Ensure that Pair-A exists | |||
* Attempt to save another form history pair (Pair-B) | |||
* Ensure that Pair-B does not exist | |||
* Exit private browsing mode | |||
* Ensure that Pair-A exists | |||
* Ensure that Pair-B does not exist | |||
==DOM Storage== | ==DOM Storage== | ||
=== Unit Tests * === | |||
* Save a data pair (Pair-A) | |||
* Ensure that Pair-A exists | |||
* Enter private browsing mode | |||
* Ensure that Pair-A exists | |||
* Attempt to save another data pair (Pair-B): should throw NS_ERROR_DOM_SECURITY_ERR | |||
* Ensure that Pair-B does not exist | |||
* Exit private browsing mode | |||
* Ensure that Pair-A exists | |||
* Ensure that Pair-B does not exist | |||
==Authenticated sessions== | ==Authenticated sessions== | ||
=== Unit Tests * === | |||
* Log into a site via http auth. | |||
* Enter private browsing mode | |||
* Verify that site is no longer authenticated | |||
==Downloads== | ==Downloads== | ||
== | === Unit Tests * === | ||
* Create a download (Download-A) with specific details. | |||
* Check that Download-A is retrievable. | |||
* Enter private browsing mode. | |||
* Check that Download-A is not accessible. | |||
* Create another download (Download-B) with specific and different details. | |||
* Check that Download-B is retrievable. | |||
* Exit private browsing mode. | |||
* Check that Download-A is retrievable. | |||
* Check that Download-B is not accessible. | |||
* Create a new download (Download-C) with specific details. Start it and enter private browsing mode immediately. | |||
* Check that Download-C doesn't finish in a reasonable time. | |||
* Exit the private browsing mode. | |||
* Verify that Download-C finishes correctly now. | |||
==Session store== | ==Session store== | ||
=== Unit Tests * === | |||
* On entry, record the timestamp of the session restore file. | |||
* On exit, before reopening the session, ensure that all current session data is gone. Also verify that the timestamp is unchanged. | |||
=== Browser Tests * === | |||
* Ensure that the session before and after private browsing is restored correctly (normal session restore constraints apply) |
edits