Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
5e2ef69e
Commit
5e2ef69e
authored
Dec 06, 2013
by
XhmikosR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a space before functions' bracket consistently.
parent
4aad5279
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
js/tests/unit/popover.js
js/tests/unit/popover.js
+1
-1
js/tests/unit/tab.js
js/tests/unit/tab.js
+2
-2
js/tests/unit/tooltip.js
js/tests/unit/tooltip.js
+6
-6
No files found.
js/tests/unit/popover.js
View file @
5e2ef69e
...
...
@@ -118,7 +118,7 @@ $(function () {
})
test
(
"
should destroy popover
"
,
function
()
{
var
popover
=
$
(
'
<div/>
'
).
popover
({
trigger
:
'
hover
'
}).
on
(
'
click.foo
'
,
function
(){})
var
popover
=
$
(
'
<div/>
'
).
popover
({
trigger
:
'
hover
'
}).
on
(
'
click.foo
'
,
function
()
{})
ok
(
popover
.
data
(
'
bs.popover
'
),
'
popover has data
'
)
ok
(
$
.
_data
(
popover
[
0
],
'
events
'
).
mouseover
&&
$
.
_data
(
popover
[
0
],
'
events
'
).
mouseout
,
'
popover has hover event
'
)
ok
(
$
.
_data
(
popover
[
0
],
'
events
'
).
click
[
0
].
namespace
==
'
foo
'
,
'
popover has extra click.foo event
'
)
...
...
js/tests/unit/tab.js
View file @
5e2ef69e
...
...
@@ -76,9 +76,9 @@ $(function () {
+
'
</ul>
'
$
(
dropHTML
).
find
(
'
ul>li:first a
'
).
tab
(
'
show
'
).
end
()
.
find
(
'
ul>li:last a
'
).
on
(
'
show
'
,
function
(
event
){
.
find
(
'
ul>li:last a
'
).
on
(
'
show
'
,
function
(
event
)
{
equal
(
event
.
relatedTarget
.
hash
,
"
#1-1
"
)
}).
on
(
'
shown
'
,
function
(
event
){
}).
on
(
'
shown
'
,
function
(
event
)
{
equal
(
event
.
relatedTarget
.
hash
,
"
#1-1
"
)
}).
tab
(
'
show
'
)
})
...
...
js/tests/unit/tooltip.js
View file @
5e2ef69e
...
...
@@ -258,7 +258,7 @@ $(function () {
})
test
(
"
should destroy tooltip
"
,
function
()
{
var
tooltip
=
$
(
'
<div/>
'
).
tooltip
().
on
(
'
click.foo
'
,
function
(){})
var
tooltip
=
$
(
'
<div/>
'
).
tooltip
().
on
(
'
click.foo
'
,
function
()
{})
ok
(
tooltip
.
data
(
'
bs.tooltip
'
),
'
tooltip has data
'
)
ok
(
$
.
_data
(
tooltip
[
0
],
'
events
'
).
mouseover
&&
$
.
_data
(
tooltip
[
0
],
'
events
'
).
mouseout
,
'
tooltip has hover event
'
)
ok
(
$
.
_data
(
tooltip
[
0
],
'
events
'
).
click
[
0
].
namespace
==
'
foo
'
,
'
tooltip has extra click.foo event
'
)
...
...
@@ -297,7 +297,7 @@ $(function () {
tooltip
.
tooltip
(
'
hide
'
)
})
test
(
"
should place tooltip inside window
"
,
function
(){
test
(
"
should place tooltip inside window
"
,
function
()
{
var
container
=
$
(
"
<div />
"
).
appendTo
(
"
body
"
)
.
css
({
position
:
"
absolute
"
,
width
:
200
,
height
:
200
,
bottom
:
0
,
left
:
0
})
,
tooltip
=
$
(
"
<a href='#' title='Very very very very very very very very long tooltip'>Hover me</a>
"
)
...
...
@@ -308,7 +308,7 @@ $(function () {
stop
()
setTimeout
(
function
(){
setTimeout
(
function
()
{
ok
(
$
(
"
.tooltip
"
).
offset
().
left
>=
0
)
start
()
...
...
@@ -316,7 +316,7 @@ $(function () {
},
100
)
})
test
(
"
should place tooltip on top of element
"
,
function
(){
test
(
"
should place tooltip on top of element
"
,
function
()
{
var
container
=
$
(
"
<div />
"
).
appendTo
(
"
body
"
)
.
css
({
position
:
"
absolute
"
,
bottom
:
0
,
left
:
0
,
textAlign
:
"
right
"
,
width
:
300
,
height
:
300
})
,
p
=
$
(
"
<p style='margin-top:200px' />
"
).
appendTo
(
container
)
...
...
@@ -328,7 +328,7 @@ $(function () {
stop
()
setTimeout
(
function
(){
setTimeout
(
function
()
{
var
tooltip
=
container
.
find
(
"
.tooltip
"
)
start
()
...
...
@@ -337,7 +337,7 @@ $(function () {
},
100
)
})
test
(
"
should add position class before positioning so that position-specific styles are taken into account
"
,
function
(){
test
(
"
should add position class before positioning so that position-specific styles are taken into account
"
,
function
()
{
$
(
"
head
"
).
append
(
'
<style> .tooltip.right { white-space: nowrap; } .tooltip.right .tooltip-inner { max-width: none; } </style>
'
)
var
container
=
$
(
"
<div />
"
).
appendTo
(
"
body
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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