Added rootpath tests.

This commit is contained in:
meri
2013-08-07 09:41:59 +02:00
parent 58f35b4cd1
commit 1f4bab6453
4 changed files with 15 additions and 1 deletions

View File

@@ -178,6 +178,14 @@ module.exports = function(grunt) {
specs: 'test/browser/runner-relative-urls-spec.js',
outfile: 'test/browser/test-runner-relative-urls.html'
}
},
rootpath: {
src: ['test/browser/less/rootpath/*.less'],
options: {
helpers: 'test/browser/runner-rootpath-options.js',
specs: 'test/browser/runner-rootpath-spec.js',
outfile: 'test/browser/test-runner-rootpath.html'
}
}
},

View File

@@ -1,5 +1,5 @@
@import "../imports/urls.less";
@import "http://localhost:8081/browser/less/imports/urls2.less";
@import "http://localhost:8081/test/browser/less/imports/urls2.less";
@font-face {
src: url("/fonts/garamond-pro.ttf");
src: local(Futura-Medium),

View File

@@ -0,0 +1,3 @@
var less = {};
less.rootpath = "https://www.github.com/";

View File

@@ -0,0 +1,3 @@
describe("less.js browser test - rootpath url's", function() {
testLessEqualsInDocument();
});