Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c65deddc
Commit
c65deddc
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Plain Diff
Merge pull request #15933 from twbs/qunit-module-hooks
Unit tests: Use new names of module hooks
parents
4cb39987
9afb61ff
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
js/tests/index.html
+2
-2
js/tests/index.html
js/tests/unit/affix.js
+2
-2
js/tests/unit/affix.js
js/tests/unit/alert.js
+2
-2
js/tests/unit/alert.js
js/tests/unit/button.js
+2
-2
js/tests/unit/button.js
js/tests/unit/carousel.js
+2
-2
js/tests/unit/carousel.js
js/tests/unit/collapse.js
+2
-2
js/tests/unit/collapse.js
js/tests/unit/dropdown.js
+2
-2
js/tests/unit/dropdown.js
js/tests/unit/modal.js
+2
-2
js/tests/unit/modal.js
js/tests/unit/phantom.js
+2
-2
js/tests/unit/phantom.js
js/tests/unit/popover.js
+2
-2
js/tests/unit/popover.js
js/tests/unit/scrollspy.js
+2
-2
js/tests/unit/scrollspy.js
js/tests/unit/tab.js
+2
-2
js/tests/unit/tab.js
js/tests/unit/tooltip.js
+2
-2
js/tests/unit/tooltip.js
with
26 additions
and
26 deletions
+26
-26
js/tests/index.html
+
2
-
2
View file @
c65deddc
...
...
@@ -43,12 +43,12 @@
QUnit
.
testStart
(
function
(
testDetails
)
{
$
(
window
).
scrollTop
(
0
)
QUnit
.
log
=
function
(
details
)
{
QUnit
.
log
(
function
(
details
)
{
if
(
!
details
.
result
)
{
details
.
name
=
testDetails
.
name
log
.
push
(
details
)
}
}
}
)
})
// Cleanup
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/affix.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
affix
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapAffix
=
$
.
fn
.
affix
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
affix
=
$
.
fn
.
bootstrapAffix
delete
$
.
fn
.
bootstrapAffix
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/alert.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
alert
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapAlert
=
$
.
fn
.
alert
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
alert
=
$
.
fn
.
bootstrapAlert
delete
$
.
fn
.
bootstrapAlert
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/button.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
button
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapButton
=
$
.
fn
.
button
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
button
=
$
.
fn
.
bootstrapButton
delete
$
.
fn
.
bootstrapButton
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/carousel.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
carousel
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapCarousel
=
$
.
fn
.
carousel
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
carousel
=
$
.
fn
.
bootstrapCarousel
delete
$
.
fn
.
bootstrapCarousel
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/collapse.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
collapse
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapCollapse
=
$
.
fn
.
collapse
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
collapse
=
$
.
fn
.
bootstrapCollapse
delete
$
.
fn
.
bootstrapCollapse
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/dropdown.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
dropdowns
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapDropdown
=
$
.
fn
.
dropdown
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
dropdown
=
$
.
fn
.
bootstrapDropdown
delete
$
.
fn
.
bootstrapDropdown
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/modal.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
modal
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapModal
=
$
.
fn
.
modal
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
modal
=
$
.
fn
.
bootstrapModal
delete
$
.
fn
.
bootstrapModal
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/phantom.js
+
2
-
2
View file @
c65deddc
...
...
@@ -31,8 +31,8 @@
if
(
!
obj
.
result
)
{
// Dumping large objects can be very slow, and the dump isn't used for
// passing tests, so only dump if the test failed.
actual
=
QUnit
.
jsD
ump
.
parse
(
obj
.
actual
)
expected
=
QUnit
.
jsD
ump
.
parse
(
obj
.
expected
)
actual
=
QUnit
.
d
ump
.
parse
(
obj
.
actual
)
expected
=
QUnit
.
d
ump
.
parse
(
obj
.
expected
)
}
// Send it.
sendMessage
(
'
qunit.log
'
,
obj
.
result
,
actual
,
expected
,
obj
.
message
,
obj
.
source
)
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/popover.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
popover
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapPopover
=
$
.
fn
.
popover
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
popover
=
$
.
fn
.
bootstrapPopover
delete
$
.
fn
.
bootstrapPopover
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/scrollspy.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
scrollspy
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapScrollspy
=
$
.
fn
.
scrollspy
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
scrollspy
=
$
.
fn
.
bootstrapScrollspy
delete
$
.
fn
.
bootstrapScrollspy
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/tab.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
tabs
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapTab
=
$
.
fn
.
tab
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
tab
=
$
.
fn
.
bootstrapTab
delete
$
.
fn
.
bootstrapTab
}
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/tooltip.js
+
2
-
2
View file @
c65deddc
...
...
@@ -8,11 +8,11 @@ $(function () {
})
QUnit
.
module
(
'
tooltip
'
,
{
setup
:
function
()
{
beforeEach
:
function
()
{
// Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode
$
.
fn
.
bootstrapTooltip
=
$
.
fn
.
tooltip
.
noConflict
()
},
teardown
:
function
()
{
afterEach
:
function
()
{
$
.
fn
.
tooltip
=
$
.
fn
.
bootstrapTooltip
delete
$
.
fn
.
bootstrapTooltip
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment