Closed
Bug 585781
Opened 15 years ago
Closed 14 years ago
Make Mozmill-test testStartStopPBMode local
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: u279076, Assigned: u279076)
References
Details
(Whiteboard: [litmus-data])
Attachments
(3 files, 2 obsolete files)
7.55 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
7.58 KB,
patch
|
Details | Diff | Splinter Review | |
5.98 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
Module: testPrivateBrowsing/testStartStopPBMode.js
Test-page: Use any 1 page from test-files/layout/mozilla*
Attachment #464998 -
Flags: review?(aaron.train)
Comment 2•15 years ago
|
||
Comment on attachment 464998 [details] [diff] [review]
Patch v1 (default)
># HG changeset patch
># User Anthony Hughes <ahughes@mozilla.com>
># Date 1281568715 25200
># Node ID 03d1d5848acdecaab48e54e0f92b1076d81e591d
># Parent 59901f2281ede0840e7550269a6609cca8c468fa
> * Contributor(s):
> * Henrik Skupin <hskupin@mozilla.com>
>- * Aaron Train <atrain@mozilla.com
>+ * Aaron Train <atrain@mozilla.com>
>+ * Anthony Hughes <ahughes@mozilla.com>
Thanks.
> // Wait until all tabs have been finished loading
>- for each(var localPage in LOCAL_PAGES) {
>- var elem = new elementslib.ID(controller.tabs.getTab(localPage.index), localPage.id);
>+ for (var i=0; i<LOCAL_TEST_PAGES.length; i++) {
>+ var elem = new elementslib.ID(controller.tabs.getTab(i), LOCAL_TEST_PAGES[i].id);
> controller.waitForElement(elem, TIMEOUT);
> }
Nit: Spaces within the declarations and conditions in the for statement.
>- for (var ii = 0; ii < LOCAL_PAGES.length; ii++) {
>- var elem = new elementslib.ID(controller.tabs.getTab(ii), LOCAL_PAGES[ii].id);
>+ for (var i=0; i<LOCAL_TEST_PAGES.length; i++) {
>+ var elem = new elementslib.ID(controller.tabs.getTab(i), LOCAL_TEST_PAGES[i].id);
> controller.waitForElement(elem, TIMEOUT);
> }
Same here
Attachment #464998 -
Flags: review?(aaron.train) → review-
Attachment #464998 -
Attachment is obsolete: true
Attachment #465039 -
Flags: review?(aaron.train)
Updated•15 years ago
|
Attachment #465039 -
Flags: review?(aaron.train) → review+
Attachment #465039 -
Flags: review?(hskupin)
Comment 4•15 years ago
|
||
Comment on attachment 465039 [details] [diff] [review]
Patch v2 (default)
>+const LOCAL_TEST_PAGES = [
>+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla.html',
>+ id: 'community'},
>+ {url: 'about:',
>+ id: 'aboutPageList'}
>+ ];
The indentation has been messed-up.
>+ for each(var page in LOCAL_TEST_PAGES) {
nit: please add a space behind each.
>- controller.assertJS("subject.tabs.length == " + (LOCAL_PAGES.length + 1),
>+ controller.assertJS("subject.tabs.length == " + (LOCAL_TEST_PAGES.length + 1),
> controller);
Please pass in both variables as object members instead of concatenating strings.
Attachment #465039 -
Flags: review?(hskupin) → review-
nits addressed, also found a couple other assertJS() which could have used the treatment.
Attachment #465039 -
Attachment is obsolete: true
Attachment #465866 -
Flags: review?(hskupin)
Updated•15 years ago
|
Attachment #465866 -
Attachment is patch: true
Attachment #465866 -
Attachment mime type: application/octet-stream → text/plain
Comment 6•15 years ago
|
||
Comment on attachment 465866 [details] [diff] [review]
Patch v3 (default)
> var setupModule = function(module) {
>+var teardownModule = function(module) {
nit: please remove module.
r=me with that comment addressed.
Attachment #465866 -
Flags: review?(hskupin) → review+
> Created attachment 465890 [details] [diff] [review]
> Patch v3 (default) + nits
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/72c30a7df39f (default)
Does not cleanly apply to mozilla1.9.2 and mozilla1.9.1, patch forthcoming.
Comment 9•14 years ago
|
||
(In reply to comment #8)
> > Created attachment 465890 [details] [diff] [review] [details]
> > Patch v3 (default) + nits
>
> Landed:
> http://hg.mozilla.org/qa/mozmill-tests/rev/72c30a7df39f (default)
>
> Does not cleanly apply to mozilla1.9.2 and mozilla1.9.1, patch forthcoming.
Done. Applies to 1.9.2 and 1.9.1
Attachment #477979 -
Flags: review?(anthony.s.hughes)
Attachment #477979 -
Flags: review?(anthony.s.hughes) → review+
Keywords: checkin-needed
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to comment #9)
> Created attachment 477979 [details] [diff] [review]
> Patch v3 - (1.9.2)
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/443179c65eec [mozilla1.9.2]
http://hg.mozilla.org/qa/mozmill-tests/rev/4920f5aa349f [mozilla1.9.1]
Comment 11•14 years ago
|
||
Move of Mozmill Test related project bugs to newly created components. You can
filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•