Difference between revisions of "Contribute to Private Browsing Tests"
m (→History Unit Test) |
m (→History Unit Test) |
||
Line 110: | Line 110: | ||
add_visit(testURI, -i); | add_visit(testURI, -i); | ||
} | } | ||
− | }</pre> | + | }|</pre> |
== Project Weekly TODO == | == Project Weekly TODO == |
Revision as of 19:27, 26 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
- E-Mail: (marcia at mozilla dot org)
- Clint Talbert
- 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
- Possible Testing Areas
- Cookies -> Cookie Service
- History -> History Service and Bookmark Service
- Cache
- DOM Storage
- Content Prefs
- Passwords
- AutoComplete
- Authenticated Sessions
- Downloads
- Session Store
- Possible Testing Areas
- Unit Tests
Divided up into some kind of iteration group (0.1/0.2/0.3) of a testing suite. 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 Outline Plan
- 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
- AaronMT 23:45, 26 September 2008 (UTC)
- Wrote a new function that creates a handful of history items with various visit types.
Function - fillHistory() |
---|
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
Project NewsSeptember
External Links
Non-Related to project Other |