Open Bug 658925 Opened 13 years ago Updated 2 years ago

test_bug490949.html calls "SimpleTest.finish()" twice

Categories

(Core :: Graphics: ImageLib, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

()

Details

Attachments

(1 file)

Attached image screenshot
While writing a mochitest for another imagelib bug, I happened to notice that the mochitest modules/libpr0n/test/mochitest/test_bug490949.html triggers **two** calls to SimpleTest.finish(), resulting in two test-results printouts (with different numbers of successes reported).

See attached screenshot.

The finish() calls are ultimately triggered by the main method "checkLoad", which is called in two places:
> <body onload="checkFirst()">
[...]
> remoteCanvas.load(checkFirst);

I don't know which of those we want to keep or remove (maybe we need both, but then the test needs tweaking to avoid duplicate finish calls...?)

Reference to source:
http://mxr.mozilla.org/mozilla-central/source/modules/libpr0n/test/mochitest/test_bug490949.html?force=1
OS: Linux → All
Hardware: x86_64 → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: