aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs/tabs_events.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-07 13:53:20 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-07 13:53:20 -0400
commitd573a92bebf881d6ad68e4e128b5f534e047ae0c (patch)
tree295373e9e5c9386a822447e1b9986e2cb31a74fa /tests/unit/tabs/tabs_events.js
parent54016b8469345a325e8c1ab6f8a7d17b0f0f8d01 (diff)
downloadjquery-ui-d573a92bebf881d6ad68e4e128b5f534e047ae0c.tar.gz
jquery-ui-d573a92bebf881d6ad68e4e128b5f534e047ae0c.zip
Tabs: Added tests for aria-controls attribute being assigned on init.
Diffstat (limited to 'tests/unit/tabs/tabs_events.js')
-rw-r--r--tests/unit/tabs/tabs_events.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js
index 2e54407de..28925a2b9 100644
--- a/tests/unit/tabs/tabs_events.js
+++ b/tests/unit/tabs/tabs_events.js
@@ -163,10 +163,10 @@ test( "beforeLoad", function() {
strictEqual( ui.panel[ 0 ], panel[ 0 ], "panel" );
equals( ui.panel.html(), "", "panel html" );
event.preventDefault();
- tabs_state( element, 1, 0, 0, 0 );
+ tabs_state( element, 1, 0, 0, 0, 0 );
});
element.tabs( "option", "active", 2 );
- tabs_state( element, 0, 0, 1, 0 );
+ tabs_state( element, 0, 0, 1, 0, 0 );
equals( panel.html(), "", "panel html after" );
// click, change panel content
@@ -184,10 +184,10 @@ test( "beforeLoad", function() {
strictEqual( ui.panel[ 0 ], panel[ 0 ], "panel" );
ui.panel.html( "<p>testing</p>" );
event.preventDefault();
- tabs_state( element, 0, 0, 1, 0 );
+ tabs_state( element, 0, 0, 1, 0, 0 );
});
element.find( ".ui-tabs-nav a" ).eq( 3 ).click();
- tabs_state( element, 0, 0, 0, 1 );
+ tabs_state( element, 0, 0, 0, 1, 0 );
equals( panel.html(), "<p>testing</p>", "panel html after" );
});