Closed
Bug 585778
Opened 14 years ago
Closed 14 years ago
Make Mozmill-test testCloseWindow local
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: u279076, Assigned: aaronmt)
References
Details
(Whiteboard: [litmus-data])
Attachments
(4 files, 3 obsolete files)
3.84 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
3.81 KB,
patch
|
u279076
:
review+
whimboo
:
review+
|
Details | Diff | Splinter Review |
3.81 KB,
patch
|
u279076
:
review+
whimboo
:
review+
|
Details | Diff | Splinter Review |
4.19 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
Module: testPrivateBrowsing/testCloseWindow.js
Test-page: Use any 2 pages from test-files/layout/mozilla*
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → aaron.train
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•14 years ago
|
||
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-
Assignee | ||
Comment 3•14 years ago
|
||
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-
Assignee | ||
Comment 5•14 years ago
|
||
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 7•14 years ago
|
||
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+
Assignee | ||
Comment 8•14 years ago
|
||
Attachment #465008 -
Attachment is obsolete: true
Attachment #465029 -
Flags: review?(hskupin)
Comment 9•14 years ago
|
||
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+
Reporter | ||
Comment 10•14 years ago
|
||
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
Assignee | ||
Comment 11•14 years ago
|
||
Assignee | ||
Comment 12•14 years ago
|
||
Assignee | ||
Updated•14 years ago
|
Attachment #465107 -
Flags: review?(anthony.s.hughes)
Assignee | ||
Updated•14 years ago
|
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+
Updated•14 years ago
|
Attachment #465107 -
Flags: review?(hskupin) → review+
Comment 13•14 years ago
|
||
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+
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [litmus-data] → [litmus-data][needs landing]
Comment 14•14 years ago
|
||
This hasn't been landed yet on older branches.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: checkin-needed
Assignee | ||
Updated•14 years ago
|
Status: REOPENED → ASSIGNED
Reporter | ||
Comment 15•14 years ago
|
||
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
Assignee | ||
Comment 16•14 years ago
|
||
Attachment #478113 -
Flags: review?(anthony.s.hughes)
Attachment #478113 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 17•14 years ago
|
||
(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 ago → 14 years ago
Resolution: --- → FIXED
Comment 18•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•5 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
•