]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix the iOS 8 unit test failures 14931/head
authorHeinrich Fenkart <hnrch02@gmail.com>
Thu, 30 Oct 2014 04:19:48 +0000 (05:19 +0100)
committerHeinrich Fenkart <hnrch02@gmail.com>
Thu, 30 Oct 2014 08:35:53 +0000 (09:35 +0100)
Resolves #14919.

js/tests/index.html

index 194f531aaf81b8297d4298e187ca2aede5024794..2d86a2ec4dc3f005c04ad362a9e008230129666e 100644 (file)
@@ -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>
       #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