Closed Bug 585778 Opened 14 years ago Closed 14 years ago

Make Mozmill-test testCloseWindow local

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: aaronmt)

References

Details

(Whiteboard: [litmus-data])

Attachments

(4 files, 3 obsolete files)

Module: testPrivateBrowsing/testCloseWindow.js Test-page: Use any 2 pages from test-files/layout/mozilla*
Blocks: 579965
Assignee: nobody → aaron.train
Status: NEW → ASSIGNED
Attached patch Patch v1 - (default) (obsolete) — Splinter Review
Attachment #464981 - Flags: review?(anthony.s.hughes)
Comment on attachment 464981 [details] [diff] [review] Patch v1 - (default) >-var websites = [ >- {url: 'https://addons.mozilla.org/', id: 'search-query'}, >- {url: 'https://bugzilla.mozilla.org', id: 'quicksearch_top'} >- ]; >+const LOCAL_TEST_FOLDER = collector.addHttpResource('../test-files/'); >+const LOCAL_PAGES = [ >+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla.html', >+ name: 'community', index: 0}, >+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla_mission.html', >+ name: 'mission', index: 1} >+ ]; > 1. Please rename LOCAL_PAGES to LOCAL_TEST_PAGES to keep it the same as the rest of our tests 2. I don't see "index" as particularly useful. Just use i in the for-loops below. >+ // Wait until all tabs have finished loading >+ for each(var localPage in LOCAL_PAGES) { >+ var elem = new elementslib.Name(controller.tabs.getTab(localPage.index), localPage.name); >+ controller.waitForElement(elem); > } Convert this to a for-loop with iterator i. >+ for each(var page in LOCAL_PAGES) { >+ var elem = new elementslib.Name(controller.tabs.getTab(localPage.index), localPage.name); >+ controller.waitForPageLoad(page); >+ controller.waitForElement(elem); > } > } Same here.
Attachment #464981 - Flags: review?(anthony.s.hughes) → review-
Attached patch Patch v2 - (default) (obsolete) — Splinter Review
Attachment #464981 - Attachment is obsolete: true
Attachment #464995 - Flags: review?(anthony.s.hughes)
Comment on attachment 464995 [details] [diff] [review] Patch v2 - (default) >+ >+ for each(var localPage in LOCAL_TEST_PAGES) { >+ controller.open(localPage.url); > controller.click(newTab); > } > nit: simply use page instead of localPage This puts the test inline with what I have been using.
Attachment #464995 - Flags: review?(anthony.s.hughes) → review-
Attached patch Patch v3 - (default) (obsolete) — Splinter Review
I think we should add a reply in the meta bug that lists some 'to-be-expected' copy-cat expectations for each test.
Attachment #464995 - Attachment is obsolete: true
Attachment #465008 - Flags: review?(anthony.s.hughes)
Comment on attachment 465008 [details] [diff] [review] Patch v3 - (default) Looks good, r+, over to Henrik for final review.
Attachment #465008 - Flags: review?(hskupin)
Attachment #465008 - Flags: review?(anthony.s.hughes)
Attachment #465008 - Flags: review+
Comment on attachment 465008 [details] [diff] [review] Patch v3 - (default) >+const LOCAL_TEST_PAGES = [ >+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla.html', name: 'community'}, >+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla_mission.html', name: 'mission'} >+ ]; 2 spaces as indentation for arrays please. >+ for each(var page in LOCAL_TEST_PAGES) { nit: Please add a space behind 'each' >+ for(var i = 0; i < LOCAL_TEST_PAGES.length; i++) { nit: and here after 'for'. >+ for(var i = 0; i < LOCAL_TEST_PAGES.length; i++) { again. r=me with those comments addressed.
Attachment #465008 - Flags: review?(hskupin) → review+
Attachment #465008 - Attachment is obsolete: true
Attachment #465029 - Flags: review?(hskupin)
Comment on attachment 465029 [details] [diff] [review] Patch v4 - (default) >+ for each(var page in LOCAL_TEST_PAGES) { You missed that space. I'm sure Anthony can correct it before the checkin.
Attachment #465029 - Flags: review?(hskupin) → review+
Landed on default: http://hg.mozilla.org/qa/mozmill-tests/rev/38462c38072c Please submit follow up patches for 1.9.1 and 1.9.2
Attachment #465107 - Flags: review?(anthony.s.hughes)
Attachment #465109 - Flags: review?(anthony.s.hughes)
Attachment #465107 - Flags: review?(hskupin)
Attachment #465107 - Flags: review?(anthony.s.hughes)
Attachment #465107 - Flags: review+
Attachment #465109 - Flags: review?(hskupin)
Attachment #465109 - Flags: review?(anthony.s.hughes)
Attachment #465109 - Flags: review+
Attachment #465107 - Flags: review?(hskupin) → review+
Comment on attachment 465109 [details] [diff] [review] Patch v4 - (1.9.1) There is no difference to the patch for 1.9.2. Let's add only one back-port patch in the future if that one is enough.
Attachment #465109 - Flags: review?(hskupin) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [litmus-data] → [litmus-data][needs landing]
This hasn't been landed yet on older branches.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: checkin-needed
Status: REOPENED → ASSIGNED
Sorry for the lateness, these fell off my radar. The patches have now bitrotted. Aaron, can you please update the patches? Thanks.
Whiteboard: [litmus-data][needs landing] → [litmus-data]
Keywords: checkin-needed
Attachment #478113 - Flags: review?(anthony.s.hughes)
Attachment #478113 - Flags: review?(anthony.s.hughes) → review+
(In reply to comment #16) > Created attachment 478113 [details] [diff] [review] > Patch v4 - (1.9.2 & 1.9.1) - [bitrot fix] Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/415fcf456720 [mozilla1.9.2] http://hg.mozilla.org/qa/mozmill-tests/rev/69ece7d4a5bc [mozilla1.9.1]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago14 years ago
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

Created:
Updated:
Size: