Closed Bug 585760 Opened 14 years ago Closed 14 years ago

Make Mozmill-test testFindInPage 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, 7 obsolete files)

Module: testFindInPage/testFindInPage.js Test-page: Use any 1 page from test-files/layout/mozilla*
Blocks: 579965
Assignee: nobody → aaron.train
Status: NEW → ASSIGNED
Attached patch Patch v1 - (default) (obsolete) — Splinter Review
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-
Attached patch Patch v2 - (default) (obsolete) — Splinter Review
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)
Attachment #465739 - Flags: review?(anthony.s.hughes)
Attachment #465739 - Attachment is obsolete: true
This test has sleeps(0) that should be removed too. Patch forthcoming.
Attachment #465739 - Flags: review?(hskupin)
Attachment #465739 - Flags: review?(hskupin) → review-
Attachment #465739 - Flags: review-
Attached patch Patch v3 - (default) (obsolete) — Splinter Review
Attachment #465759 - Flags: review?(anthony.s.hughes)
Attachment #465759 - Flags: review?(hskupin)
Attachment #465759 - Flags: review?(anthony.s.hughes)
Attachment #465759 - Flags: review+
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)
Attachment #465759 - Attachment is obsolete: true
Attachment #465858 - Flags: review?(hskupin)
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.
Attachment #465922 - Flags: review?(anthony.s.hughes)
Attached patch Patch v3 - (1.9.1) (obsolete) — Splinter Review
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?
Attachment #465923 - Flags: review? → review?(anthony.s.hughes)
Attachment #465922 - Flags: review?(anthony.s.hughes) → review+
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-
Attached patch Patch v3 [indentation] - (1.9.1) (obsolete) — Splinter Review
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 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-
Attachment #476820 - Flags: review?(hskupin)
Attachment #476820 - Attachment is obsolete: true
Attachment #476820 - Flags: review?(hskupin)
re-adjustment + comment fix
Attachment #469156 - Attachment is obsolete: true
Attachment #476821 - Flags: review?(hskupin)
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-
Alright ... reverting to the cleanup patch again
Attachment #476966 - Flags: review?(hskupin)
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
Attached patch Patch v3.1Splinter Review
nits addressed
Attachment #476966 - Attachment is obsolete: true
(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
Seems like mozilla1.9.2 was missed here. Aaron, please provide a patch.
(In reply to comment #21) > Seems like mozilla1.9.2 was missed here. Aaron, please provide a patch. Look in the attachments
(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
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: