Closed
Bug 585760
Opened 14 years ago
Closed 14 years ago
Make Mozmill-test testFindInPage 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, 7 obsolete files)
3.54 KB,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
3.18 KB,
patch
|
u279076
:
review+
|
Details | Diff | Splinter Review |
8.88 KB,
patch
|
whimboo
:
review-
|
Details | Diff | Splinter Review |
8.64 KB,
patch
|
Details | Diff | Splinter Review |
Module: testFindInPage/testFindInPage.js
Test-page: Use any 1 page 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 #465639 -
Flags: review?(anthony.s.hughes)
Comment on attachment 465639 [details] [diff] [review]
Patch v1 - (default)
>+const LOCAL_TEST_PAGES = [
>+ {url: LOCAL_TEST_FOLDER + 'layout/mozilla.html'}
>+];
>+ // Open a local page
>+ controller.open(LOCAL_TEST_PAGES[0].url);
> controller.waitForPageLoad();
>
It's unnecessary for this to be an array. Simply use the following:
const LOCAL_TEST_PAGES = LOCAL_TEST_FOLDER + 'layout/mozilla.html';
Attachment #465639 -
Flags: review?(anthony.s.hughes) → review-
Assignee | ||
Comment 3•14 years ago
|
||
NOTE: Lookup change on default that is different than that on 1.9.1 and 1.9.2
Attachment #465639 -
Attachment is obsolete: true
Attachment #465739 -
Flags: review?(anthony.s.hughes)
Assignee | ||
Updated•14 years ago
|
Attachment #465739 -
Flags: review?(anthony.s.hughes)
Assignee | ||
Updated•14 years ago
|
Attachment #465739 -
Attachment is obsolete: true
Assignee | ||
Comment 4•14 years ago
|
||
This test has sleeps(0) that should be removed too. Patch forthcoming.
Attachment #465739 -
Flags: review?(hskupin)
Assignee | ||
Updated•14 years ago
|
Attachment #465739 -
Flags: review?(hskupin) → review-
Assignee | ||
Updated•14 years ago
|
Attachment #465739 -
Flags: review-
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #465759 -
Flags: review?(anthony.s.hughes)
Attachment #465759 -
Flags: review?(hskupin)
Attachment #465759 -
Flags: review?(anthony.s.hughes)
Attachment #465759 -
Flags: review+
Comment 6•14 years ago
|
||
Comment on attachment 465759 [details] [diff] [review]
Patch v3 - (default)
This patch is bit-rotted based on bug 586997. Please update.
Attachment #465759 -
Flags: review?(hskupin)
Assignee | ||
Comment 7•14 years ago
|
||
Attachment #465759 -
Attachment is obsolete: true
Attachment #465858 -
Flags: review?(hskupin)
Updated•14 years ago
|
Attachment #465858 -
Flags: review?(hskupin) → review+
> Created attachment 465858 [details] [diff] [review]
> Patch v3 - (default)
Landed on default:
http://hg.mozilla.org/qa/mozmill-tests/rev/80a98ff34d36
Does not apply cleanly to mozilla1.9.2 or mozilla1.9.1, please provide followup patch.
Assignee | ||
Comment 9•14 years ago
|
||
Attachment #465922 -
Flags: review?(anthony.s.hughes)
Assignee | ||
Comment 10•14 years ago
|
||
1.9.1 had messy lookups all over the place extending more than 80 character limit lines. I rearranged everything and properly referenced the different lookup for the findbar-textbox that's different than it's counterpart in 1.9.2
Attachment #465923 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #465923 -
Flags: review? → review?(anthony.s.hughes)
Attachment #465922 -
Flags: review?(anthony.s.hughes) → review+
Reporter | ||
Comment 11•14 years ago
|
||
Comment on attachment 465923 [details] [diff] [review]
Patch v3 - (1.9.1)
Code-wise it looks good, I just have some minor formatting nits:
>+ containerString = '/id("main-window")' +
>+ '/id("browser-bottombox")/id("FindToolbar")' +
>+ '/anon({"anonid":"findbar-container"})';
Please fix the indentation (make the front / aligned)
>+ findBarTextField = new elementslib.Lookup(controller.window.document,
>+ containerString + '/anon({"anonid":"find-field-container"})' +
>+ '/anon({"anonid":"findbar-textbox"})');
Please move the appended string in the 2nd line to it's own line.
>+ var selectedText = tabContent.getSelection();
> controller.assertJS("subject.selectedText == subject.searchTerm",
> {selectedText: selectedText.toString().toLowerCase(), searchTerm: searchTerm});
Please put each subject member on its own line.
Attachment #465923 -
Flags: review?(anthony.s.hughes) → review-
Assignee | ||
Comment 12•14 years ago
|
||
fixes from comment #11
Attachment #465923 -
Attachment is obsolete: true
Attachment #469156 -
Flags: review?(anthony.s.hughes)
Attachment #469156 -
Flags: review?(hskupin)
Attachment #469156 -
Flags: review?(anthony.s.hughes)
Attachment #469156 -
Flags: review+
Comment 13•14 years ago
|
||
Comment on attachment 469156 [details] [diff] [review]
Patch v3 [indentation] - (1.9.1)
Please don't shuffle all those entries around. Backports shouldn't do that. Please file a new bug which will add a FindBar class to the ToolbarAPI.
Attachment #469156 -
Flags: review?(hskupin) → review-
Assignee | ||
Comment 14•14 years ago
|
||
Attachment #476820 -
Flags: review?(hskupin)
Assignee | ||
Updated•14 years ago
|
Attachment #476820 -
Attachment is obsolete: true
Attachment #476820 -
Flags: review?(hskupin)
Assignee | ||
Comment 15•14 years ago
|
||
re-adjustment + comment fix
Attachment #469156 -
Attachment is obsolete: true
Attachment #476821 -
Flags: review?(hskupin)
Comment 16•14 years ago
|
||
Comment on attachment 476821 [details] [diff] [review]
Patch v3 - (1.9.1) [re-adjustment from comment #13]
Ok sorry for the last review comment. It was already the correct approach but I missed to check the existing tests on default and mozilla1.9.2. With the work on bug 530602 we missed to check-in the lookup string handling on mozilla1.9.1.
Please update the patch so that we are in sync with the code on all branches.
Attachment #476821 -
Flags: review?(hskupin) → review-
Assignee | ||
Comment 17•14 years ago
|
||
Alright ... reverting to the cleanup patch again
Attachment #476966 -
Flags: review?(hskupin)
Comment 18•14 years ago
|
||
Comment on attachment 476966 [details] [diff] [review]
Patch v3 - (1.9.1) [reverting to cleanup]
Please file a follow-up to get all the element declarations and some of the access functions moved to its own class in the ToolbarAPI.
>+ // Open a local web page
>+ controller.open(LOCAL_TEST_PAGE);
nit: please don't emphasize local in the comment. Just call it a web page.
>- var selectedText = tabContent.getSelection();
>+ var selectedText = tabContent.getSelection();
nit: please fix indentation.
r=me with those nit fixes.
Attachment #476966 -
Flags: review?(hskupin) → review+
Keywords: checkin-needed
Reporter | ||
Comment 20•14 years ago
|
||
(In reply to comment #19)
> Created attachment 478035 [details] [diff] [review]
> Patch v3.1
>
> nits addressed
Landed on mozilla1.9.1:
http://hg.mozilla.org/qa/mozmill-tests/rev/8f8265c3f225
Keywords: checkin-needed
Reporter | ||
Comment 21•14 years ago
|
||
Seems like mozilla1.9.2 was missed here. Aaron, please provide a patch.
Assignee | ||
Comment 22•14 years ago
|
||
(In reply to comment #21)
> Seems like mozilla1.9.2 was missed here. Aaron, please provide a patch.
Look in the attachments
Reporter | ||
Comment 23•14 years ago
|
||
(In reply to comment #9)
> Created attachment 465922 [details] [diff] [review]
> Patch v3 - (1.9.2)
Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/c3e66e59c4cf [mozilla1.9.2]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 24•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
•