Commit 611d7660 authored by Rick Waldron's avatar Rick Waldron

Remove duplicate expect. Add QUnit.config.requireExpects to testrunner.js QUnit configurations.

parent 0c447434
...@@ -156,6 +156,9 @@ function testSubproject( label, url, risTests ) { ...@@ -156,6 +156,9 @@ function testSubproject( label, url, risTests ) {
// and start()'s the next test. // and start()'s the next test.
QUnit.config.testTimeout = 20 * 1000; // 20 seconds 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. * Load the TestSwarm listener if swarmURL is in the address.
*/ */
......
...@@ -782,7 +782,7 @@ if ( jQuery.fn.offset ) { ...@@ -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 ); expect( 1 );
var $div = jQuery("<div>").appendTo("#qunit-fixture").css("fill-opacity", 1); var $div = jQuery("<div>").appendTo("#qunit-fixture").css("fill-opacity", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment