Closed Bug 942319 Opened 6 years ago Closed 6 years ago

Supply python script to convert some mochitests to standalone tests

Categories

(Core :: Canvas: WebGL, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla28
Tracking Status
firefox28 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

Details

(Whiteboard: webgl-internal [qa-])

Attachments

(1 file)

One of the problems with mochitests is that it's non-trivial to post them to a bug as a testcase, or run them on a machine without a build of moz-central.

For the mochitests I've added in content/canvas/test/webgl/non-conf-tests, they are limited enough that it's fairly easy to line-by-line convert them to standalone tests. I wrote a simple python script to do this, as well as modifying the local JS helper classes so that they still (mostly) work when SpecialPowers isn't available.

For the tests in this directory, calling `python mochi-to-testcase.py foo.html` will convert mochitest foo.html to standalone test foo.solo.html.
Attached patch patchSplinter Review
Assignee: nobody → jgilbert
Attachment #8337045 - Flags: review?(bjacob)
Attachment #8337045 - Flags: review?(bjacob) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8dc4d9276c7a
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: webgl-internal → webgl-internal [qa-]
You need to log in before you can comment on or make changes to this bug.