Raised timeout for error test, it did not made it till the end

occasionally.
This commit is contained in:
meri
2013-08-07 16:18:50 +02:00
parent e3f573d6b2
commit 1105f1e02f
3 changed files with 4 additions and 11 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -1,4 +1,4 @@
describe("less.js error tests", function() {
testLessErrorsInDocument();
})
});