Closed Bug 1022616 Opened 11 years ago Closed 11 years ago

gen_template.pl generates busted chrome tests because its path to SimpleTest is wrong

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla33

People

(Reporter: Gijs, Assigned: Gijs)

Details

Attachments

(1 file)

Existing tests use: chrome://mochikit/content/tests/SimpleTest/SimpleTest.js but the template ( http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/static/xul.template.txt ) generates: 9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/> which 404s.
Comment on attachment 8436893 [details] [diff] [review] mochitest chrome template uses broken path to SimpleTest.js, Review of attachment 8436893 [details] [diff] [review]: ----------------------------------------------------------------- thanks. on an unrelated note, do people still use these templates? I was under the impression it was more of a copy/paste from a similar test.
Attachment #8436893 - Flags: review?(jmaher) → review+
I don't think I've ever used one of these templates, they're clearly not well-supported.
I think we'd be better-served just having a simple example test of each kind that developers could copy and paste. Having them be real example tests means they'd be actually run in production and would be up-to-date by necessity.
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #4) > I think we'd be better-served just having a simple example test of each kind > that developers could copy and paste. Having them be real example tests > means they'd be actually run in production and would be up-to-date by > necessity. I would agree, but right now, this is still the recommended way (per docs) of creating new tests. I'd like to just land this, and file a followup bug to add simple sample tests, and a mach command to do what gen_template.pl does now based on those sample tests. I don't know if/when I will have time to do that, though. Does that sound OK?
Flags: needinfo?(ted)
That's fine. No point in blocking an already-written patch on a better solution.
Flags: needinfo?(ted)
Status: NEW → ASSIGNED
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: