Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
02df7cd0
Unverified
Commit
02df7cd0
authored
6 years ago
by
XhmikosR
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix util tests on IE 10 (#27556)
parent
77ff5e8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tests/unit/util.js
+2
-2
js/tests/unit/util.js
with
2 additions
and
2 deletions
+2
-2
js/tests/unit/util.js
+
2
-
2
View file @
02df7cd0
...
@@ -78,10 +78,10 @@ $(function () {
...
@@ -78,10 +78,10 @@ $(function () {
QUnit
.
test
(
'
Util.getTransitionDurationFromElement should return the addition of transition-delay and transition-duration
'
,
function
(
assert
)
{
QUnit
.
test
(
'
Util.getTransitionDurationFromElement should return the addition of transition-delay and transition-duration
'
,
function
(
assert
)
{
assert
.
expect
(
2
)
assert
.
expect
(
2
)
var
$fixture
=
$
(
'
#qunit-fixture
'
)
var
$fixture
=
$
(
'
#qunit-fixture
'
)
var
$div
=
$
(
'
<div style="transition: all 0s
2
ms ease-out;"></div>
'
).
appendTo
(
$fixture
)
var
$div
=
$
(
'
<div style="transition: all 0s
150
ms ease-out;"></div>
'
).
appendTo
(
$fixture
)
var
$div2
=
$
(
'
<div style="transition: all .25s 30ms ease-out;"></div>
'
).
appendTo
(
$fixture
)
var
$div2
=
$
(
'
<div style="transition: all .25s 30ms ease-out;"></div>
'
).
appendTo
(
$fixture
)
assert
.
strictEqual
(
Util
.
getTransitionDurationFromElement
(
$div
[
0
]),
2
)
assert
.
strictEqual
(
Util
.
getTransitionDurationFromElement
(
$div
[
0
]),
150
)
assert
.
strictEqual
(
Util
.
getTransitionDurationFromElement
(
$div2
[
0
]),
280
)
assert
.
strictEqual
(
Util
.
getTransitionDurationFromElement
(
$div2
[
0
]),
280
)
})
})
...
...
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
Menu
Explore
Projects
Groups
Snippets