Bug Tracker

Opened 14 years ago

Closed 14 years ago

#4577 closed bug (invalid)

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 (560 bytes) - added by madsmith 14 years ago.
Patch for using .ready instead of .load to bootstrap testrunner

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by madsmith

Attachment: patch.txt added

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

comment:1 Changed 14 years ago by madsmith

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

comment:2 Changed 14 years ago by madsmith

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.

comment:3 Changed 14 years ago by joern

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.