Skip to content

Commit

Permalink
Fix attempt #1 for running SauceLabs IE8 test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-dean committed Aug 1, 2016
1 parent 6399ebc commit 5033512
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ module.exports = function (grunt) {
platform: 'Windows 8.1'
},
{
browserName: "edge",
browserName: "MicrosoftEdge",
version: '13',
platform: 'Windows 10'
},
// Mobile browsers
{
browserName: "ipad",
version: '8.0',
version: '8.4',
platform: 'OS X 10.9',
'device-orientation': 'portrait'
},
Expand Down Expand Up @@ -93,7 +93,7 @@ module.exports = function (grunt) {
sauceJobs[testName] = {
options: {
urls: ["http://localhost:8081/tmp/browser/test-runner-" + testName + ".html"],
testname: 'Less.js test - ' + testName,
testname: testName,
browsers: browsers,
public: 'public',
recordVideo: false,
Expand Down
6 changes: 5 additions & 1 deletion lib/less-browser/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ function resolveOrReject(data) {
}
}

less.pageLoadFinished = new Promise(function() {
return less.refresh(less.env === 'development').then(resolveOrReject, resolveOrReject);
});

if (options.onReady) {
if (/!watch/.test(window.location.hash)) {
less.watch();
Expand All @@ -48,5 +52,5 @@ if (options.onReady) {
head.appendChild(style);
}
less.registerStylesheetsImmediately();
less.pageLoadFinished = less.refresh(less.env === 'development').then(resolveOrReject, resolveOrReject);
less.refresh(less.env === 'development').then(resolveOrReject, resolveOrReject);
}

0 comments on commit 5033512

Please sign in to comment.