Skip to main content

Bug Tracker

Side navigation

Ticket #4577: patch.txt


File patch.txt, 0.5 KB (added by madsmith, April 22, 2009 10:23PM UTC)

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

Index: testrunner.js
===================================================================
--- testrunner.js	(revision 6320)
+++ testrunner.js	(working copy)
@@ -255,7 +255,7 @@
 	triggerEvent: triggerEvent
 });
 
-$(window).load(function() {
+$(document).ready(function() {
 	$('#userAgent').html(navigator.userAgent);
 	var head = $('<div class="testrunner-toolbar"><label for="filter-pass">Hide passed tests</label></div>').insertAfter("#userAgent");
 	$('<input type="checkbox" id="filter-pass" />').attr("disabled", true).prependTo(head).click(function() {

Download in other formats:

Original Format