Skip to content

Commit 8281580

Browse files
committed
(fix) Tests: Replace resource loader with AMD
- Port all others;
1 parent 757164d commit 8281580

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/unit/tabs/tabs_core.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
define([
22
"jquery",
33
"./tabs_test_helpers",
4+
"jquery.simulate",
45
"ui/tabs"
56
], function( $, tabsTestHelper ) {
67

tests/unit/tabs/tabs_methods.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
define([
22
"jquery",
3+
"helper/testsuite",
34
"./tabs_test_helpers",
45
"ui/tabs"
5-
], function( $, tabsTestHelper ) {
6+
], function( $, testHelper, tabsTestHelper ) {
67

78
var disabled = tabsTestHelper.disabled,
89
state = tabsTestHelper.state;
@@ -11,10 +12,10 @@ module( "tabs: methods" );
1112

1213
test( "destroy", function() {
1314
expect( 2 );
14-
domEqual( "#tabs1", function() {
15+
testHelper.domEqual( "#tabs1", function() {
1516
$( "#tabs1" ).tabs().tabs( "destroy" );
1617
});
17-
domEqual( "#tabs2", function() {
18+
testHelper.domEqual( "#tabs2", function() {
1819
$( "#tabs2" ).tabs().tabs( "destroy" );
1920
});
2021
});

0 commit comments

Comments
 (0)