Closed Bug 446346 Opened 16 years ago Closed 16 years ago

test_Microformats_count.html can fail sporadically with "Error thrown during test: test_MicroformatsAPI is not defined - got 0, expected 1"

Categories

(Toolkit Graveyard :: Microformats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ted, Assigned: ted)

References

()

Details

(Keywords: fixed1.9.0.2, intermittent-failure)

Attachments

(1 file)

This test failed on qm-win2k3-moz2-01, it looks like the iframe is loading before the script after it gets evaluated. Probably a fix would be to move the script up above the iframe to ensure it's evaluated beforehand. This probably only shows up on VMs because of the timing involved.
Here's a simple patch, just moves the script tag up before the iframe. The test succeeds for me with this change, should get rid of that race condition as well.
Assignee: mozilla → ted.mielczarek
Status: NEW → ASSIGNED
Attachment #330764 - Flags: review?
Attachment #330764 - Flags: review? → review?(mozilla)
Attachment #330764 - Flags: review?(mozilla) → review+
Pushed to mozilla-central:
http://hg.mozilla.org/mozilla-central/index.cgi/rev/37f174b07950
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Checked into CVS:
Checking in toolkit/components/microformats/tests/test_Microformats_count.html;
/cvsroot/mozilla/toolkit/components/microformats/tests/test_Microformats_count.h
tml,v  <--  test_Microformats_count.html
new revision: 1.2; previous revision: 1.1
done
Keywords: fixed1.9.0.2
Whiteboard: [orange]
Whiteboard: [orange]
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: