Bug Tracker

Modify

Ticket #4577 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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

patch.txt Download (560 bytes) - added by madsmith 4 years ago.
Patch for using .ready instead of .load to bootstrap testrunner

Change History

Changed 4 years ago by madsmith

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

comment:1 Changed 4 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 4 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 4 years ago by joern

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.