350
edits
(Write up the unit test plan for the Autocomplete module) |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 108: | Line 108: | ||
==Autocomplete== | ==Autocomplete== | ||
=== Unit Tests === | === Unit Tests * === | ||
* Save a form history pair (Pair-A) | * Save a form history pair (Pair-A) | ||
* Ensure that Pair-A exists | * Ensure that Pair-A exists | ||
Line 120: | Line 120: | ||
==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== | ||
Line 130: | Line 142: | ||
==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 === | === Unit Tests * === | ||
* On entry, record the timestamp of the session restore file. | * 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. | * On exit, before reopening the session, ensure that all current session data is gone. Also verify that the timestamp is unchanged. | ||
=== Browser Tests === | === Browser Tests * === | ||
* Ensure that the session before and after private browsing is restored correctly (normal session restore constraints apply) | * Ensure that the session before and after private browsing is restored correctly (normal session restore constraints apply) |
edits