Commit 25ab1539 authored by Heinrich Fenkart's avatar Heinrich Fenkart

Merge pull request #14931 from twbs/fix-ios-unit-test-failures

Fix the iOS 8 unit test failures
parents c5fdea1b cf482dbb
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Bootstrap Plugin Test Suite</title> <title>Bootstrap Plugin Test Suite</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery --> <!-- jQuery -->
<script src="vendor/jquery.min.js"></script> <script src="vendor/jquery.min.js"></script>
...@@ -14,6 +15,11 @@ ...@@ -14,6 +15,11 @@
#qunit-tests > li.pass { #qunit-tests > li.pass {
display: none;/* Make it easier to see failing tests is Sauce screencasts */ display: none;/* Make it easier to see failing tests is Sauce screencasts */
} }
#qunit-fixture {
top: 0;
left: 0;
}
</style> </style>
<script> <script>
// See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit // See https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit
...@@ -36,6 +42,7 @@ ...@@ -36,6 +42,7 @@
}) })
QUnit.testStart(function (testDetails) { QUnit.testStart(function (testDetails) {
$(window).scrollTop(0)
QUnit.log = function (details) { QUnit.log = function (details) {
if (!details.result) { if (!details.result) {
details.name = testDetails.name details.name = testDetails.name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment