mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Added rootpath tests.
This commit is contained in:
@@ -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'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
3
test/browser/runner-rootpath-options.js
Normal file
3
test/browser/runner-rootpath-options.js
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {};
|
||||
less.rootpath = "https://www.github.com/";
|
||||
|
||||
3
test/browser/runner-rootpath-spec.js
Normal file
3
test/browser/runner-rootpath-spec.js
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js browser test - rootpath url's", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
||||
Reference in New Issue
Block a user