Difference between revisions of "Contribute to Private Browsing Tests"
m (→Project Milestone Information) |
m (→September) |
||
Line 163: | Line 163: | ||
| | | | ||
=== September === | === September === | ||
+ | * [[User:AaronMT|AaronMT]] 21:06, 29 September 2008 (UTC) | ||
+ | ** Spoke with Ehsan over email about nsINavHistoryService object querying using higher level API over lower level SQL. | ||
* [[User:AaronMT|AaronMT]] 23:35, 25 September 2008 (UTC) | * [[User:AaronMT|AaronMT]] 23:35, 25 September 2008 (UTC) | ||
**New patch released, downloaded and spoke with Ehsan on IRC over properly installing new patch as well as what test plans I can write | **New patch released, downloaded and spoke with Ehsan on IRC over properly installing new patch as well as what test plans I can write |
Revision as of 16:06, 29 September 2008
Contents
Private Browsing Tests
- Project assigned to AaronMT
An Introduction
Background history
"The purpose of private browsing is to put Firefox into a temporary state where no information about the user's browsing session is stored locally. Firefox currently handles the user's privacy with a feature in preferences to clear all private data. This feature forces the user to choose between having privacy (even if only momentary), and other useful features like browsing history, and saved passwords. Users should be able to go "off the record", they shouldn't have to shoot the reporter. " wiki.mozilla.org/PrivateBrowsing
The Project Offered
The new Private Browsing feature (see bug 248970 and the test plan) needs thorough tests written in order to insure its proper functionality. This will involve collaborating with those writing the patch and tests in order to develop a full suite of tests. Resources: ehsan, discussion of Private Browsing
- Helpful Contacts:
- Ehsan Akhgari
- E-Mail: (ehsan dot akhgari at gmail dot com)
- Marcia Knous (QA)
- E-Mail: (marcia at mozilla dot org)
- Clint Talbert (QA Dev Engineer)
- E-Mail: (ctalbert at mozilla dot com)
- IRC: ctalbert
- Ehsan Akhgari
Project Description
- Private Browsing Test Plan (Outlined by Marcia Knous)
- Private Browsing - Unit Tests
- Possible Project Release Iteration
- Unit Tests
- Areas Started / Perhaps finished by Ehsan
- Cookies -> Cookie Service
- Site Permissions
- Content Prefs
- Passwords
- Authenticated Sessions
- History -> History Service and Bookmark Service
- Cache
- DOM Storage
- AutoComplete
- Downloads
- Session Store
- Browser Tests
- Areas Started / Perhaps finished by Ehsan
- Unit Tests
Milestone 0.1 will contain the History component unit test. Note: Some areas already covered by Ehsan and others working on Bug #248970.
Private Browsing Test Plan
Private Browsing Unit Tests
Project Milestone Information
- For the first iteration phase, I plan to have complete
- Testing Areas
- Unit Tests
- Places/History
- Spec: Outline Plan
- Places/History
- Unit Tests
- Testing Areas
What to expect for 0.1 release?
- I plan to have a unit test complete for the testing area involved with places and history. This will be submitted to Ehsan as well.
Project Notes
- To run a single unit-test use check-one SOLO_FILE
- Example
make SOLO_FILE=test_bug248970.js -C objdir/netwerk/test check-one
Project Leader(s)
Project Contributor(s)
Project Details
History Unit Test Notes
- AaronMT 00:41, 27 September 2008 (UTC)
- Using a Mozilla function that checks to see if a URI exists in a database.
test_248970_history - uri_in_DB(URI) |
---|
/** * Checks to see that a URI is in the database. * * @param aURI * The URI to check. * @returns true if the URI is in the DB, false otherwise. */ function uri_in_db(aURI) { var options = histsvc.getNewQueryOptions(); options.maxResults = 1; options.resultType = options.RESULTS_AS_URI var query = histsvc.getNewQuery(); query.uri = aURI; var result = histsvc.executeQuery(query, options); var root = result.root; root.containerOpen = true; return (root.childCount == 1); } |
- AaronMT 23:45, 26 September 2008 (UTC)
- Wrote a new function that creates a handful of history items with various visit types.
test_248970_history - fill_history() |
---|
var dayLabels = [ "Today", "Yesterday", "2 days ago", "3 days ago", "4 days ago", "5 days ago", "6 days ago", "Older than 6 days" ]; /** * Function fills history and checks if date labels * are correct for partially filled history * * @returns nothing */ function fill_history() { const checkOlderOffset = 4; // add visits for the older days for (var i=checkOlderOffset; i<dayLabels.length; i++) { var testURI = uri("http://mirror"+i+".mozilla.com/b"); add_visit(testURI, -i); var testURI = uri("https://mirror"+i+".mozilla.com/a"); add_visit(testURI, -i); var testURI = uri("ftp://mirror"+i+".google.com/b"); add_visit(testURI, -i); var testURI = uri("http://mirror"+i+".google.com/a"); add_visit(testURI, -i); } } |
Project Weekly TODO
My Weekly TODO for September |
---|
|
Project News
September |
---|
September
|
External Links
- Detailed Private Browsing Spec (Mozilla)
- Private Browsing (Mozilla)
- Build:TryServer (Mozilla)
- Tinderbox:Tree(MozillaTry) (Mozilla)
- XPCShell Based Unit Tests
Non-Related to project