Skip to content

Commit

Permalink
Drop support for deprecated #main in favor of #qunit-fixture. If this…
Browse files Browse the repository at this point in the history
… breaks your testsuite, replace id="main" with id="qunit-fixture". Fixes #103
  • Loading branch information
jzaefferer committed Apr 15, 2011
1 parent 761890a commit 69925bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qunit/qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ extend(QUnit, {
*/
reset: function() {
if ( window.jQuery ) {
jQuery( "#main, #qunit-fixture" ).html( config.fixture );
jQuery( "#qunit-fixture" ).html( config.fixture );
} else {
var main = id( 'main' ) || id( 'qunit-fixture' );
var main = id( 'qunit-fixture' );
if ( main ) {
main.innerHTML = config.fixture;
}
Expand Down Expand Up @@ -730,7 +730,7 @@ addEvent(window, "load", function() {
toolbar.appendChild( label );
}

var main = id('main') || id('qunit-fixture');
var main = id('qunit-fixture');
if ( main ) {
config.fixture = main.innerHTML;
}
Expand Down

0 comments on commit 69925bc

Please sign in to comment.