Closed Bug 883094 Opened 11 years ago Closed 11 years ago

Fix some test files that don't unset their prefs correctly

Categories

(Testing :: Mochitest, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: martijn.martijn, Assigned: martijn.martijn)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — Splinter Review
This is based on what I found with the patch in bug 880178.

I'll get this on a try server.
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=3a4d14a11bc8
Also included the patch from bug 880178.
Note that this problem:
ERROR TEST-UNEXPECTED-FAIL | /tests/content/canvas/test/crossorigin/test_video_crossorigin.html - start prefs different than end, difference:media.preload.auto,media.preload.default,diff
I didn't tackle, because this needs some more work in various files. I'll file a bug on that, once bug 868439 is fixed.

With the try server, I noticed a problem with the webspeech tests, where synthCleanup() is called multiple times by some test files, which is causing problems when the pref is removed in that function.
Attached patch patch (obsolete) — Splinter Review
Ok, I think this is ready for review.
There is still a pref leak with content/media/webspeech/synth/test/test_setup.html when it's run inside test_ipc.html (not really sure, why), I think/hope that would be fixed when this code would get converted to pushPrefEnv, eventually.
But I'm not going to try that now, because that would make this more complicated than it's worth for now.
Attachment #762591 - Attachment is obsolete: true
Attachment #762773 - Flags: review?(jgriffin)
Comment on attachment 762773 [details] [diff] [review]
patch

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

Nice, thanks.
Attachment #762773 - Flags: review?(jgriffin) → review+
Attachment #762773 - Attachment is obsolete: true
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1aa7e28ccaaf
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Assignee: nobody → martijn.martijn
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: