Closed Bug 710877 Opened 13 years ago Closed 13 years ago

allow reftest to use FileUtils and remove quit.js code

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla11

People

(Reporter: jmaher, Assigned: jmaher)

Details

Attachments

(1 file, 1 obsolete file)

in working towards merging reftest.js with a js module in bug 704509, we should use the FileUtils.jsm and the raw quit logic instead of quit.js and mozillaFileLogger.js.
simple patch, tested on try for all platforms and looks good.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #581766 - Flags: review?(dbaron)
Is the intent to also remove the quit.js and MozillaLogger.js links from reftest.xul ?
yes, that was my fault for not being complete. I will do that later tonight and upload a new patch. Please let me know of there are other concerns.
So I guess the other question is: why are these improvements? I don't know much about the logging stuff either way, so I'll basically take your word for it there... though I'm vaguely curious what the improvement is. As far as the quit code, it effectively looks like you're removing a bunch of code -- the code that checks if it's ok to quit. I suppose that's probably not really needed, so I guess it's fine. Are the old ways problematic for using from a JS module? So r=dbaron if you also: * remove the script elements that point to both unneeded scripts * remove both files from the jar.mn * hg remove quit.js
dbaron, I fixed all your comments as well as some 2 space code in the area I was modifying. I found that the quit code was unnecessary since it was designed to work in non chrome code as well. For the file logger, it made more sense to use an existing .jsm instead of a custom .js file which would need to be imported. Not 100% required, but it makes things cleaner. I plan on landing Monday morning, so if you have any concerns about my comment here, let me know and I will address them. Thanks for the review!
Attachment #581766 - Attachment is obsolete: true
Attachment #581766 - Flags: review?(dbaron)
Attachment #582577 - Flags: review+
relanded on inbound, things are looking good now: https://hg.mozilla.org/integration/mozilla-inbound/rev/21b0f339bf52
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: