Bug Tracker

Ticket #4577: patch.txt

File patch.txt, 560 bytes (added by madsmith, 13 years ago)

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

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