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:
authorZlatan Vasović <legospace9876@gmail.com>2013-12-19 18:32:37 +0400
committerZlatan Vasović <legospace9876@gmail.com>2013-12-19 18:32:37 +0400
commit1bf5abab3153159d09f83f5512735da2144394d6 (patch)
treedcdb42b129e84c239591455c643f5446b757c7b9 /js/tests/unit/tab.js
parentfb8310fbc6d413a3446ecf1772a77911d45fbd62 (diff)
No leading pluses
Diffstat (limited to 'js/tests/unit/tab.js')
-rw-r--r--js/tests/unit/tab.js35
1 files changed, 16 insertions, 19 deletions
diff --git a/js/tests/unit/tab.js b/js/tests/unit/tab.js
index 6da7dc9a44..59bedf391f 100644
--- a/js/tests/unit/tab.js
+++ b/js/tests/unit/tab.js
@@ -17,11 +17,10 @@ $(function () {
})
test('should activate element by tab id', function () {
- var tabsHTML =
- '<ul class="tabs">'
- + '<li><a href="#home">Home</a></li>'
- + '<li><a href="#profile">Profile</a></li>'
- + '</ul>'
+ var tabsHTML = '<ul class="tabs">' +
+ '<li><a href="#home">Home</a></li>' +
+ '<li><a href="#profile">Profile</a></li>' +
+ '</ul>'
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture')
@@ -33,11 +32,10 @@ $(function () {
})
test('should activate element by tab id', function () {
- var pillsHTML =
- '<ul class="pills">'
- + '<li><a href="#home">Home</a></li>'
- + '<li><a href="#profile">Profile</a></li>'
- + '</ul>'
+ var pillsHTML = '<ul class="pills">' +
+ '<li><a href="#home">Home</a></li>' +
+ '<li><a href="#profile">Profile</a></li>' +
+ '</ul>'
$('<ul><li id="home"></li><li id="profile"></li></ul>').appendTo('#qunit-fixture')
@@ -65,15 +63,14 @@ $(function () {
})
test('show and shown events should reference correct relatedTarget', function () {
- var dropHTML =
- '<ul class="drop">'
- + '<li class="dropdown"><a data-toggle="dropdown" href="#">1</a>'
- + '<ul class="dropdown-menu">'
- + '<li><a href="#1-1" data-toggle="tab">1-1</a></li>'
- + '<li><a href="#1-2" data-toggle="tab">1-2</a></li>'
- + '</ul>'
- + '</li>'
- + '</ul>'
+ var dropHTML = '<ul class="drop">' +
+ '<li class="dropdown"><a data-toggle="dropdown" href="#">1</a>' +
+ '<ul class="dropdown-menu">' +
+ '<li><a href="#1-1" data-toggle="tab">1-1</a></li>' +
+ '<li><a href="#1-2" data-toggle="tab">1-2</a></li>' +
+ '</ul>' +
+ '</li>' +
+ '</ul>'
$(dropHTML).find('ul>li:first a').tab('show').end()
.find('ul>li:last a').on('show', function (event) {