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
0aaf2cdd
Commit
0aaf2cdd
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
quote attribute values in selectors in JS unit tests for consistency
parent
a6214273
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/tests/unit/modal.js
+2
-2
js/tests/unit/modal.js
js/tests/unit/tooltip.js
+1
-1
js/tests/unit/tooltip.js
with
3 additions
and
3 deletions
+3
-3
js/tests/unit/modal.js
+
2
-
2
View file @
0aaf2cdd
...
...
@@ -100,7 +100,7 @@ $(function () {
.
modal
(
'
toggle
'
)
})
test
(
'
should remove from dom when click [data-dismiss=modal]
'
,
function
()
{
test
(
'
should remove from dom when click [data-dismiss=
"
modal
"
]
'
,
function
()
{
stop
()
$
.
support
.
transition
=
false
var
div
=
$
(
'
<div id="modal-test"><span class="close" data-dismiss="modal"></span></div>
'
)
...
...
@@ -174,7 +174,7 @@ $(function () {
.
modal
(
'
show
'
)
})
test
(
'
should close reopened modal with [data-dismiss=modal] click
'
,
function
()
{
test
(
'
should close reopened modal with [data-dismiss=
"
modal
"
] click
'
,
function
()
{
stop
()
$
.
support
.
transition
=
false
var
div
=
$
(
'
<div id="modal-test"><div class="contents"><div id="close" data-dismiss="modal"></div></div></div>
'
)
...
...
This diff is collapsed.
Click to expand it.
js/tests/unit/tooltip.js
+
1
-
1
View file @
0aaf2cdd
...
...
@@ -273,7 +273,7 @@ $(function () {
test
(
'
should show tooltip with delegate selector on click
'
,
function
()
{
var
div
=
$
(
'
<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>
'
)
div
.
appendTo
(
'
#qunit-fixture
'
)
.
tooltip
({
selector
:
'
a[rel=tooltip]
'
,
trigger
:
'
click
'
})
.
tooltip
({
selector
:
'
a[rel=
"
tooltip
"
]
'
,
trigger
:
'
click
'
})
div
.
find
(
'
a
'
).
trigger
(
'
click
'
)
ok
(
$
(
'
.tooltip
'
).
is
(
'
.fade.in
'
),
'
tooltip is faded in
'
)
})
...
...
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