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
22e1f94b
Commit
22e1f94b
authored
Oct 27, 2014
by
Chris Rebert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeouts in tooltip unit tests to avoid spurious Sauce failures
Fixes #14851
parent
ea866052
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
js/tests/unit/tooltip.js
js/tests/unit/tooltip.js
+31
-31
No files found.
js/tests/unit/tooltip.js
View file @
22e1f94b
...
...
@@ -803,16 +803,16 @@ $(function () {
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
15
})
.
bootstrapTooltip
({
delay
:
15
0
})
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10ms: tooltip is not faded in
'
)
},
10
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip is not faded in
'
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20ms: tooltip is faded in
'
)
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20
0
ms: tooltip is faded in
'
)
start
()
},
20
)
},
20
0
)
$tooltip
.
trigger
(
'
mouseenter
'
)
})
...
...
@@ -822,17 +822,17 @@ $(function () {
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
15
})
.
bootstrapTooltip
({
delay
:
15
0
})
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip not faded in
'
)
$tooltip
.
trigger
(
'
mouseout
'
)
},
10
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20
0
ms: tooltip not faded in
'
)
start
()
},
20
)
},
20
0
)
$tooltip
.
trigger
(
'
mouseenter
'
)
})
...
...
@@ -842,21 +842,21 @@ $(function () {
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
{
show
:
0
,
hide
:
15
}})
.
bootstrapTooltip
({
delay
:
{
show
:
0
,
hide
:
15
0
}})
setTimeout
(
function
()
{
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
1ms: tooltip faded in
'
)
$tooltip
.
trigger
(
'
mouseout
'
)
setTimeout
(
function
()
{
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10ms: tooltip still faded in
'
)
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip still faded in
'
)
$tooltip
.
trigger
(
'
mouseenter
'
)
},
10
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20ms: tooltip still faded in
'
)
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20
0
ms: tooltip still faded in
'
)
start
()
},
20
)
},
20
0
)
},
0
)
$tooltip
.
trigger
(
'
mouseenter
'
)
...
...
@@ -867,17 +867,17 @@ $(function () {
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
15
})
.
bootstrapTooltip
({
delay
:
15
0
})
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip not faded in
'
)
$tooltip
.
trigger
(
'
mouseout
'
)
},
10
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
20
0
ms: tooltip not faded in
'
)
start
()
},
20
)
},
20
0
)
$tooltip
.
trigger
(
'
mouseenter
'
)
})
...
...
@@ -887,27 +887,27 @@ $(function () {
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
{
show
:
15
,
hide
:
0
}})
.
bootstrapTooltip
({
delay
:
{
show
:
15
0
,
hide
:
0
}})
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip not faded in
'
)
$tooltip
.
trigger
(
'
mouseout
'
)
},
10
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
25ms: tooltip not faded in
'
)
ok
(
!
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
25
0
ms: tooltip not faded in
'
)
start
()
},
25
)
},
25
0
)
$tooltip
.
trigger
(
'
mouseenter
'
)
})
test
(
'
should wait 20ms before hiding the tooltip
'
,
function
()
{
test
(
'
should wait 20
0
ms before hiding the tooltip
'
,
function
()
{
stop
()
var
$tooltip
=
$
(
'
<a href="#" rel="tooltip" title="Another tooltip"/>
'
)
.
appendTo
(
'
#qunit-fixture
'
)
.
bootstrapTooltip
({
delay
:
{
show
:
0
,
hide
:
15
}})
.
bootstrapTooltip
({
delay
:
{
show
:
0
,
hide
:
15
0
}})
setTimeout
(
function
()
{
ok
(
$tooltip
.
data
(
'
bs.tooltip
'
).
$tip
.
is
(
'
.fade.in
'
),
'
1ms: tooltip faded in
'
)
...
...
@@ -915,13 +915,13 @@ $(function () {
$tooltip
.
trigger
(
'
mouseout
'
)
setTimeout
(
function
()
{
ok
(
$tooltip
.
data
(
'
bs.tooltip
'
).
$tip
.
is
(
'
.fade.in
'
),
'
10ms: tooltip still faded in
'
)
},
10
)
ok
(
$tooltip
.
data
(
'
bs.tooltip
'
).
$tip
.
is
(
'
.fade.in
'
),
'
10
0
ms: tooltip still faded in
'
)
},
10
0
)
setTimeout
(
function
()
{
ok
(
!
$tooltip
.
data
(
'
bs.tooltip
'
).
$tip
.
is
(
'
.in
'
),
'
20ms: tooltip removed
'
)
ok
(
!
$tooltip
.
data
(
'
bs.tooltip
'
).
$tip
.
is
(
'
.in
'
),
'
20
0
ms: tooltip removed
'
)
start
()
},
20
)
},
20
0
)
},
0
)
...
...
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