Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2013-10-26 01:14:30 +0400
committerChris Rebert <code@rebertia.com>2013-10-26 01:14:30 +0400
commit7b24f3c47c195b5519ddc2904840db98858ec015 (patch)
tree48209f652f8ac0357b7a5dc87fe51110565fc9e1 /js/tests/unit/tab.js
parentf2f70a4a7428c2ada0aae2201a007b007d38fd7b (diff)
QUnit.equals() is deprecated; use QUnit.equal() instead
Diffstat (limited to 'js/tests/unit/tab.js')
-rw-r--r--js/tests/unit/tab.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/tests/unit/tab.js b/js/tests/unit/tab.js
index aede32abb1..0db7cdb5b5 100644
--- a/js/tests/unit/tab.js
+++ b/js/tests/unit/tab.js
@@ -26,10 +26,10 @@ $(function () {
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo("#qunit-fixture")
$(tabsHTML).find('li:last a').tab('show')
- equals($("#qunit-fixture").find('.active').attr('id'), "profile")
+ equal($("#qunit-fixture").find('.active').attr('id'), "profile")
$(tabsHTML).find('li:first a').tab('show')
- equals($("#qunit-fixture").find('.active').attr('id'), "home")
+ equal($("#qunit-fixture").find('.active').attr('id'), "home")
})
test("should activate element by tab id", function () {
@@ -42,10 +42,10 @@ $(function () {
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo("#qunit-fixture")
$(pillsHTML).find('li:last a').tab('show')
- equals($("#qunit-fixture").find('.active').attr('id'), "profile")
+ equal($("#qunit-fixture").find('.active').attr('id'), "profile")
$(pillsHTML).find('li:first a').tab('show')
- equals($("#qunit-fixture").find('.active').attr('id'), "home")
+ equal($("#qunit-fixture").find('.active').attr('id'), "home")
})
@@ -77,9 +77,9 @@ $(function () {
$(dropHTML).find('ul>li:first a').tab('show').end()
.find('ul>li:last a').on('show', function(event){
- equals(event.relatedTarget.hash, "#1-1")
+ equal(event.relatedTarget.hash, "#1-1")
}).on('shown', function(event){
- equals(event.relatedTarget.hash, "#1-1")
+ equal(event.relatedTarget.hash, "#1-1")
}).tab('show')
})