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
804457c4
Commit
804457c4
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
fix 2 typos in modal unit test assertion messages
parent
dd1a31a7
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tests/unit/modal.js
+2
-2
js/tests/unit/modal.js
with
2 additions
and
2 deletions
+2
-2
js/tests/unit/modal.js
+
2
-
2
View file @
804457c4
...
@@ -164,7 +164,7 @@ $(function () {
...
@@ -164,7 +164,7 @@ $(function () {
$
(
'
<div id="modal-test"><div class="contents"/></div>
'
)
$
(
'
<div id="modal-test"><div class="contents"/></div>
'
)
.
on
(
'
shown.bs.modal
'
,
function
()
{
.
on
(
'
shown.bs.modal
'
,
function
()
{
assert
.
notEqual
(
$
(
'
#modal-test
'
).
length
,
0
,
'
modal ins
t
erted into dom
'
)
assert
.
notEqual
(
$
(
'
#modal-test
'
).
length
,
0
,
'
modal inserted into dom
'
)
$
(
'
.contents
'
).
click
()
$
(
'
.contents
'
).
click
()
assert
.
ok
(
$
(
'
#modal-test
'
).
is
(
'
:visible
'
),
'
modal visible
'
)
assert
.
ok
(
$
(
'
#modal-test
'
).
is
(
'
:visible
'
),
'
modal visible
'
)
$
(
'
#modal-test .modal-backdrop
'
).
click
()
$
(
'
#modal-test .modal-backdrop
'
).
click
()
...
@@ -201,7 +201,7 @@ $(function () {
...
@@ -201,7 +201,7 @@ $(function () {
var
div
=
$
(
'
<div id="modal-test"/>
'
)
var
div
=
$
(
'
<div id="modal-test"/>
'
)
div
div
.
on
(
'
shown.bs.modal
'
,
function
()
{
.
on
(
'
shown.bs.modal
'
,
function
()
{
assert
.
ok
(
$
(
'
#modal-test
'
).
length
,
'
modal ins
t
erted into dom
'
)
assert
.
ok
(
$
(
'
#modal-test
'
).
length
,
'
modal inserted into dom
'
)
assert
.
ok
(
$
(
'
#modal-test
'
).
is
(
'
:visible
'
),
'
modal visible
'
)
assert
.
ok
(
$
(
'
#modal-test
'
).
is
(
'
:visible
'
),
'
modal visible
'
)
div
.
trigger
(
$
.
Event
(
'
keyup
'
,
{
which
:
27
}))
div
.
trigger
(
$
.
Event
(
'
keyup
'
,
{
which
:
27
}))
...
...
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