Closed Bug 884768 Opened 11 years ago Closed 11 years ago

Clean-up contents of frame.js

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [ateamtrack: p=mozmill q=2013q2 m=4][mozmill-2.0])

Attachments

(1 file, 2 obsolete files)

The content in frame.js needs a bit of clean-up and some parts have to be refactored for an easier usage. This will help me with a larger refactor on bug 865690.
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #764698 - Flags: review?(dave.hunt)
Attached patch Patch v1.1 (obsolete) — Splinter Review
Fixed a silly failure for the select statement in the AppQuitObserver.observe method. Now it's working as expected.
Attachment #764698 - Attachment is obsolete: true
Attachment #764698 - Flags: review?(dave.hunt)
Attachment #764723 - Flags: review?(dave.hunt)
Comment on attachment 764723 [details] [diff] [review]
Patch v1.1

Review of attachment 764723 [details] [diff] [review]:
-----------------------------------------------------------------

Other than a minor nit, these changes look okay to me. I'm not particularly familiar with this code, though, so you may want a second opinion.

::: mozmill/mozmill/extension/resource/modules/frame.js
@@ +2,4 @@
>   * License, v. 2.0. If a copy of the MPL was not distributed with this
>   * file, you can obtain one at http://mozilla.org/MPL/2.0/. */
>  
> +var EXPORTED_SYMBOLS = ['Collector','Runner','events', 'runTestFile', 'log',

Nit: Add spaces after each comma.
Attachment #764723 - Flags: review?(dave.hunt) → review+
Attached patch Patch v2Splinter Review
Fixed the white-space issues in EXPORTED_SYMBOLS.
Attachment #764723 - Attachment is obsolete: true
Attachment #764809 - Flags: review?(ctalbert)
Blocks: 865690
Comment on attachment 764809 [details] [diff] [review]
Patch v2

Review of attachment 764809 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good. Mostly just moving code around so it makes a bit more logical sense. r+ assuming there are no truly functional changes in this. I don't really see any other than we do things at different times, which all looked OK.  Please run tests, this is only the heart of everything :-)
Attachment #764809 - Flags: review?(ctalbert) → review+
(In reply to Clint Talbert ( :ctalbert ) from comment #5)
> This looks good. Mostly just moving code around so it makes a bit more
> logical sense. r+ assuming there are no truly functional changes in this. I
> don't really see any other than we do things at different times, which all
> looked OK.  Please run tests, this is only the heart of everything :-)

My patch for the i/o port assertion is based on this patch, and it solves nearly all of our problems. Nothing regressed in the mutt nor firefox tests.

I will get this landed soon. Thanks for the review.
Landed on master:
https://github.com/mozilla/mozmill/commit/50c01fc575c09440dfce8f5bed069865a5127b9f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
OS: Linux → All
Resolution: --- → FIXED
Whiteboard: [ateamtrack: p=mozmill q=2013q2 m=4][mozmill-2.0]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: