aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-10-30 05:19:48 +0100
committerHeinrich Fenkart <[email protected]>2014-10-30 09:35:53 +0100
commitcf482dbb0b7dde622c454d88e178430198837a02 (patch)
tree9234a5ad4b19c07c92d5028b7263e23c52f9bb5c
parentb8c3c5c19b2154d157256cec839c9b0a40b3e7b4 (diff)
downloadbootstrap-cf482dbb0b7dde622c454d88e178430198837a02.tar.xz
bootstrap-cf482dbb0b7dde622c454d88e178430198837a02.zip
Fix the iOS 8 unit test failures
Resolves #14919.
-rw-r--r--js/tests/index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/tests/index.html b/js/tests/index.html
index 194f531aa..2d86a2ec4 100644
--- a/js/tests/index.html
+++ b/js/tests/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Bootstrap Plugin Test Suite</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery -->
<script src="vendor/jquery.min.js"></script>
@@ -14,6 +15,11 @@
#qunit-tests > li.pass {
display: none;/* Make it easier to see failing tests is Sauce screencasts */
}
+
+ #qunit-fixture {
+ top: 0;
+ left: 0;
+ }
</style>
<script>
// See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
@@ -36,6 +42,7 @@
})
QUnit.testStart(function (testDetails) {
+ $(window).scrollTop(0)
QUnit.log = function (details) {
if (!details.result) {
details.name = testDetails.name