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
c8087223
Commit
c8087223
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge pull request #15955 from twbs/fixture-on-screen-ios
Unit tests: Only display fixture on-screen for iOS
parents
de0722f9
20fb55a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/tests/index.html
+11
-6
js/tests/index.html
with
11 additions
and
6 deletions
+11
-6
js/tests/index.html
+
11
-
6
View file @
c8087223
...
...
@@ -11,12 +11,6 @@
<!-- QUnit -->
<link
rel=
"stylesheet"
href=
"vendor/qunit.css"
media=
"screen"
>
<script
src=
"vendor/qunit.js"
></script>
<style>
#qunit-fixture
{
top
:
0
;
left
:
0
;
}
</style>
<script>
// See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
var
log
=
[]
...
...
@@ -52,6 +46,17 @@
$
(
'
#qunit-fixture
'
).
empty
()
$
(
'
#modal-test, .modal-backdrop
'
).
remove
()
})
// Display fixture on-screen on iOS to avoid false positives
if
(
/iPhone|iPad|iPod/
.
test
(
navigator
.
userAgent
))
{
QUnit
.
begin
(
function
()
{
$
(
'
#qunit-fixture
'
).
css
({
top
:
0
,
left
:
0
})
})
QUnit
.
done
(
function
()
{
$
(
'
#qunit-fixture
'
).
css
({
top
:
''
,
left
:
''
})
})
}
</script>
<!-- Plugin sources -->
...
...
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