Commit 6eba0665 authored by jaubourg's avatar jaubourg

Adds unit test to exhibit #10952

parent 3f88249b
...@@ -39,7 +39,7 @@ jQuery.each( tests, function( flags, resultString ) { ...@@ -39,7 +39,7 @@ jQuery.each( tests, function( flags, resultString ) {
test( "jQuery.Callbacks( \"" + flags + "\" ) - " + filterLabel, function() { test( "jQuery.Callbacks( \"" + flags + "\" ) - " + filterLabel, function() {
expect( 19 ); expect( 20 );
// Give qunit a little breathing room // Give qunit a little breathing room
stop(); stop();
...@@ -56,6 +56,7 @@ jQuery.each( tests, function( flags, resultString ) { ...@@ -56,6 +56,7 @@ jQuery.each( tests, function( flags, resultString ) {
}); });
cblist.fire( "A" ); cblist.fire( "A" );
strictEqual( output, "XA", "Basic binding and firing" ); strictEqual( output, "XA", "Basic binding and firing" );
strictEqual( cblist.fired(), true, ".fired() detects firing" );
output = "X"; output = "X";
cblist.disable(); cblist.disable();
cblist.add(function( str ) { cblist.add(function( str ) {
......
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