Skip to main content

Bug Tracker

Side navigation

#4577 closed bug (invalid)

Opened April 22, 2009 10:22PM UTC

Closed June 10, 2009 07:52AM UTC

qunit test running issue when being loaded after document is ready.

Reported by: madsmith Owned by: joern
Priority: minor Milestone: 1.4
Component: qunit Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

My company is using qunit and it's becoming available after the document is ready. As such, $(window).load does not fire and the test case does not run.

As per the jquery documentation, it appears that jQuery(document).ready() should have been used, instead of hooking on the window's load.

Will attach patch file.

Attachments (1)
  • patch.txt (0.5 KB) - added by madsmith April 22, 2009 10:23PM UTC.

    Patch for using .ready instead of .load to bootstrap testrunner

Change History (3)

Changed April 22, 2009 10:27PM UTC by madsmith comment:1

This is my first time interacting with this project, please forgive any errors in how the ticket was filed.

Changed April 22, 2009 10:55PM UTC by madsmith comment:2

Unfortunately this doesn't seem to be the fix for the problem nor after deeper inspection is my test case firing after the document is ready. It's completely unclear why testrunner intermittently fails to initialize, further inspection is required.

Changed June 10, 2009 07:52AM UTC by joern comment:3

resolution: → invalid
status: newclosed

Closing this. Please open a new ticket if you track down the issue.