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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla6
People
(Reporter: mounir, Assigned: mounir)
References
Details
Attachments
(1 file)
8.22 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
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...
Assignee | ||
Comment 1•14 years ago
|
||
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 | ||
Updated•14 years ago
|
Whiteboard: [needs review]
Updated•14 years ago
|
Attachment #526582 -
Flags: review?(ehsan) → review+
Comment 2•14 years ago
|
||
(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. :(
Assignee | ||
Comment 3•14 years ago
|
||
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.
Description
•