Skip to content

Commit b72995e

Browse files
committed
Tests: get passing
Update tests to account for additional assert in expectWarning with a specified, non-zero count
1 parent 02c4f38 commit b72995e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

test/ajax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module( "ajax" );
22

33
test( "jQuery.ajax() deprecations on jqXHR", function( assert ) {
4-
assert.expect( 3 );
4+
assert.expect( 4 );
55

66
var done = assert.async();
77

test/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
QUnit.module( "attributes" );
33

44
QUnit.test( ".removeAttr( boolean attribute )", function( assert ) {
5-
assert.expect( 8 );
5+
assert.expect( 9 );
66

77
expectNoWarning( "non-boolean attr", function() {
88
var $div = jQuery( "<div />" )
@@ -43,7 +43,7 @@ QUnit.test( ".removeAttr( boolean attribute )", function( assert ) {
4343
} );
4444

4545
QUnit.test( ".toggleClass( boolean )", function( assert ) {
46-
assert.expect( 14 );
46+
assert.expect( 17 );
4747

4848
var e = jQuery( "<div />" ).appendTo( "#qunit-fixture" );
4949

test/core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test( "jQuery( '#' )", function() {
2828
} );
2929

3030
QUnit.test( "Attribute selectors with unquoted hashes", function( assert ) {
31-
expect( 31 );
31+
expect( 34 );
3232

3333
var markup = jQuery(
3434
"<div>" +

test/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test( "jQuery.data() camelCased names", function( assert ) {
1616
"-dashy-hanger"
1717
];
1818

19-
assert.expect( 16 );
19+
assert.expect( 17 );
2020

2121
var curData,
2222
div = document.createElement( "div" );

test/event.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ test( "load() and unload() event methods", function( assert ) {
5353
} );
5454

5555
QUnit.test( ".bind() and .unbind()", function( assert ) {
56-
assert.expect( 3 );
56+
assert.expect( 5 );
5757

5858
var $elem = jQuery( "<div />" ).appendTo( "#qunit-fixture" );
5959

@@ -73,7 +73,7 @@ QUnit.test( ".bind() and .unbind()", function( assert ) {
7373
} );
7474

7575
QUnit.test( ".delegate() and .undelegate()", function( assert ) {
76-
assert.expect( 3 );
76+
assert.expect( 5 );
7777

7878
var $div = jQuery( "<div />" ).appendTo( "#qunit-fixture" );
7979

0 commit comments

Comments
 (0)