Closed Bug 650629 Opened 14 years ago Closed 14 years ago

Clean-up and fix tests landed with bug 583514

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file)

Tests from bug 583514 contain a lot of issues: - Reftests 583514-1.html and 583514-2.html are wrong because they do not use class="reftest-wait" creating an intermittent failure; - The mochitest isn't added to Makefile.in so it's never run; - The mochitest is using netscape.security.PrivilegeManager.enablePrivilege which has been explicitly forbidden some time ago; - The mochitest is using events but do not use event handlers (a trap for random oranges); - It is adding a reftest with a bug number that doesn't correspond to the test bug (bug 409604); - Two reftests are doing exactly the same thing: 409604-1.html and 583514-2.html but one of them don't use reftest-wait; - All reftests would be much more easier to write with mochitests...
Blocks: 650602
Attached patch CleaningSplinter Review
All reftests have been removed in favor of a single mochitest. The original mochitest has been removed because content/html/content/test/test_bug409604.html seems to cover what was tested in it.
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
Attachment #526582 - Flags: review?(ehsan)
Whiteboard: [needs review]
Attachment #526582 - Flags: review?(ehsan) → review+
(In reply to comment #0) > Tests from bug 583514 contain a lot of issues: > - Reftests 583514-1.html and 583514-2.html are wrong because they do not use > class="reftest-wait" creating an intermittent failure; > - The mochitest isn't added to Makefile.in so it's never run; > - The mochitest is using netscape.security.PrivilegeManager.enablePrivilege > which has been explicitly forbidden some time ago; > - The mochitest is using events but do not use event handlers (a trap for > random oranges); > - It is adding a reftest with a bug number that doesn't correspond to the test > bug (bug 409604); > - Two reftests are doing exactly the same thing: 409604-1.html and > 583514-2.html but one of them don't use reftest-wait; > - All reftests would be much more easier to write with mochitests... Thanks for catching this. All of these issues should have ideally been caught at review time. :(
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs review]
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: