Closed Bug 585781 Opened 15 years ago Closed 14 years ago

Make Mozmill-test testStartStopPBMode local

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: u279076)

References

Details

(Whiteboard: [litmus-data])

Attachments

(3 files, 2 obsolete files)

Module: testPrivateBrowsing/testStartStopPBMode.js Test-page: Use any 1 page from test-files/layout/mozilla*
Blocks: 579965
Assignee: nobody → anthony.s.hughes
Status: NEW → ASSIGNED
Attached patch Patch v1 (default) (obsolete) — Splinter Review
Attachment #464998 - Flags: review?(aaron.train)
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-
Attached patch Patch v2 (default) (obsolete) — Splinter Review
Attachment #464998 - Attachment is obsolete: true
Attachment #465039 - Flags: review?(aaron.train)
Attachment #465039 - Flags: review?(aaron.train) → review+
Attachment #465039 - Flags: review?(hskupin)
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)
Attachment #465866 - Attachment is patch: true
Attachment #465866 - Attachment mime type: application/octet-stream → text/plain
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.
(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
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
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
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: