mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Raised timeout for error test, it did not made it till the end
occasionally.
This commit is contained in:
11
Gruntfile.js
11
Gruntfile.js
@@ -28,12 +28,6 @@ module.exports = function(grunt) {
|
||||
test: {
|
||||
command: 'node test/less-test.js'
|
||||
},
|
||||
browser: {
|
||||
command: 'node test/browser-test-prepare.js'
|
||||
},
|
||||
phantom: {
|
||||
command: 'phantomjs test/browser/phantom-runner.js'
|
||||
},
|
||||
benchmark: {
|
||||
command: 'node benchmark/less-benchmark.js'
|
||||
}
|
||||
@@ -125,7 +119,7 @@ module.exports = function(grunt) {
|
||||
|
||||
jasmine: {
|
||||
options: {
|
||||
keepRunner: true, //TODO meri: remove after it is done
|
||||
keepRunner: true,
|
||||
host: 'http://localhost:8081/',
|
||||
vendor: 'test/browser/common.js',
|
||||
template: 'test/browser/test-runner-template.tmpl'
|
||||
@@ -150,6 +144,7 @@ module.exports = function(grunt) {
|
||||
errors: {
|
||||
src: ['test/less/errors/*.less', '!test/less/errors/javascript-error.less'],
|
||||
options: {
|
||||
timeout: 20000,
|
||||
helpers: 'test/browser/runner-errors-options.js',
|
||||
specs: 'test/browser/runner-errors-spec.js',
|
||||
outfile: 'test/browser/test-runner-errors.html'
|
||||
@@ -272,8 +267,6 @@ module.exports = function(grunt) {
|
||||
'clean',
|
||||
'shell:test',
|
||||
'browserTest'
|
||||
// 'shell:browser',
|
||||
// 'shell:phantom'
|
||||
]);
|
||||
|
||||
// Run benchmark
|
||||
|
||||
@@ -89,7 +89,7 @@ var testErrorSheet = function(sheet) {
|
||||
|
||||
// Less.js sets 10ms timer in order to add error message on top of page.
|
||||
waitsFor(function() {
|
||||
actualErrorElement = document.getElementById(id);
|
||||
actualErrorElement = document.getElementById(id);
|
||||
return actualErrorElement!==null;
|
||||
}, "error message was not generated", 70);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
describe("less.js error tests", function() {
|
||||
testLessErrorsInDocument();
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user