From: Rick Waldron Date: Mon, 15 Oct 2012 16:31:27 +0000 (-0400) Subject: Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js QUnit confi... X-Git-Tag: 1.9.0b1~220 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=611d7660cd23747bcc7948ad2ee2a663e00ff105;p=jquery.git Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js QUnit configurations. --- diff --git a/test/data/testrunner.js b/test/data/testrunner.js index 2a4cbf4e6..ef3a55568 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -156,6 +156,9 @@ function testSubproject( label, url, risTests ) { // and start()'s the next test. QUnit.config.testTimeout = 20 * 1000; // 20 seconds +// Enforce an "expect" argument or expect() call in all test bodies. +QUnit.config.requireExpects = true; + /** * Load the TestSwarm listener if swarmURL is in the address. */ diff --git a/test/unit/css.js b/test/unit/css.js index e385f03bc..894ef6a48 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -782,7 +782,7 @@ if ( jQuery.fn.offset ) { }); } -test("Do not append px to 'fill-opacity' #9548", 1, function() { +test("Do not append px to 'fill-opacity' #9548", function() { expect( 1 ); var $div = jQuery("
").appendTo("#qunit-fixture").css("fill-opacity", 1); @@ -791,7 +791,7 @@ test("Do not append px to 'fill-opacity' #9548", 1, function() { test("css('width') and css('height') should respect box-sizing, see #11004", function() { expect( 4 ); - + var el_dis = jQuery("
test
"), el = el_dis.clone().appendTo("#qunit-fixture");