08-27-周三_17-09-29
This commit is contained in:
206
node_modules/less/test/browser/common.js
generated
vendored
Normal file
206
node_modules/less/test/browser/common.js
generated
vendored
Normal file
@@ -0,0 +1,206 @@
|
||||
/* Add js reporter for sauce */
|
||||
|
||||
jasmine.getEnv().addReporter(new jasmine.JSReporter2());
|
||||
|
||||
/* record log messages for testing */
|
||||
|
||||
var logMessages = [];
|
||||
window.less = window.less || {};
|
||||
less.loggers = [
|
||||
{
|
||||
info: function (msg) {
|
||||
logMessages.push(msg);
|
||||
},
|
||||
debug: function (msg) {
|
||||
logMessages.push(msg);
|
||||
},
|
||||
warn: function (msg) {
|
||||
logMessages.push(msg);
|
||||
},
|
||||
error: function (msg) {
|
||||
logMessages.push(msg);
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
var testLessEqualsInDocument = function () {
|
||||
testLessInDocument(testSheet);
|
||||
};
|
||||
|
||||
var testLessErrorsInDocument = function (isConsole) {
|
||||
testLessInDocument(isConsole ? testErrorSheetConsole : testErrorSheet);
|
||||
};
|
||||
|
||||
var testLessInDocument = function (testFunc) {
|
||||
var links = document.getElementsByTagName('link'),
|
||||
typePattern = /^text\/(x-)?less$/;
|
||||
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
if (links[i].rel === 'stylesheet/less' || (links[i].rel.match(/stylesheet/) &&
|
||||
(links[i].type.match(typePattern)))) {
|
||||
testFunc(links[i]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var ieFormat = function(text) {
|
||||
var styleNode = document.createElement('style');
|
||||
styleNode.setAttribute('type', 'text/css');
|
||||
var headNode = document.getElementsByTagName('head')[0];
|
||||
headNode.appendChild(styleNode);
|
||||
try {
|
||||
if (styleNode.styleSheet) {
|
||||
styleNode.styleSheet.cssText = text;
|
||||
} else {
|
||||
styleNode.innerText = text;
|
||||
}
|
||||
} catch (e) {
|
||||
throw new Error("Couldn't reassign styleSheet.cssText.");
|
||||
}
|
||||
var transformedText = styleNode.styleSheet ? styleNode.styleSheet.cssText : styleNode.innerText;
|
||||
headNode.removeChild(styleNode);
|
||||
return transformedText;
|
||||
};
|
||||
|
||||
var testSheet = function (sheet) {
|
||||
it(sheet.id + " should match the expected output", function (done) {
|
||||
var lessOutputId = sheet.id.replace("original-", ""),
|
||||
expectedOutputId = "expected-" + lessOutputId,
|
||||
lessOutputObj,
|
||||
lessOutput,
|
||||
expectedOutputHref = document.getElementById(expectedOutputId).href,
|
||||
expectedOutput = loadFile(expectedOutputHref);
|
||||
|
||||
// Browser spec generates less on the fly, so we need to loose control
|
||||
less.pageLoadFinished
|
||||
.then(function () {
|
||||
lessOutputObj = document.getElementById(lessOutputId);
|
||||
lessOutput = lessOutputObj.styleSheet ? lessOutputObj.styleSheet.cssText :
|
||||
(lessOutputObj.innerText || lessOutputObj.innerHTML);
|
||||
|
||||
expectedOutput
|
||||
.then(function (text) {
|
||||
if (window.navigator.userAgent.indexOf("MSIE") >= 0 ||
|
||||
window.navigator.userAgent.indexOf("Trident/") >= 0) {
|
||||
text = ieFormat(text);
|
||||
}
|
||||
expect(lessOutput).toEqual(text);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
//TODO: do it cleaner - the same way as in css
|
||||
|
||||
function extractId(href) {
|
||||
return href.replace(/^[a-z-]+:\/+?[^\/]+/i, '') // Remove protocol & domain
|
||||
.replace(/^\//, '') // Remove root /
|
||||
.replace(/\.[a-zA-Z]+$/, '') // Remove simple extension
|
||||
.replace(/[^\.\w-]+/g, '-') // Replace illegal characters
|
||||
.replace(/\./g, ':'); // Replace dots with colons(for valid id)
|
||||
}
|
||||
|
||||
var waitFor = function (waitFunc) {
|
||||
return new Promise(function (resolve) {
|
||||
var timeoutId = setInterval(function () {
|
||||
if (waitFunc()) {
|
||||
clearInterval(timeoutId);
|
||||
resolve();
|
||||
}
|
||||
}, 5);
|
||||
});
|
||||
};
|
||||
|
||||
var testErrorSheet = function (sheet) {
|
||||
it(sheet.id + " should match an error", function (done) {
|
||||
var lessHref = sheet.href,
|
||||
id = "less-error-message:" + extractId(lessHref),
|
||||
errorHref = lessHref.replace(/.less$/, ".txt"),
|
||||
errorFile = loadFile(errorHref),
|
||||
actualErrorElement,
|
||||
actualErrorMsg;
|
||||
|
||||
// Less.js sets 10ms timer in order to add error message on top of page.
|
||||
waitFor(function () {
|
||||
actualErrorElement = document.getElementById(id);
|
||||
return actualErrorElement !== null;
|
||||
}).then(function () {
|
||||
var innerText = (actualErrorElement.innerHTML
|
||||
.replace(/<h3>|<\/?p>|<a href="[^"]*">|<\/a>|<ul>|<\/?pre( class="?[^">]*"?)?>|<\/li>|<\/?label>/ig, "")
|
||||
.replace(/<\/h3>/ig, " ")
|
||||
.replace(/<li>|<\/ul>|<br>/ig, "\n"))
|
||||
.replace(/&/ig, "&")
|
||||
// for IE8
|
||||
.replace(/\r\n/g, "\n")
|
||||
.replace(/\. \nin/, ". in");
|
||||
actualErrorMsg = innerText
|
||||
.replace(/\n\d+/g, function (lineNo) {
|
||||
return lineNo + " ";
|
||||
})
|
||||
.replace(/\n\s*in /g, " in ")
|
||||
.replace(/\n{2,}/g, "\n")
|
||||
.replace(/\nStack Trace\n[\s\S]*/i, "")
|
||||
.replace(/\n$/, "");
|
||||
errorFile
|
||||
.then(function (errorTxt) {
|
||||
errorTxt = errorTxt
|
||||
.replace(/\{path\}/g, "")
|
||||
.replace(/\{pathrel\}/g, "")
|
||||
.replace(/\{pathhref\}/g, "http://localhost:8081/test/less/errors/")
|
||||
.replace(/\{404status\}/g, " (404)")
|
||||
.replace(/\{node\}.*\{\/node\}/g, "")
|
||||
.replace(/\n$/, "");
|
||||
expect(actualErrorMsg).toEqual(errorTxt);
|
||||
if (errorTxt == actualErrorMsg) {
|
||||
actualErrorElement.style.display = "none";
|
||||
}
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var testErrorSheetConsole = function (sheet) {
|
||||
it(sheet.id + " should match an error", function (done) {
|
||||
var lessHref = sheet.href,
|
||||
id = sheet.id.replace(/^original-less:/, "less-error-message:"),
|
||||
errorHref = lessHref.replace(/.less$/, ".txt"),
|
||||
errorFile = loadFile(errorHref),
|
||||
actualErrorElement = document.getElementById(id),
|
||||
actualErrorMsg = logMessages[logMessages.length - 1]
|
||||
.replace(/\nStack Trace\n[\s\S]*/, "");
|
||||
|
||||
describe("the error", function () {
|
||||
expect(actualErrorElement).toBe(null);
|
||||
});
|
||||
|
||||
errorFile
|
||||
.then(function (errorTxt) {
|
||||
errorTxt
|
||||
.replace(/\{path\}/g, "")
|
||||
.replace(/\{pathrel\}/g, "")
|
||||
.replace(/\{pathhref\}/g, "http://localhost:8081/browser/less/")
|
||||
.replace(/\{404status\}/g, " (404)")
|
||||
.replace(/\{node\}.*\{\/node\}/g, "")
|
||||
.trim();
|
||||
expect(actualErrorMsg).toEqual(errorTxt);
|
||||
done();
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var loadFile = function (href) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', href, true);
|
||||
request.onreadystatechange = function () {
|
||||
if (request.readyState == 4) {
|
||||
resolve(request.responseText.replace(/\r/g, ""));
|
||||
}
|
||||
};
|
||||
request.send(null);
|
||||
});
|
||||
};
|
||||
|
||||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000;
|
3
node_modules/less/test/browser/css/global-vars/simple.css
generated
vendored
Normal file
3
node_modules/less/test/browser/css/global-vars/simple.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.test {
|
||||
color: red;
|
||||
}
|
8
node_modules/less/test/browser/css/modify-vars/simple.css
generated
vendored
Normal file
8
node_modules/less/test/browser/css/modify-vars/simple.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
.testisimported {
|
||||
color: gainsboro;
|
||||
}
|
||||
.test {
|
||||
color1: green;
|
||||
color2: purple;
|
||||
scalar: 20;
|
||||
}
|
4
node_modules/less/test/browser/css/postProcessor/postProcessor.css
generated
vendored
Normal file
4
node_modules/less/test/browser/css/postProcessor/postProcessor.css
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
hr {height:50px;}
|
||||
.test {
|
||||
color: white;
|
||||
}
|
36
node_modules/less/test/browser/css/relative-urls/urls.css
generated
vendored
Normal file
36
node_modules/less/test/browser/css/relative-urls/urls.css
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
@import "http://localhost:8081/test/browser/less/imports/modify-this.css";
|
||||
@import "http://localhost:8081/test/browser/less/imports/modify-again.css";
|
||||
.modify {
|
||||
my-url: url("http://localhost:8081/test/browser/less/imports/a.png");
|
||||
}
|
||||
.modify {
|
||||
my-url: url("http://localhost:8081/test/browser/less/imports/b.png");
|
||||
}
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium), url(http://localhost:8081/test/browser/less/relative-urls/fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(http://localhost:8081/test/browser/less/relative-urls/images/image.jpg);
|
||||
background: url("#inline-svg");
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
.comma-delimited {
|
||||
background: url(http://localhost:8081/test/browser/less/relative-urls/bg.jpg) no-repeat, url(http://localhost:8081/test/browser/less/relative-urls/bg.png) repeat-x top left, url(http://localhost:8081/test/browser/less/relative-urls/bg);
|
||||
}
|
||||
.values {
|
||||
url: url('http://localhost:8081/test/browser/less/relative-urls/Trebuchet');
|
||||
}
|
35
node_modules/less/test/browser/css/rootpath-relative/urls.css
generated
vendored
Normal file
35
node_modules/less/test/browser/css/rootpath-relative/urls.css
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
@import "https://www.github.com/cloudhead/imports/modify-this.css";
|
||||
@import "https://www.github.com/cloudhead/imports/modify-again.css";
|
||||
.modify {
|
||||
my-url: url("https://www.github.com/cloudhead/imports/a.png");
|
||||
}
|
||||
.modify {
|
||||
my-url: url("https://www.github.com/cloudhead/imports/b.png");
|
||||
}
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium), url(https://www.github.com/cloudhead/less.js/fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(https://www.github.com/cloudhead/less.js/images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
.comma-delimited {
|
||||
background: url(https://www.github.com/cloudhead/less.js/bg.jpg) no-repeat, url(https://www.github.com/cloudhead/less.js/bg.png) repeat-x top left, url(https://www.github.com/cloudhead/less.js/bg);
|
||||
}
|
||||
.values {
|
||||
url: url('https://www.github.com/cloudhead/less.js/Trebuchet');
|
||||
}
|
35
node_modules/less/test/browser/css/rootpath/urls.css
generated
vendored
Normal file
35
node_modules/less/test/browser/css/rootpath/urls.css
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
@import "https://localhost/modify-this.css";
|
||||
@import "https://localhost/modify-again.css";
|
||||
.modify {
|
||||
my-url: url("https://localhost/a.png");
|
||||
}
|
||||
.modify {
|
||||
my-url: url("https://localhost/b.png");
|
||||
}
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium), url(https://localhost/fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(https://localhost/images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
.comma-delimited {
|
||||
background: url(https://localhost/bg.jpg) no-repeat, url(https://localhost/bg.png) repeat-x top left, url(https://localhost/bg);
|
||||
}
|
||||
.values {
|
||||
url: url('https://localhost/Trebuchet');
|
||||
}
|
57
node_modules/less/test/browser/css/urls.css
generated
vendored
Normal file
57
node_modules/less/test/browser/css/urls.css
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
@import "http://localhost:8081/test/browser/less/modify-this.css";
|
||||
@import "http://localhost:8081/test/browser/less/modify-again.css";
|
||||
.modify {
|
||||
my-url: url("http://localhost:8081/test/browser/less/a.png");
|
||||
}
|
||||
.modify {
|
||||
my-url: url("http://localhost:8081/test/browser/less/b.png");
|
||||
}
|
||||
.gray-gradient {
|
||||
background: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220%22%2F%3E%3Cstop%20offset%3D%2260%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.05%22%2F%3E%3Cstop%20offset%3D%2270%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.1%22%2F%3E%3Cstop%20offset%3D%2273%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.15%22%2F%3E%3Cstop%20offset%3D%2275%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.2%22%2F%3E%3Cstop%20offset%3D%2280%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.25%22%2F%3E%3Cstop%20offset%3D%2285%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.3%22%2F%3E%3Cstop%20offset%3D%2288%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.35%22%2F%3E%3Cstop%20offset%3D%2290%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.4%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.45%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23999999%22%20stop-opacity%3D%220.5%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E');
|
||||
}
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium), url(http://localhost:8081/test/browser/less/fonts.svg#MyGeometricModern) format("svg");
|
||||
not-a-comment: url(//z);
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(http://localhost:8081/test/browser/less/images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
.comma-delimited {
|
||||
background: url(http://localhost:8081/test/browser/less/bg.jpg) no-repeat, url(http://localhost:8081/test/browser/less/bg.png) repeat-x top left, url(http://localhost:8081/test/browser/less/bg);
|
||||
}
|
||||
.values {
|
||||
url: url('http://localhost:8081/test/browser/less/Trebuchet');
|
||||
}
|
||||
#data-uri {
|
||||
uri: url('http://localhost:8081/test/data/image.jpg');
|
||||
}
|
||||
#data-uri-guess {
|
||||
uri: url('http://localhost:8081/test/data/image.jpg');
|
||||
}
|
||||
#data-uri-ascii {
|
||||
uri-1: url('http://localhost:8081/test/data/page.html');
|
||||
uri-2: url('http://localhost:8081/test/data/page.html');
|
||||
}
|
||||
#data-uri-toobig {
|
||||
uri: url('http://localhost:8081/test/data/data-uri-fail.png');
|
||||
}
|
||||
#svg-functions {
|
||||
background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E');
|
||||
background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23000000%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E');
|
||||
background-image: url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%201%201%22%20preserveAspectRatio%3D%22none%22%3E%3ClinearGradient%20id%3D%22gradient%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%3E%3Cstop%20offset%3D%221%25%22%20stop-color%3D%22%23c4c4c4%22%2F%3E%3Cstop%20offset%3D%223%25%22%20stop-color%3D%22%23ffa500%22%2F%3E%3Cstop%20offset%3D%225%25%22%20stop-color%3D%22%23008000%22%2F%3E%3Cstop%20offset%3D%2295%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%3C%2FlinearGradient%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22url(%23gradient)%22%20%2F%3E%3C%2Fsvg%3E');
|
||||
}
|
391
node_modules/less/test/browser/jasmine-jsreporter.js
generated
vendored
Normal file
391
node_modules/less/test/browser/jasmine-jsreporter.js
generated
vendored
Normal file
@@ -0,0 +1,391 @@
|
||||
/*
|
||||
This file is part of the Jasmine JSReporter project from Ivan De Marino.
|
||||
|
||||
Copyright (C) 2011-2014 Ivan De Marino <http://ivandemarino.me>
|
||||
Copyright (C) 2014 Alex Treppass <http://alextreppass.co.uk>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the <organization> nor the
|
||||
names of its contributors may be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL IVAN DE MARINO BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
(function (jasmine) {
|
||||
|
||||
if (!jasmine) {
|
||||
throw new Error("[Jasmine JSReporter] 'Jasmine' library not found");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Jasmine JSReporter for Jasmine 1.x
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Calculate elapsed time, in Seconds.
|
||||
* @param startMs Start time in Milliseconds
|
||||
* @param finishMs Finish time in Milliseconds
|
||||
* @return Elapsed time in Seconds */
|
||||
function elapsedSec (startMs, finishMs) {
|
||||
return (finishMs - startMs) / 1000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Round an amount to the given number of Digits.
|
||||
* If no number of digits is given, than '2' is assumed.
|
||||
* @param amount Amount to round
|
||||
* @param numOfDecDigits Number of Digits to round to. Default value is '2'.
|
||||
* @return Rounded amount */
|
||||
function round (amount, numOfDecDigits) {
|
||||
numOfDecDigits = numOfDecDigits || 2;
|
||||
return Math.round(amount * Math.pow(10, numOfDecDigits)) / Math.pow(10, numOfDecDigits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new array which contains only the failed items.
|
||||
* @param items Items which will be filtered
|
||||
* @returns {Array} of failed items */
|
||||
function failures (items) {
|
||||
var fs = [], i, v;
|
||||
for (i = 0; i < items.length; i += 1) {
|
||||
v = items[i];
|
||||
if (!v.passed_) {
|
||||
fs.push(v);
|
||||
}
|
||||
}
|
||||
return fs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Collect information about a Suite, recursively, and return a JSON result.
|
||||
* @param suite The Jasmine Suite to get data from
|
||||
*/
|
||||
function getSuiteData (suite) {
|
||||
var suiteData = {
|
||||
description : suite.description,
|
||||
durationSec : 0,
|
||||
specs: [],
|
||||
suites: [],
|
||||
passed: true
|
||||
},
|
||||
specs = suite.specs(),
|
||||
suites = suite.suites(),
|
||||
i, ilen;
|
||||
|
||||
// Loop over all the Suite's Specs
|
||||
for (i = 0, ilen = specs.length; i < ilen; ++i) {
|
||||
suiteData.specs[i] = {
|
||||
description : specs[i].description,
|
||||
durationSec : specs[i].durationSec,
|
||||
passed : specs[i].results().passedCount === specs[i].results().totalCount,
|
||||
skipped : specs[i].results().skipped,
|
||||
passedCount : specs[i].results().passedCount,
|
||||
failedCount : specs[i].results().failedCount,
|
||||
totalCount : specs[i].results().totalCount,
|
||||
failures: failures(specs[i].results().getItems())
|
||||
};
|
||||
suiteData.passed = !suiteData.specs[i].passed ? false : suiteData.passed;
|
||||
suiteData.durationSec += suiteData.specs[i].durationSec;
|
||||
}
|
||||
|
||||
// Loop over all the Suite's sub-Suites
|
||||
for (i = 0, ilen = suites.length; i < ilen; ++i) {
|
||||
suiteData.suites[i] = getSuiteData(suites[i]); //< recursive population
|
||||
suiteData.passed = !suiteData.suites[i].passed ? false : suiteData.passed;
|
||||
suiteData.durationSec += suiteData.suites[i].durationSec;
|
||||
}
|
||||
|
||||
// Rounding duration numbers to 3 decimal digits
|
||||
suiteData.durationSec = round(suiteData.durationSec, 4);
|
||||
|
||||
return suiteData;
|
||||
}
|
||||
|
||||
var JSReporter = function () {
|
||||
};
|
||||
|
||||
JSReporter.prototype = {
|
||||
reportRunnerStarting: function (runner) {
|
||||
// Nothing to do
|
||||
},
|
||||
|
||||
reportSpecStarting: function (spec) {
|
||||
// Start timing this spec
|
||||
spec.startedAt = new Date();
|
||||
},
|
||||
|
||||
reportSpecResults: function (spec) {
|
||||
// Finish timing this spec and calculate duration/delta (in sec)
|
||||
spec.finishedAt = new Date();
|
||||
// If the spec was skipped, reportSpecStarting is never called and spec.startedAt is undefined
|
||||
spec.durationSec = spec.startedAt ? elapsedSec(spec.startedAt.getTime(), spec.finishedAt.getTime()) : 0;
|
||||
},
|
||||
|
||||
reportSuiteResults: function (suite) {
|
||||
// Nothing to do
|
||||
},
|
||||
|
||||
reportRunnerResults: function (runner) {
|
||||
var suites = runner.suites(),
|
||||
i, j, ilen;
|
||||
|
||||
// Attach results to the "jasmine" object to make those results easy to scrap/find
|
||||
jasmine.runnerResults = {
|
||||
suites: [],
|
||||
durationSec : 0,
|
||||
passed : true
|
||||
};
|
||||
|
||||
// Loop over all the Suites
|
||||
for (i = 0, ilen = suites.length, j = 0; i < ilen; ++i) {
|
||||
if (suites[i].parentSuite === null) {
|
||||
jasmine.runnerResults.suites[j] = getSuiteData(suites[i]);
|
||||
// If 1 suite fails, the whole runner fails
|
||||
jasmine.runnerResults.passed = !jasmine.runnerResults.suites[j].passed ? false : jasmine.runnerResults.passed;
|
||||
// Add up all the durations
|
||||
jasmine.runnerResults.durationSec += jasmine.runnerResults.suites[j].durationSec;
|
||||
j++;
|
||||
}
|
||||
}
|
||||
|
||||
// Decorate the 'jasmine' object with getters
|
||||
jasmine.getJSReport = function () {
|
||||
if (jasmine.runnerResults) {
|
||||
return jasmine.runnerResults;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
jasmine.getJSReportAsString = function () {
|
||||
return JSON.stringify(jasmine.getJSReport());
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
// export public
|
||||
jasmine.JSReporter = JSReporter;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// Jasmine JSReporter for Jasmine 2.0
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/*
|
||||
Simple timer implementation
|
||||
*/
|
||||
var Timer = function () {};
|
||||
|
||||
Timer.prototype.start = function () {
|
||||
this.startTime = new Date().getTime();
|
||||
return this;
|
||||
};
|
||||
|
||||
Timer.prototype.elapsed = function () {
|
||||
if (this.startTime == null) {
|
||||
return -1;
|
||||
}
|
||||
return new Date().getTime() - this.startTime;
|
||||
};
|
||||
|
||||
/*
|
||||
Utility methods
|
||||
*/
|
||||
var _extend = function (obj1, obj2) {
|
||||
for (var prop in obj2) {
|
||||
obj1[prop] = obj2[prop];
|
||||
}
|
||||
return obj1;
|
||||
};
|
||||
var _clone = function (obj) {
|
||||
if (obj !== Object(obj)) {
|
||||
return obj;
|
||||
}
|
||||
return _extend({}, obj);
|
||||
};
|
||||
|
||||
jasmine.JSReporter2 = function () {
|
||||
this.specs = {};
|
||||
this.suites = {};
|
||||
this.rootSuites = [];
|
||||
this.suiteStack = [];
|
||||
|
||||
// export methods under jasmine namespace
|
||||
jasmine.getJSReport = this.getJSReport;
|
||||
jasmine.getJSReportAsString = this.getJSReportAsString;
|
||||
};
|
||||
|
||||
var JSR = jasmine.JSReporter2.prototype;
|
||||
|
||||
// Reporter API methods
|
||||
// --------------------
|
||||
|
||||
JSR.suiteStarted = function (suite) {
|
||||
suite = this._cacheSuite(suite);
|
||||
// build up suite tree as we go
|
||||
suite.specs = [];
|
||||
suite.suites = [];
|
||||
suite.passed = true;
|
||||
suite.parentId = this.suiteStack.slice(this.suiteStack.length - 1)[0];
|
||||
if (suite.parentId) {
|
||||
this.suites[suite.parentId].suites.push(suite);
|
||||
} else {
|
||||
this.rootSuites.push(suite.id);
|
||||
}
|
||||
this.suiteStack.push(suite.id);
|
||||
suite.timer = new Timer().start();
|
||||
};
|
||||
|
||||
JSR.suiteDone = function (suite) {
|
||||
suite = this._cacheSuite(suite);
|
||||
suite.duration = suite.timer.elapsed();
|
||||
suite.durationSec = suite.duration / 1000;
|
||||
this.suiteStack.pop();
|
||||
|
||||
// maintain parent suite state
|
||||
var parent = this.suites[suite.parentId];
|
||||
if (parent) {
|
||||
parent.passed = parent.passed && suite.passed;
|
||||
}
|
||||
|
||||
// keep report representation clean
|
||||
delete suite.timer;
|
||||
delete suite.id;
|
||||
delete suite.parentId;
|
||||
delete suite.fullName;
|
||||
};
|
||||
|
||||
JSR.specStarted = function (spec) {
|
||||
spec = this._cacheSpec(spec);
|
||||
spec.timer = new Timer().start();
|
||||
// build up suites->spec tree as we go
|
||||
spec.suiteId = this.suiteStack.slice(this.suiteStack.length - 1)[0];
|
||||
this.suites[spec.suiteId].specs.push(spec);
|
||||
};
|
||||
|
||||
JSR.specDone = function (spec) {
|
||||
spec = this._cacheSpec(spec);
|
||||
|
||||
spec.duration = spec.timer.elapsed();
|
||||
spec.durationSec = spec.duration / 1000;
|
||||
|
||||
spec.skipped = spec.status === 'pending';
|
||||
spec.passed = spec.skipped || spec.status === 'passed';
|
||||
|
||||
spec.totalCount = spec.passedExpectations.length + spec.failedExpectations.length;
|
||||
spec.passedCount = spec.passedExpectations.length;
|
||||
spec.failedCount = spec.failedExpectations.length;
|
||||
spec.failures = [];
|
||||
|
||||
for (var i = 0, j = spec.failedExpectations.length; i < j; i++) {
|
||||
var fail = spec.failedExpectations[i];
|
||||
spec.failures.push({
|
||||
type: 'expect',
|
||||
expected: fail.expected,
|
||||
passed: false,
|
||||
message: fail.message,
|
||||
matcherName: fail.matcherName,
|
||||
trace: {
|
||||
stack: fail.stack
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// maintain parent suite state
|
||||
var parent = this.suites[spec.suiteId];
|
||||
if (spec.failed) {
|
||||
parent.failingSpecs.push(spec);
|
||||
}
|
||||
parent.passed = parent.passed && spec.passed;
|
||||
|
||||
// keep report representation clean
|
||||
delete spec.timer;
|
||||
delete spec.totalExpectations;
|
||||
delete spec.passedExpectations;
|
||||
delete spec.suiteId;
|
||||
delete spec.fullName;
|
||||
delete spec.id;
|
||||
delete spec.status;
|
||||
delete spec.failedExpectations;
|
||||
};
|
||||
|
||||
JSR.jasmineDone = function () {
|
||||
this._buildReport();
|
||||
};
|
||||
|
||||
JSR.getJSReport = function () {
|
||||
if (jasmine.jsReport) {
|
||||
return jasmine.jsReport;
|
||||
}
|
||||
};
|
||||
|
||||
JSR.getJSReportAsString = function () {
|
||||
if (jasmine.jsReport) {
|
||||
return JSON.stringify(jasmine.jsReport);
|
||||
}
|
||||
};
|
||||
|
||||
// Private methods
|
||||
// ---------------
|
||||
|
||||
JSR._haveSpec = function (spec) {
|
||||
return this.specs[spec.id] != null;
|
||||
};
|
||||
|
||||
JSR._cacheSpec = function (spec) {
|
||||
var existing = this.specs[spec.id];
|
||||
if (existing == null) {
|
||||
existing = this.specs[spec.id] = _clone(spec);
|
||||
} else {
|
||||
_extend(existing, spec);
|
||||
}
|
||||
return existing;
|
||||
};
|
||||
|
||||
JSR._haveSuite = function (suite) {
|
||||
return this.suites[suite.id] != null;
|
||||
};
|
||||
|
||||
JSR._cacheSuite = function (suite) {
|
||||
var existing = this.suites[suite.id];
|
||||
if (existing == null) {
|
||||
existing = this.suites[suite.id] = _clone(suite);
|
||||
} else {
|
||||
_extend(existing, suite);
|
||||
}
|
||||
return existing;
|
||||
};
|
||||
|
||||
JSR._buildReport = function () {
|
||||
var overallDuration = 0;
|
||||
var overallPassed = true;
|
||||
var overallSuites = [];
|
||||
|
||||
for (var i = 0, j = this.rootSuites.length; i < j; i++) {
|
||||
var suite = this.suites[this.rootSuites[i]];
|
||||
overallDuration += suite.duration;
|
||||
overallPassed = overallPassed && suite.passed;
|
||||
overallSuites.push(suite);
|
||||
}
|
||||
|
||||
jasmine.jsReport = {
|
||||
passed: overallPassed,
|
||||
durationSec: overallDuration / 1000,
|
||||
suites: overallSuites
|
||||
};
|
||||
};
|
||||
|
||||
})(jasmine);
|
30
node_modules/less/test/browser/less.js
generated
vendored
Normal file
30
node_modules/less/test/browser/less.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/less/test/browser/less/console-errors/test-error.less
generated
vendored
Normal file
3
node_modules/less/test/browser/less/console-errors/test-error.less
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.a {
|
||||
prop: (3 / #fff);
|
||||
}
|
2
node_modules/less/test/browser/less/console-errors/test-error.txt
generated
vendored
Normal file
2
node_modules/less/test/browser/less/console-errors/test-error.txt
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
less: OperationError: Can't substract or divide a color from a number in {pathhref}console-errors/test-error.less on line null, column 0:
|
||||
1 prop: (3 / #fff);
|
3
node_modules/less/test/browser/less/global-vars/simple.less
generated
vendored
Normal file
3
node_modules/less/test/browser/less/global-vars/simple.less
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.test {
|
||||
color: @global-var;
|
||||
}
|
4
node_modules/less/test/browser/less/imports/urls.less
generated
vendored
Normal file
4
node_modules/less/test/browser/less/imports/urls.less
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
@import "modify-this.css";
|
||||
.modify {
|
||||
my-url: url("a.png");
|
||||
}
|
4
node_modules/less/test/browser/less/imports/urls2.less
generated
vendored
Normal file
4
node_modules/less/test/browser/less/imports/urls2.less
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
@import "modify-again.css";
|
||||
.modify {
|
||||
my-url: url("b.png");
|
||||
}
|
4
node_modules/less/test/browser/less/modify-vars/imports/simple2.less
generated
vendored
Normal file
4
node_modules/less/test/browser/less/modify-vars/imports/simple2.less
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
@var2: blue;
|
||||
.testisimported {
|
||||
color: gainsboro;
|
||||
}
|
8
node_modules/less/test/browser/less/modify-vars/simple.less
generated
vendored
Normal file
8
node_modules/less/test/browser/less/modify-vars/simple.less
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
@import "imports/simple2";
|
||||
@var1: red;
|
||||
@scale: 10;
|
||||
.test {
|
||||
color1: @var1;
|
||||
color2: @var2;
|
||||
scalar: @scale
|
||||
}
|
5
node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less
generated
vendored
Normal file
5
node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
@import "svg-gradient-mixin.less";
|
||||
|
||||
.gray-gradient {
|
||||
.gradient-mixin(#999);
|
||||
}
|
15
node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less
generated
vendored
Normal file
15
node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
.gradient-mixin(@color) {
|
||||
background: svg-gradient(to bottom,
|
||||
fade(@color, 0%) 0%,
|
||||
fade(@color, 5%) 60%,
|
||||
fade(@color, 10%) 70%,
|
||||
fade(@color, 15%) 73%,
|
||||
fade(@color, 20%) 75%,
|
||||
fade(@color, 25%) 80%,
|
||||
fade(@color, 30%) 85%,
|
||||
fade(@color, 35%) 88%,
|
||||
fade(@color, 40%) 90%,
|
||||
fade(@color, 45%) 95%,
|
||||
fade(@color, 50%) 100%
|
||||
);
|
||||
}
|
4
node_modules/less/test/browser/less/postProcessor/postProcessor.less
generated
vendored
Normal file
4
node_modules/less/test/browser/less/postProcessor/postProcessor.less
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
@color: white;
|
||||
.test {
|
||||
color: @color;
|
||||
}
|
34
node_modules/less/test/browser/less/relative-urls/urls.less
generated
vendored
Normal file
34
node_modules/less/test/browser/less/relative-urls/urls.less
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
@import ".././imports/urls.less";
|
||||
@import "http://localhost:8081/test/browser/less/imports/urls2.less";
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium),
|
||||
url(fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(images/image.jpg);
|
||||
background: url("#inline-svg");
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
|
||||
.comma-delimited {
|
||||
background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
|
||||
}
|
||||
.values {
|
||||
@a: 'Trebuchet';
|
||||
url: url(@a);
|
||||
}
|
33
node_modules/less/test/browser/less/rootpath-relative/urls.less
generated
vendored
Normal file
33
node_modules/less/test/browser/less/rootpath-relative/urls.less
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
@import "../imports/urls.less";
|
||||
@import "http://localhost:8081/test/browser/less/imports/urls2.less";
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium),
|
||||
url(fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
|
||||
.comma-delimited {
|
||||
background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
|
||||
}
|
||||
.values {
|
||||
@a: 'Trebuchet';
|
||||
url: url(@a);
|
||||
}
|
33
node_modules/less/test/browser/less/rootpath/urls.less
generated
vendored
Normal file
33
node_modules/less/test/browser/less/rootpath/urls.less
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
@import "../imports/urls.less";
|
||||
@import "http://localhost:8081/test/browser/less/imports/urls2.less";
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium),
|
||||
url(fonts.svg#MyGeometricModern) format("svg");
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
|
||||
.comma-delimited {
|
||||
background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
|
||||
}
|
||||
.values {
|
||||
@a: 'Trebuchet';
|
||||
url: url(@a);
|
||||
}
|
65
node_modules/less/test/browser/less/urls.less
generated
vendored
Normal file
65
node_modules/less/test/browser/less/urls.less
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
@import "imports/urls.less";
|
||||
@import "http://localhost:8081/test/browser/less/imports/urls2.less";
|
||||
@import "http://localhost:8081/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less";
|
||||
@font-face {
|
||||
src: url("/fonts/garamond-pro.ttf");
|
||||
src: local(Futura-Medium),
|
||||
url(fonts.svg#MyGeometricModern) format("svg");
|
||||
not-a-comment: url(//z);
|
||||
}
|
||||
#shorthands {
|
||||
background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
|
||||
}
|
||||
#misc {
|
||||
background-image: url(images/image.jpg);
|
||||
}
|
||||
#data-uri {
|
||||
background: url(data:image/png;charset=utf-8;base64,
|
||||
kiVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD/
|
||||
k//+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4U
|
||||
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
|
||||
background-image: url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9==);
|
||||
background-image: url(http://fonts.googleapis.com/css?family=\"Rokkitt\":\(400\),700);
|
||||
}
|
||||
|
||||
#svg-data-uri {
|
||||
background: transparent url('data:image/svg+xml, <svg version="1.1"><g></g></svg>');
|
||||
}
|
||||
|
||||
.comma-delimited {
|
||||
background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
|
||||
}
|
||||
.values {
|
||||
@a: 'Trebuchet';
|
||||
url: url(@a);
|
||||
}
|
||||
#data-uri {
|
||||
uri: data-uri('image/jpeg;base64', '../../data/image.jpg');
|
||||
}
|
||||
|
||||
#data-uri-guess {
|
||||
uri: data-uri('../../data/image.jpg');
|
||||
}
|
||||
|
||||
#data-uri-ascii {
|
||||
uri-1: data-uri('text/html', '../../data/page.html');
|
||||
uri-2: data-uri('../../data/page.html');
|
||||
}
|
||||
|
||||
#data-uri-toobig {
|
||||
uri: data-uri('../../data/data-uri-fail.png');
|
||||
}
|
||||
#svg-functions {
|
||||
@colorlist1: black, white;
|
||||
background-image: svg-gradient(to bottom, @colorlist1);
|
||||
background-image: svg-gradient(to bottom, black white);
|
||||
background-image: svg-gradient(to bottom, black, orange 3%, white);
|
||||
@colorlist2: black, orange 3%, white;
|
||||
background-image: svg-gradient(to bottom, @colorlist2);
|
||||
@green_5: green 5%;
|
||||
@orange_percentage: 3%;
|
||||
@orange_color: orange;
|
||||
@colorlist3: (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%;
|
||||
background-image: svg-gradient(to bottom,@colorlist3);
|
||||
background-image: svg-gradient(to bottom, (mix(black, white) + #444) 1%, @orange_color @orange_percentage, ((@green_5)), white 95%);
|
||||
}
|
3
node_modules/less/test/browser/runner-VisitorPlugin-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-VisitorPlugin-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console",
|
||||
plugins: [VisitorPlugin]};
|
3
node_modules/less/test/browser/runner-VisitorPlugin.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-VisitorPlugin.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js Visitor Plugin", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
51
node_modules/less/test/browser/runner-browser-options.js
generated
vendored
Normal file
51
node_modules/less/test/browser/runner-browser-options.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
var less = {logLevel: 4, errorReporting: "console"};
|
||||
|
||||
// There originally run inside describe method. However, since they have not
|
||||
// been inside it, they run at jasmine compile time (not runtime). It all
|
||||
// worked cause less.js was in async mode and custom phantom runner had
|
||||
// different setup then grunt-contrib-jasmine. They have been created before
|
||||
// less.js run, even as they have been defined in spec.
|
||||
|
||||
// test inline less in style tags by grabbing an assortment of less files and doing `@import`s
|
||||
var testFiles = ['charsets', 'colors', 'comments', 'css-3', 'strings', 'media', 'mixins'],
|
||||
testSheets = [];
|
||||
|
||||
// IE 8-10 does not support less in style tags
|
||||
if (window.navigator.userAgent.indexOf("MSIE") >= 0) {
|
||||
testFiles.length = 0;
|
||||
}
|
||||
|
||||
// setup style tags with less and link tags pointing to expected css output
|
||||
|
||||
for (var i = 0; i < testFiles.length; i++) {
|
||||
var file = testFiles[i],
|
||||
lessPath = '/test/less/' + file + '.less',
|
||||
cssPath = '/test/css/' + file + '.css',
|
||||
lessStyle = document.createElement('style'),
|
||||
cssLink = document.createElement('link'),
|
||||
lessText = '@import "' + lessPath + '";';
|
||||
|
||||
lessStyle.type = 'text/less';
|
||||
lessStyle.id = file;
|
||||
lessStyle.href = file;
|
||||
|
||||
if (lessStyle.styleSheet === undefined) {
|
||||
lessStyle.appendChild(document.createTextNode(lessText));
|
||||
}
|
||||
|
||||
cssLink.rel = 'stylesheet';
|
||||
cssLink.type = 'text/css';
|
||||
cssLink.href = cssPath;
|
||||
cssLink.id = 'expected-' + file;
|
||||
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
|
||||
head.appendChild(lessStyle);
|
||||
|
||||
if (lessStyle.styleSheet) {
|
||||
lessStyle.styleSheet.cssText = lessText;
|
||||
}
|
||||
|
||||
head.appendChild(cssLink);
|
||||
testSheets[i] = lessStyle;
|
||||
}
|
12
node_modules/less/test/browser/runner-browser-spec.js
generated
vendored
Normal file
12
node_modules/less/test/browser/runner-browser-spec.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
describe("less.js browser behaviour", function() {
|
||||
testLessEqualsInDocument();
|
||||
|
||||
it("has some log messages", function() {
|
||||
expect(logMessages.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
for (var i = 0; i < testFiles.length; i++) {
|
||||
var sheet = testSheets[i];
|
||||
testSheet(sheet);
|
||||
}
|
||||
});
|
5
node_modules/less/test/browser/runner-console-errors.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-console-errors.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
less.errorReporting = 'console';
|
||||
|
||||
describe("less.js error reporting console test", function() {
|
||||
testLessErrorsInDocument(true);
|
||||
});
|
4
node_modules/less/test/browser/runner-errors-options.js
generated
vendored
Normal file
4
node_modules/less/test/browser/runner-errors-options.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var less = {
|
||||
strictUnits: true,
|
||||
strictMath: true,
|
||||
logLevel: 4 };
|
3
node_modules/less/test/browser/runner-errors-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-errors-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js error tests", function() {
|
||||
testLessErrorsInDocument();
|
||||
});
|
4
node_modules/less/test/browser/runner-filemanagerPlugin-options.js
generated
vendored
Normal file
4
node_modules/less/test/browser/runner-filemanagerPlugin-options.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console",
|
||||
plugins: [AddFilePlugin]
|
||||
};
|
3
node_modules/less/test/browser/runner-filemanagerPlugin.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-filemanagerPlugin.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js filemanager Plugin", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
7
node_modules/less/test/browser/runner-global-vars-options.js
generated
vendored
Normal file
7
node_modules/less/test/browser/runner-global-vars-options.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var less = {
|
||||
logLevel: 4,
|
||||
errorReporting: "console",
|
||||
globalVars: {
|
||||
"@global-var": "red"
|
||||
}
|
||||
};
|
3
node_modules/less/test/browser/runner-global-vars-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-global-vars-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js global vars", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
5
node_modules/less/test/browser/runner-legacy-options.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-legacy-options.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var less = {
|
||||
logLevel: 4,
|
||||
errorReporting: "console",
|
||||
strictMath: false,
|
||||
strictUnits: false };
|
3
node_modules/less/test/browser/runner-legacy-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-legacy-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js legacy tests", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
18
node_modules/less/test/browser/runner-main-options.js
generated
vendored
Normal file
18
node_modules/less/test/browser/runner-main-options.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var less = {
|
||||
logLevel: 4,
|
||||
errorReporting: "console"
|
||||
};
|
||||
less.strictMath = true;
|
||||
less.functions = {
|
||||
add: function(a, b) {
|
||||
return new(less.tree.Dimension)(a.value + b.value);
|
||||
},
|
||||
increment: function(a) {
|
||||
return new(less.tree.Dimension)(a.value + 1);
|
||||
},
|
||||
_color: function(str) {
|
||||
if (str.value === "evil red") {
|
||||
return new(less.tree.Color)("600");
|
||||
}
|
||||
}
|
||||
};
|
7
node_modules/less/test/browser/runner-main-spec.js
generated
vendored
Normal file
7
node_modules/less/test/browser/runner-main-spec.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
console.warn("start spec");
|
||||
describe("less.js main tests", function() {
|
||||
testLessEqualsInDocument();
|
||||
it("the global environment", function() {
|
||||
expect(window.require).toBe(undefined);
|
||||
});
|
||||
});
|
5
node_modules/less/test/browser/runner-modify-vars-options.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-modify-vars-options.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/* exported less */
|
||||
var less = {
|
||||
logLevel: 4,
|
||||
errorReporting: "console"
|
||||
};
|
33
node_modules/less/test/browser/runner-modify-vars-spec.js
generated
vendored
Normal file
33
node_modules/less/test/browser/runner-modify-vars-spec.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
var alreadyRun = false;
|
||||
|
||||
describe("less.js modify vars", function () {
|
||||
beforeEach(function (done) {
|
||||
// simulating "setUp" or "beforeAll" method
|
||||
if (alreadyRun) {
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
alreadyRun = true;
|
||||
|
||||
less.pageLoadFinished
|
||||
.then(function () {
|
||||
less.modifyVars({
|
||||
var1: "green",
|
||||
var2: "purple",
|
||||
scale: 20
|
||||
}).then(function () {
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
testLessEqualsInDocument();
|
||||
it("Should log only 2 XHR requests", function (done) {
|
||||
var xhrLogMessages = logMessages.filter(function (item) {
|
||||
return (/XHR: Getting '/).test(item);
|
||||
});
|
||||
expect(xhrLogMessages.length).toEqual(2);
|
||||
done();
|
||||
});
|
||||
});
|
4
node_modules/less/test/browser/runner-no-js-errors-options.js
generated
vendored
Normal file
4
node_modules/less/test/browser/runner-no-js-errors-options.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var less = {logLevel: 4};
|
||||
|
||||
less.strictUnits = true;
|
||||
less.javascriptEnabled = false;
|
3
node_modules/less/test/browser/runner-no-js-errors-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-no-js-errors-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js javascript disabled error tests", function() {
|
||||
testLessErrorsInDocument();
|
||||
});
|
5
node_modules/less/test/browser/runner-postProcessor-options.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-postProcessor-options.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console"};
|
||||
less.postProcessor = function(styles) {
|
||||
return 'hr {height:50px;}\n' + styles;
|
||||
};
|
3
node_modules/less/test/browser/runner-postProcessor.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-postProcessor.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js postProcessor (deprecated)", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
3
node_modules/less/test/browser/runner-postProcessorPlugin-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-postProcessorPlugin-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console",
|
||||
plugins: [postProcessorPlugin]};
|
3
node_modules/less/test/browser/runner-postProcessorPlugin.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-postProcessorPlugin.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js postProcessor Plugin", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
3
node_modules/less/test/browser/runner-preProcessorPlugin-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-preProcessorPlugin-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console",
|
||||
plugins: [preProcessorPlugin]};
|
3
node_modules/less/test/browser/runner-preProcessorPlugin.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-preProcessorPlugin.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js preProcessor Plugin", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
3
node_modules/less/test/browser/runner-production-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-production-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console"};
|
||||
less.env = "production";
|
5
node_modules/less/test/browser/runner-production-spec.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-production-spec.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
describe("less.js production behaviour", function() {
|
||||
it("doesn't log any messages", function() {
|
||||
expect(logMessages.length).toEqual(0);
|
||||
});
|
||||
});
|
3
node_modules/less/test/browser/runner-relative-urls-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-relative-urls-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console"};
|
||||
less.relativeUrls = true;
|
3
node_modules/less/test/browser/runner-relative-urls-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-relative-urls-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js browser test - relative url's", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
3
node_modules/less/test/browser/runner-rootpath-options.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-rootpath-options.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console"};
|
||||
less.rootpath = "https://localhost/";
|
4
node_modules/less/test/browser/runner-rootpath-relative-options.js
generated
vendored
Normal file
4
node_modules/less/test/browser/runner-rootpath-relative-options.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
var less = {logLevel: 4,
|
||||
errorReporting: "console"};
|
||||
less.rootpath = "https://www.github.com/cloudhead/less.js/";
|
||||
less.relativeUrls = true;
|
3
node_modules/less/test/browser/runner-rootpath-relative-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-rootpath-relative-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js browser test - rootpath and relative url's", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
3
node_modules/less/test/browser/runner-rootpath-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-rootpath-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js browser test - rootpath url's", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
5
node_modules/less/test/browser/runner-strict-units-options.js
generated
vendored
Normal file
5
node_modules/less/test/browser/runner-strict-units-options.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var less = {
|
||||
logLevel: 4,
|
||||
errorReporting: "console",
|
||||
strictMath: true,
|
||||
strictUnits: true };
|
3
node_modules/less/test/browser/runner-strict-units-spec.js
generated
vendored
Normal file
3
node_modules/less/test/browser/runner-strict-units-spec.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
describe("less.js strict units tests", function() {
|
||||
testLessEqualsInDocument();
|
||||
});
|
95
node_modules/less/test/browser/test-runner-template.tmpl
generated
vendored
Normal file
95
node_modules/less/test/browser/test-runner-template.tmpl
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Jasmine Spec Runner</title>
|
||||
|
||||
<!-- generate script tags for tests -->
|
||||
<% var generateScriptTags = function(allScripts) { allScripts.forEach(function(script){ %>
|
||||
<script src="<%= script %>"></script>
|
||||
<% }); }; %>
|
||||
|
||||
<!-- generate script tags for tests -->
|
||||
<% var toArray = function(scripts) {
|
||||
%>[<%
|
||||
scripts.forEach(function(scriptUrl, index){
|
||||
%>"<%= scriptUrl %>"<%
|
||||
if (index !== scripts.length -1) {
|
||||
%>,<%
|
||||
}
|
||||
});
|
||||
%>]<%
|
||||
}; %>
|
||||
|
||||
<!-- for each test, generate CSS/LESS link tags -->
|
||||
<% scripts.src.forEach(function(fullLessName) {
|
||||
var pathParts = fullLessName.split('/');
|
||||
var fullCssName = fullLessName.replace(/less/g, 'css');
|
||||
var lessName = pathParts[pathParts.length - 1];
|
||||
var name = lessName.split('.')[0]; %>
|
||||
<!-- the tags to be generated -->
|
||||
<link id="original-less:test-less-<%= name %>" title="test-less-<%= name %>" rel="stylesheet/less" type="text/css" href="<%= fullLessName %>">
|
||||
<link id="expected-less:test-less-<%= name %>" rel="stylesheet" type="text/css" href="<%= fullCssName %>">
|
||||
<% }); %>
|
||||
|
||||
<!-- generate grunt-contrib-jasmine link tags -->
|
||||
<% css.forEach(function(style){ %>
|
||||
<link rel="stylesheet" type="text/css" href="<%= style %>">
|
||||
<% }) %>
|
||||
|
||||
<script>
|
||||
|
||||
function loadScript(url,callback){
|
||||
var script = document.createElement('script');
|
||||
|
||||
if(document.documentMode === 8){
|
||||
script.onreadystatechange = function(){
|
||||
if (script.readyState === 'loaded'){
|
||||
if (callback){callback()};
|
||||
};
|
||||
};
|
||||
} else {
|
||||
script.onload = function(){
|
||||
if (callback){callback()};
|
||||
};
|
||||
};
|
||||
script.src = url;
|
||||
document.body.appendChild(script);
|
||||
};
|
||||
|
||||
|
||||
// allow sauce to query for the jasmine report
|
||||
// because we have to load the page before starting the test, so the thing
|
||||
// sauce queries for might not be setup yet
|
||||
window.jasmine = { getJSReport: function() { } };
|
||||
setTimeout(function() {
|
||||
var jasmine = <% toArray([].concat(scripts.polyfills, scripts.jasmine, scripts.boot)) %>,
|
||||
helpers = <% toArray(scripts.helpers) %>,
|
||||
vendor = <% toArray(scripts.vendor) %>,
|
||||
specs = <% toArray(scripts.specs) %>,
|
||||
reporters = <% toArray([].concat(scripts.reporters)) %>,
|
||||
allScripts = jasmine.concat(helpers).concat(vendor).concat(specs).concat(reporters);
|
||||
|
||||
function addNextScript() {
|
||||
// for sauce, see above. Additional step needed between loading jasmine and loading
|
||||
// the js reporter
|
||||
if (!jasmine.getJSReport) {
|
||||
jasmine.getJSReport = function() {};
|
||||
}
|
||||
if (allScripts.length) {
|
||||
var scriptSrc = allScripts.shift();
|
||||
loadScript(scriptSrc, addNextScript);
|
||||
} else {
|
||||
window.onload();
|
||||
}
|
||||
}
|
||||
addNextScript();
|
||||
|
||||
},1000);
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- content -->
|
||||
</body>
|
||||
</html>
|
72
node_modules/less/test/copy-bom.js
generated
vendored
Normal file
72
node_modules/less/test/copy-bom.js
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
/*jshint latedef: nofunc */
|
||||
|
||||
// This is used to copy a folder (the test/less/* files & sub-folders), adding a BOM to the start of each LESS and CSS file.
|
||||
// This is a based on the copySync method from fs-extra (https://github.com/jprichardson/node-fs-extra/).
|
||||
|
||||
module.exports = function() {
|
||||
var path = require('path'),
|
||||
fs = require('fs');
|
||||
|
||||
var BUF_LENGTH = 64 * 1024;
|
||||
var _buff = new Buffer(BUF_LENGTH);
|
||||
|
||||
function copyFolderWithBom(src, dest) {
|
||||
var stats = fs.lstatSync(src);
|
||||
var destFolder = path.dirname(dest);
|
||||
var destFolderExists = fs.existsSync(destFolder);
|
||||
var performCopy = false;
|
||||
|
||||
if (stats.isFile()) {
|
||||
if (!destFolderExists) {
|
||||
fs.mkdirSync(destFolder);
|
||||
}
|
||||
if (src.match(/\.(css|less)$/)) {
|
||||
copyFileAddingBomSync(src, dest);
|
||||
} else {
|
||||
copyFileSync(src, dest);
|
||||
}
|
||||
}
|
||||
else if (stats.isDirectory()) {
|
||||
if (!fs.existsSync(destFolder)) {
|
||||
fs.mkdirSync(destFolder);
|
||||
}
|
||||
if (!fs.existsSync(dest)) {
|
||||
fs.mkdirSync(dest);
|
||||
}
|
||||
fs.readdirSync(src).forEach(function(d) {
|
||||
if (d !== 'bom') {
|
||||
copyFolderWithBom(path.join(src, d), path.join(dest, d));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function copyFileAddingBomSync(srcFile, destFile) {
|
||||
var contents = fs.readFileSync(srcFile, { encoding: 'utf8' });
|
||||
if (!contents.length || contents.charCodeAt(0) !== 0xFEFF) {
|
||||
contents = '\ufeff' + contents;
|
||||
}
|
||||
fs.writeFileSync(destFile, contents, { encoding: 'utf8' });
|
||||
}
|
||||
|
||||
function copyFileSync(srcFile, destFile) {
|
||||
var fdr = fs.openSync(srcFile, 'r');
|
||||
var stat = fs.fstatSync(fdr);
|
||||
var fdw = fs.openSync(destFile, 'w', stat.mode);
|
||||
var bytesRead = 1;
|
||||
var pos = 0;
|
||||
|
||||
while (bytesRead > 0) {
|
||||
bytesRead = fs.readSync(fdr, _buff, 0, BUF_LENGTH, pos)
|
||||
fs.writeSync(fdw, _buff, 0, bytesRead);
|
||||
pos += bytesRead;
|
||||
}
|
||||
|
||||
fs.closeSync(fdr);
|
||||
fs.closeSync(fdw);
|
||||
}
|
||||
|
||||
return {
|
||||
copyFolderWithBom: copyFolderWithBom
|
||||
};
|
||||
};
|
1
node_modules/less/test/css/charsets.css
generated
vendored
Normal file
1
node_modules/less/test/css/charsets.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";
|
87
node_modules/less/test/css/colors.css
generated
vendored
Normal file
87
node_modules/less/test/css/colors.css
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
#yelow #short {
|
||||
color: #fea;
|
||||
}
|
||||
#yelow #long {
|
||||
color: #ffeeaa;
|
||||
}
|
||||
#yelow #rgba {
|
||||
color: rgba(255, 238, 170, 0.1);
|
||||
}
|
||||
#yelow #argb {
|
||||
color: #1affeeaa;
|
||||
}
|
||||
#blue #short {
|
||||
color: #00f;
|
||||
}
|
||||
#blue #long {
|
||||
color: #0000ff;
|
||||
}
|
||||
#blue #rgba {
|
||||
color: rgba(0, 0, 255, 0.1);
|
||||
}
|
||||
#blue #argb {
|
||||
color: #1a0000ff;
|
||||
}
|
||||
#alpha #hsla {
|
||||
color: rgba(61, 45, 41, 0.6);
|
||||
}
|
||||
#overflow .a {
|
||||
color: #000000;
|
||||
}
|
||||
#overflow .b {
|
||||
color: #ffffff;
|
||||
}
|
||||
#overflow .c {
|
||||
color: #ffffff;
|
||||
}
|
||||
#overflow .d {
|
||||
color: #00ff00;
|
||||
}
|
||||
#overflow .e {
|
||||
color: rgba(0, 31, 255, 0.42);
|
||||
}
|
||||
#grey {
|
||||
color: #c8c8c8;
|
||||
}
|
||||
#333333 {
|
||||
color: #333333;
|
||||
}
|
||||
#808080 {
|
||||
color: #808080;
|
||||
}
|
||||
#00ff00 {
|
||||
color: #00ff00;
|
||||
}
|
||||
.lightenblue {
|
||||
color: #3333ff;
|
||||
}
|
||||
.darkenblue {
|
||||
color: #0000cc;
|
||||
}
|
||||
.unknowncolors {
|
||||
color: blue2;
|
||||
border: 2px solid superred;
|
||||
}
|
||||
.transparent {
|
||||
color: transparent;
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
#alpha #fromvar {
|
||||
opacity: 0.7;
|
||||
}
|
||||
#alpha #short {
|
||||
opacity: 1;
|
||||
}
|
||||
#alpha #long {
|
||||
opacity: 1;
|
||||
}
|
||||
#alpha #rgba {
|
||||
opacity: 0.2;
|
||||
}
|
||||
#alpha #hsl {
|
||||
opacity: 1;
|
||||
}
|
||||
#percentage {
|
||||
color: 255;
|
||||
border-color: rgba(255, 0, 0, 0.5);
|
||||
}
|
83
node_modules/less/test/css/comments.css
generated
vendored
Normal file
83
node_modules/less/test/css/comments.css
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
/******************\
|
||||
* *
|
||||
* Comment Header *
|
||||
* *
|
||||
\******************/
|
||||
/*
|
||||
|
||||
Comment
|
||||
|
||||
*/
|
||||
/*
|
||||
* Comment Test
|
||||
*
|
||||
* - cloudhead (http://cloudhead.net)
|
||||
*
|
||||
*/
|
||||
/* Colors
|
||||
* ------
|
||||
* #EDF8FC (background blue)
|
||||
* #166C89 (darkest blue)
|
||||
*
|
||||
* Text:
|
||||
* #333 (standard text) // A comment within a comment!
|
||||
* #1F9EC9 (standard link)
|
||||
*
|
||||
*/
|
||||
/* @group Variables
|
||||
------------------- */
|
||||
#comments,
|
||||
.comments {
|
||||
/**/
|
||||
color: red;
|
||||
/* A C-style comment */
|
||||
/* A C-style comment */
|
||||
background-color: orange;
|
||||
font-size: 12px;
|
||||
/* lost comment */
|
||||
content: "content";
|
||||
border: 1px solid black;
|
||||
padding: 0;
|
||||
margin: 2em;
|
||||
}
|
||||
/* commented out
|
||||
#more-comments {
|
||||
color: grey;
|
||||
}
|
||||
*/
|
||||
.selector,
|
||||
.lots,
|
||||
.comments {
|
||||
color: grey, /* blue */ orange;
|
||||
-webkit-border-radius: 2px /* webkit only */;
|
||||
-moz-border-radius: 8px /* moz only with operation */;
|
||||
}
|
||||
.test {
|
||||
color: 1px;
|
||||
}
|
||||
.sr-only-focusable {
|
||||
clip: auto;
|
||||
}
|
||||
@-webkit-keyframes hover {
|
||||
/* and Chrome */
|
||||
0% {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
#last {
|
||||
color: blue;
|
||||
}
|
||||
/* */
|
||||
/* { */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
#div {
|
||||
color: #A33;
|
||||
}
|
||||
/* } */
|
||||
/*by block */
|
||||
#output-block {
|
||||
comment: /* // Not commented out // */;
|
||||
}
|
||||
/*comment on last line*/
|
12
node_modules/less/test/css/comments2.css
generated
vendored
Normal file
12
node_modules/less/test/css/comments2.css
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
@-webkit-keyframes hover {
|
||||
/* Safari and Chrome */
|
||||
}
|
||||
.bg {
|
||||
background-image: linear-gradient(#333 /*{comment}*/, #111);
|
||||
}
|
||||
#planadvisor,
|
||||
.first,
|
||||
.planning {
|
||||
margin: 10px;
|
||||
total-width: (1 * 6em * 12) + (2em * 12);
|
||||
}
|
3
node_modules/less/test/css/compression/compression.css
generated
vendored
Normal file
3
node_modules/less/test/css/compression/compression.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#colours{color1:#fea;color2:#ffeeaa;color3:rgba(255,238,170,0.1);string:"#fea";/*! but not this type
|
||||
Note preserved whitespace
|
||||
*/}dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg;durations-must-have-unit:0s;length-doesnt-have-unit:0;width:auto\9}@page{marks:none;@top-left-corner{vertical-align:top}@top-left{vertical-align:top}}.shadow^.dom,body^^.shadow{display:done}
|
151
node_modules/less/test/css/css-3.css
generated
vendored
Normal file
151
node_modules/less/test/css/css-3.css
generated
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
.comma-delimited {
|
||||
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
|
||||
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset, 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
|
||||
-webkit-transform: rotate(0deg);
|
||||
}
|
||||
@font-face {
|
||||
font-family: Headline;
|
||||
unicode-range: U+??????, U+0???, U+0-7F, U+A5;
|
||||
}
|
||||
.other {
|
||||
-moz-transform: translate(0, 11em) rotate(-90deg);
|
||||
transform: rotateX(45deg);
|
||||
}
|
||||
.item[data-cra_zy-attr1b-ut3=bold] {
|
||||
font-weight: bold;
|
||||
}
|
||||
p:not([class*="lead"]) {
|
||||
color: black;
|
||||
}
|
||||
input[type="text"].class#id[attr=32]:not(1) {
|
||||
color: white;
|
||||
}
|
||||
div#id.class[a=1][b=2].class:not(1) {
|
||||
color: white;
|
||||
}
|
||||
ul.comma > li:not(:only-child)::after {
|
||||
color: white;
|
||||
}
|
||||
ol.comma > li:nth-last-child(2)::after {
|
||||
color: white;
|
||||
}
|
||||
li:nth-child(4n+1),
|
||||
li:nth-child(-5n),
|
||||
li:nth-child(-n+2) {
|
||||
color: white;
|
||||
}
|
||||
a[href^="http://"] {
|
||||
color: black;
|
||||
}
|
||||
a[href$="http://"] {
|
||||
color: black;
|
||||
}
|
||||
form[data-disabled] {
|
||||
color: black;
|
||||
}
|
||||
p::before {
|
||||
color: black;
|
||||
}
|
||||
#issue322 {
|
||||
-webkit-animation: anim2 7s infinite ease-in-out;
|
||||
}
|
||||
@-webkit-keyframes frames {
|
||||
0% {
|
||||
border: 1px;
|
||||
}
|
||||
5.5% {
|
||||
border: 2px;
|
||||
}
|
||||
100% {
|
||||
border: 3px;
|
||||
}
|
||||
}
|
||||
@keyframes fontbulger1 {
|
||||
to {
|
||||
font-size: 15px;
|
||||
}
|
||||
from,
|
||||
to {
|
||||
font-size: 12px;
|
||||
}
|
||||
0%,
|
||||
100% {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
.units {
|
||||
font: 1.2rem/2rem;
|
||||
font: 8vw/9vw;
|
||||
font: 10vh/12vh;
|
||||
font: 12vm/15vm;
|
||||
font: 12vmin/15vmin;
|
||||
font: 1.2ch/1.5ch;
|
||||
}
|
||||
@supports ( box-shadow: 2px 2px 2px black ) or
|
||||
( -moz-box-shadow: 2px 2px 2px black ) {
|
||||
.outline {
|
||||
box-shadow: 2px 2px 2px black;
|
||||
-moz-box-shadow: 2px 2px 2px black;
|
||||
}
|
||||
}
|
||||
@-x-document url-prefix(""github.com"") {
|
||||
h1 {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
@viewport {
|
||||
font-size: 10px;
|
||||
}
|
||||
@namespace foo url(http://www.example.com);
|
||||
foo|h1 {
|
||||
color: blue;
|
||||
}
|
||||
foo|* {
|
||||
color: yellow;
|
||||
}
|
||||
|h1 {
|
||||
color: red;
|
||||
}
|
||||
*|h1 {
|
||||
color: green;
|
||||
}
|
||||
h1 {
|
||||
color: green;
|
||||
}
|
||||
.upper-test {
|
||||
UpperCaseProperties: allowed;
|
||||
}
|
||||
@host {
|
||||
div {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
::distributed(input::placeholder) {
|
||||
color: #b3b3b3;
|
||||
}
|
||||
.shadow ^ .dom,
|
||||
body ^^ .shadow {
|
||||
display: done;
|
||||
}
|
||||
:host(.sel .a),
|
||||
:host-context(.sel .b),
|
||||
.sel /deep/ .b,
|
||||
::content .sel {
|
||||
type: shadow-dom;
|
||||
}
|
||||
/deep/ b {
|
||||
c: 'd';
|
||||
}
|
||||
/deep/ b[e] {
|
||||
f: 'g';
|
||||
}
|
||||
#issue2066 {
|
||||
background: url('/images/icon-team.svg') 0 0 / contain;
|
||||
}
|
||||
@counter-style triangle {
|
||||
system: cyclic;
|
||||
symbols: ‣;
|
||||
suffix: " ";
|
||||
}
|
||||
@-ms-viewport {
|
||||
}
|
24
node_modules/less/test/css/css-escapes.css
generated
vendored
Normal file
24
node_modules/less/test/css/css-escapes.css
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
.escape\|random\|char {
|
||||
color: red;
|
||||
}
|
||||
.mixin\!tUp {
|
||||
font-weight: bold;
|
||||
}
|
||||
.\34 04 {
|
||||
background: red;
|
||||
}
|
||||
.\34 04 strong {
|
||||
color: fuchsia;
|
||||
font-weight: bold;
|
||||
}
|
||||
.trailingTest\+ {
|
||||
color: red;
|
||||
}
|
||||
/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */
|
||||
\62\6c\6f \63 \6B \0071 \000075o\74 e {
|
||||
color: silver;
|
||||
}
|
||||
[ng\:cloak],
|
||||
ng\:form {
|
||||
display: none;
|
||||
}
|
37
node_modules/less/test/css/css-guards.css
generated
vendored
Normal file
37
node_modules/less/test/css/css-guards.css
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
.light {
|
||||
color: green;
|
||||
}
|
||||
.see-the {
|
||||
color: green;
|
||||
}
|
||||
.hide-the {
|
||||
color: green;
|
||||
}
|
||||
.multiple-conditions-1 {
|
||||
color: red;
|
||||
}
|
||||
.inheritance .test {
|
||||
color: black;
|
||||
}
|
||||
.inheritance:hover {
|
||||
color: pink;
|
||||
}
|
||||
.clsWithGuard {
|
||||
dispaly: none;
|
||||
}
|
||||
.dont-split-me-up {
|
||||
width: 1px;
|
||||
color: red;
|
||||
height: 1px;
|
||||
}
|
||||
+ .dont-split-me-up {
|
||||
sibling: true;
|
||||
}
|
||||
.scope-check {
|
||||
sub-prop: 2px;
|
||||
prop: 1px;
|
||||
}
|
||||
.scope-check-2 {
|
||||
sub-prop: 2px;
|
||||
prop: 1px;
|
||||
}
|
95
node_modules/less/test/css/css.css
generated
vendored
Normal file
95
node_modules/less/test/css/css.css
generated
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
@charset "utf-8";
|
||||
div {
|
||||
color: black;
|
||||
}
|
||||
div {
|
||||
width: 99%;
|
||||
}
|
||||
* {
|
||||
min-width: 45em;
|
||||
}
|
||||
h1,
|
||||
h2 > a > p,
|
||||
h3 {
|
||||
color: none;
|
||||
}
|
||||
div.class {
|
||||
color: blue;
|
||||
}
|
||||
div#id {
|
||||
color: green;
|
||||
}
|
||||
.class#id {
|
||||
color: purple;
|
||||
}
|
||||
.one.two.three {
|
||||
color: grey;
|
||||
}
|
||||
@media print {
|
||||
* {
|
||||
font-size: 3em;
|
||||
}
|
||||
}
|
||||
@media screen {
|
||||
* {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Garamond Pro';
|
||||
}
|
||||
a:hover,
|
||||
a:link {
|
||||
color: #999;
|
||||
}
|
||||
p,
|
||||
p:first-child {
|
||||
text-transform: none;
|
||||
}
|
||||
q:lang(no) {
|
||||
quotes: none;
|
||||
}
|
||||
p + h1 {
|
||||
font-size: 2.2em;
|
||||
}
|
||||
#shorthands {
|
||||
border: 1px solid #000;
|
||||
font: 12px/16px Arial;
|
||||
font: 100%/16px Arial;
|
||||
margin: 1px 0;
|
||||
padding: 0 auto;
|
||||
}
|
||||
#more-shorthands {
|
||||
margin: 0;
|
||||
padding: 1px 0 2px 0;
|
||||
font: normal small / 20px 'Trebuchet MS', Verdana, sans-serif;
|
||||
font: 0/0 a;
|
||||
border-radius: 5px / 10px;
|
||||
}
|
||||
.misc {
|
||||
-moz-border-radius: 2px;
|
||||
display: -moz-inline-stack;
|
||||
width: .1em;
|
||||
background-color: #009998;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
|
||||
margin: ;
|
||||
filter: alpha(opacity=100);
|
||||
width: auto\9;
|
||||
}
|
||||
.misc .nested-multiple {
|
||||
multiple-semi-colons: yes;
|
||||
}
|
||||
#important {
|
||||
color: red !important;
|
||||
width: 100%!important;
|
||||
height: 20px ! important;
|
||||
}
|
||||
@font-face {
|
||||
font-family: font-a;
|
||||
}
|
||||
@font-face {
|
||||
font-family: font-b;
|
||||
}
|
||||
.æøå {
|
||||
margin: 0;
|
||||
}
|
50
node_modules/less/test/css/debug/linenumbers-all.css
generated
vendored
Normal file
50
node_modules/less/test/css/debug/linenumbers-all.css
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
@charset "UTF-8";
|
||||
/* line 1, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000031}}
|
||||
/* @charset "ISO-8859-1"; */
|
||||
|
||||
/* line 23, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000323}}
|
||||
.tst3 {
|
||||
color: grey;
|
||||
}
|
||||
/* line 15, {path}linenumbers.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000315}}
|
||||
.test1 {
|
||||
color: black;
|
||||
}
|
||||
/* line 6, {path}linenumbers.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\000036}}
|
||||
.test2 {
|
||||
color: red;
|
||||
}
|
||||
@media all {
|
||||
/* line 5, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000035}}
|
||||
.tst {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
@media all and screen {
|
||||
/* line 7, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000037}}
|
||||
.tst {
|
||||
color: red;
|
||||
}
|
||||
/* line 9, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000039}}
|
||||
.tst .tst3 {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
/* line 18, {pathimport}test.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000318}}
|
||||
.tst2 {
|
||||
color: white;
|
||||
}
|
||||
/* line 27, {path}linenumbers.less */
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}}
|
||||
.test {
|
||||
color: red;
|
||||
width: 2;
|
||||
}
|
41
node_modules/less/test/css/debug/linenumbers-comments.css
generated
vendored
Normal file
41
node_modules/less/test/css/debug/linenumbers-comments.css
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
@charset "UTF-8";
|
||||
/* line 1, {pathimport}test.less */
|
||||
/* @charset "ISO-8859-1"; */
|
||||
|
||||
/* line 23, {pathimport}test.less */
|
||||
.tst3 {
|
||||
color: grey;
|
||||
}
|
||||
/* line 15, {path}linenumbers.less */
|
||||
.test1 {
|
||||
color: black;
|
||||
}
|
||||
/* line 6, {path}linenumbers.less */
|
||||
.test2 {
|
||||
color: red;
|
||||
}
|
||||
@media all {
|
||||
/* line 5, {pathimport}test.less */
|
||||
.tst {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
@media all and screen {
|
||||
/* line 7, {pathimport}test.less */
|
||||
.tst {
|
||||
color: red;
|
||||
}
|
||||
/* line 9, {pathimport}test.less */
|
||||
.tst .tst3 {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
/* line 18, {pathimport}test.less */
|
||||
.tst2 {
|
||||
color: white;
|
||||
}
|
||||
/* line 27, {path}linenumbers.less */
|
||||
.test {
|
||||
color: red;
|
||||
width: 2;
|
||||
}
|
41
node_modules/less/test/css/debug/linenumbers-mediaquery.css
generated
vendored
Normal file
41
node_modules/less/test/css/debug/linenumbers-mediaquery.css
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
@charset "UTF-8";
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000031}}
|
||||
/* @charset "ISO-8859-1"; */
|
||||
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000323}}
|
||||
.tst3 {
|
||||
color: grey;
|
||||
}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000315}}
|
||||
.test1 {
|
||||
color: black;
|
||||
}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\000036}}
|
||||
.test2 {
|
||||
color: red;
|
||||
}
|
||||
@media all {
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000035}}
|
||||
.tst {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
@media all and screen {
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000037}}
|
||||
.tst {
|
||||
color: red;
|
||||
}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\000039}}
|
||||
.tst .tst3 {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathimportesc}test\.less}line{font-family:\0000318}}
|
||||
.tst2 {
|
||||
color: white;
|
||||
}
|
||||
@media -sass-debug-info{filename{font-family:file\:\/\/{pathesc}linenumbers\.less}line{font-family:\0000327}}
|
||||
.test {
|
||||
color: red;
|
||||
width: 2;
|
||||
}
|
76
node_modules/less/test/css/detached-rulesets.css
generated
vendored
Normal file
76
node_modules/less/test/css/detached-rulesets.css
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
.wrap-selector {
|
||||
color: black;
|
||||
one: 1px;
|
||||
four: magic-frame;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
.wrap-selector {
|
||||
color: red;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
.wrap-selector {
|
||||
color: black;
|
||||
background: white;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
header {
|
||||
background: blue;
|
||||
}
|
||||
@media screen and (min-width: 1200) {
|
||||
header {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
html.lt-ie9 header {
|
||||
background: red;
|
||||
}
|
||||
.wrap-selector {
|
||||
test: extra-wrap;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
.wrap-selector .wrap-selector {
|
||||
test: wrapped-twice;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
.wrap-selector {
|
||||
test-func: 90;
|
||||
test-arithmetic: 18px;
|
||||
visible-one: visible;
|
||||
visible-two: visible;
|
||||
}
|
||||
.without-mixins {
|
||||
b: 1;
|
||||
}
|
||||
@media (orientation: portrait) and tv {
|
||||
.my-selector {
|
||||
background-color: black;
|
||||
}
|
||||
}
|
||||
@media (orientation: portrait) and widescreen and print and tv {
|
||||
.triple-wrapped-mq {
|
||||
triple: true;
|
||||
}
|
||||
}
|
||||
@media (orientation: portrait) and widescreen and tv {
|
||||
.triple-wrapped-mq {
|
||||
triple: true;
|
||||
}
|
||||
}
|
||||
@media (orientation: portrait) and tv {
|
||||
.triple-wrapped-mq {
|
||||
triple: true;
|
||||
}
|
||||
}
|
||||
.a {
|
||||
test: test;
|
||||
}
|
||||
.argument-default {
|
||||
default: works;
|
||||
direct: works;
|
||||
named: works;
|
||||
}
|
119
node_modules/less/test/css/directives-bubling.css
generated
vendored
Normal file
119
node_modules/less/test/css/directives-bubling.css
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
.parent {
|
||||
color: green;
|
||||
}
|
||||
@document url-prefix() {
|
||||
.parent .child {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
@supports (sandwitch: butter) {
|
||||
.inside .top {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
@supports (sandwitch: bread) {
|
||||
.in1 .in2 {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
@supports (sandwitch: ham) {
|
||||
.inside .top {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
@supports (font-family: weirdFont) {
|
||||
@font-face {
|
||||
font-family: something;
|
||||
src: made-up-url;
|
||||
}
|
||||
}
|
||||
@font-face {
|
||||
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
|
||||
font-family: something;
|
||||
src: made-up-url;
|
||||
}
|
||||
}
|
||||
@supports (property: value) {
|
||||
@media (max-size: 2px) {
|
||||
@supports (whatever: something) {
|
||||
.outOfMedia {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@supports (property: value) {
|
||||
@media (max-size: 2px) {
|
||||
@supports (whatever: something) {
|
||||
.onTop {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
html {
|
||||
in-html: visible;
|
||||
}
|
||||
@supports (upper: test) {
|
||||
html {
|
||||
in-supports: first;
|
||||
}
|
||||
html div {
|
||||
in-div: visible;
|
||||
}
|
||||
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
|
||||
html div {
|
||||
in-supports: second;
|
||||
}
|
||||
@media screen {
|
||||
html div {
|
||||
font-weight: 400;
|
||||
}
|
||||
html div nested {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@media print and (max-size: 2px) {
|
||||
.in1 {
|
||||
stay: here;
|
||||
}
|
||||
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
|
||||
@supports (whatever: something) {
|
||||
.in2 .in1 {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
html {
|
||||
font-weight: 300;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
}
|
||||
@supports not (-webkit-font-smoothing: subpixel-antialiased) {
|
||||
html {
|
||||
font-weight: 400;
|
||||
}
|
||||
html nested {
|
||||
property: value;
|
||||
}
|
||||
}
|
||||
.onTop {
|
||||
animation: "textscale";
|
||||
font-family: something;
|
||||
}
|
||||
@font-face {
|
||||
font-family: something;
|
||||
src: made-up-url;
|
||||
}
|
||||
@keyframes "textscale" {
|
||||
0% {
|
||||
font-size: 1em;
|
||||
}
|
||||
100% {
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
0
node_modules/less/test/css/empty.css
generated
vendored
Normal file
0
node_modules/less/test/css/empty.css
generated
vendored
Normal file
81
node_modules/less/test/css/extend-chaining.css
generated
vendored
Normal file
81
node_modules/less/test/css/extend-chaining.css
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
.a,
|
||||
.b,
|
||||
.c {
|
||||
color: black;
|
||||
}
|
||||
.f,
|
||||
.e,
|
||||
.d {
|
||||
color: black;
|
||||
}
|
||||
.g.h,
|
||||
.i.j.h,
|
||||
.k.j.h {
|
||||
color: black;
|
||||
}
|
||||
.i.j,
|
||||
.k.j {
|
||||
color: white;
|
||||
}
|
||||
.l,
|
||||
.m,
|
||||
.n,
|
||||
.o,
|
||||
.p,
|
||||
.q,
|
||||
.r,
|
||||
.s,
|
||||
.t {
|
||||
color: black;
|
||||
}
|
||||
.u,
|
||||
.v.u.v {
|
||||
color: black;
|
||||
}
|
||||
.w,
|
||||
.v.w.v {
|
||||
color: black;
|
||||
}
|
||||
.x,
|
||||
.y,
|
||||
.z {
|
||||
color: x;
|
||||
}
|
||||
.y,
|
||||
.z,
|
||||
.x {
|
||||
color: y;
|
||||
}
|
||||
.z,
|
||||
.x,
|
||||
.y {
|
||||
color: z;
|
||||
}
|
||||
.va,
|
||||
.vb,
|
||||
.vc {
|
||||
color: black;
|
||||
}
|
||||
.vb,
|
||||
.vc {
|
||||
color: white;
|
||||
}
|
||||
@media tv {
|
||||
.ma,
|
||||
.mb,
|
||||
.mc {
|
||||
color: black;
|
||||
}
|
||||
.md,
|
||||
.ma,
|
||||
.mb,
|
||||
.mc {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
@media tv and plasma {
|
||||
.me,
|
||||
.mf {
|
||||
background: red;
|
||||
}
|
||||
}
|
19
node_modules/less/test/css/extend-clearfix.css
generated
vendored
Normal file
19
node_modules/less/test/css/extend-clearfix.css
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
.clearfix,
|
||||
.foo,
|
||||
.bar {
|
||||
*zoom: 1;
|
||||
}
|
||||
.clearfix:after,
|
||||
.foo:after,
|
||||
.bar:after {
|
||||
content: '';
|
||||
display: block;
|
||||
clear: both;
|
||||
height: 0;
|
||||
}
|
||||
.foo {
|
||||
color: red;
|
||||
}
|
||||
.bar {
|
||||
color: blue;
|
||||
}
|
37
node_modules/less/test/css/extend-exact.css
generated
vendored
Normal file
37
node_modules/less/test/css/extend-exact.css
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
.replace.replace .replace,
|
||||
.c.replace + .replace .replace,
|
||||
.replace.replace .c,
|
||||
.c.replace + .replace .c,
|
||||
.rep_ace {
|
||||
prop: copy-paste-replace;
|
||||
}
|
||||
.a .b .c {
|
||||
prop: not_effected;
|
||||
}
|
||||
.a,
|
||||
.effected {
|
||||
prop: is_effected;
|
||||
}
|
||||
.a .b {
|
||||
prop: not_effected;
|
||||
}
|
||||
.a .b.c {
|
||||
prop: not_effected;
|
||||
}
|
||||
.c .b .a,
|
||||
.a .b .a,
|
||||
.c .a .a,
|
||||
.a .a .a,
|
||||
.c .b .c,
|
||||
.a .b .c,
|
||||
.c .a .c,
|
||||
.a .a .c {
|
||||
prop: not_effected;
|
||||
}
|
||||
.e.e,
|
||||
.dbl {
|
||||
prop: extend-double;
|
||||
}
|
||||
.e.e:hover {
|
||||
hover: not-extended;
|
||||
}
|
24
node_modules/less/test/css/extend-media.css
generated
vendored
Normal file
24
node_modules/less/test/css/extend-media.css
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
.ext1 .ext2,
|
||||
.all .ext2 {
|
||||
background: black;
|
||||
}
|
||||
@media tv {
|
||||
.ext1 .ext3,
|
||||
.tv-lowres .ext3,
|
||||
.all .ext3 {
|
||||
color: white;
|
||||
}
|
||||
.tv-lowres {
|
||||
background: blue;
|
||||
}
|
||||
}
|
||||
@media tv and hires {
|
||||
.ext1 .ext4,
|
||||
.tv-hires .ext4,
|
||||
.all .ext4 {
|
||||
color: green;
|
||||
}
|
||||
.tv-hires {
|
||||
background: red;
|
||||
}
|
||||
}
|
57
node_modules/less/test/css/extend-nest.css
generated
vendored
Normal file
57
node_modules/less/test/css/extend-nest.css
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
.sidebar,
|
||||
.sidebar2,
|
||||
.type1 .sidebar3,
|
||||
.type2.sidebar4 {
|
||||
width: 300px;
|
||||
background: red;
|
||||
}
|
||||
.sidebar .box,
|
||||
.sidebar2 .box,
|
||||
.type1 .sidebar3 .box,
|
||||
.type2.sidebar4 .box {
|
||||
background: #FFF;
|
||||
border: 1px solid #000;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.sidebar2 {
|
||||
background: blue;
|
||||
}
|
||||
.type1 .sidebar3 {
|
||||
background: green;
|
||||
}
|
||||
.type2.sidebar4 {
|
||||
background: red;
|
||||
}
|
||||
.button,
|
||||
.submit {
|
||||
color: black;
|
||||
}
|
||||
.button:hover,
|
||||
.submit:hover {
|
||||
color: white;
|
||||
}
|
||||
.button2 :hover {
|
||||
nested: white;
|
||||
}
|
||||
.button2 :hover {
|
||||
notnested: black;
|
||||
}
|
||||
.amp-test-h,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-a.amp-test-d.amp-test-b.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-a.amp-test-e.amp-test-g,
|
||||
.amp-test-f.amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e + .amp-test-c .amp-test-b.amp-test-d.amp-test-b.amp-test-e.amp-test-g {
|
||||
test: extended by masses of selectors;
|
||||
}
|
80
node_modules/less/test/css/extend-selector.css
generated
vendored
Normal file
80
node_modules/less/test/css/extend-selector.css
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
.error,
|
||||
.badError {
|
||||
border: 1px #f00;
|
||||
background: #fdd;
|
||||
}
|
||||
.error.intrusion,
|
||||
.badError.intrusion {
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.intrusion .error,
|
||||
.intrusion .badError {
|
||||
display: none;
|
||||
}
|
||||
.badError {
|
||||
border-width: 3px;
|
||||
}
|
||||
.foo .bar,
|
||||
.foo .baz,
|
||||
.ext1 .ext2 .bar,
|
||||
.ext1 .ext2 .baz,
|
||||
.ext3 .bar,
|
||||
.ext3 .baz,
|
||||
.ext4 .bar,
|
||||
.ext4 .baz {
|
||||
display: none;
|
||||
}
|
||||
div.ext5,
|
||||
.ext6 > .ext5,
|
||||
div.ext7,
|
||||
.ext6 > .ext7 {
|
||||
width: 100px;
|
||||
}
|
||||
.ext,
|
||||
.a .c,
|
||||
.b .c {
|
||||
test: 1;
|
||||
}
|
||||
.a,
|
||||
.b {
|
||||
test: 2;
|
||||
}
|
||||
.a .c,
|
||||
.b .c {
|
||||
test: 3;
|
||||
}
|
||||
.a .c .d,
|
||||
.b .c .d {
|
||||
test: 4;
|
||||
}
|
||||
.replace.replace .replace,
|
||||
.c.replace + .replace .replace,
|
||||
.replace.replace .c,
|
||||
.c.replace + .replace .c,
|
||||
.rep_ace.rep_ace .rep_ace,
|
||||
.c.rep_ace + .rep_ace .rep_ace,
|
||||
.rep_ace.rep_ace .c,
|
||||
.c.rep_ace + .rep_ace .c {
|
||||
prop: copy-paste-replace;
|
||||
}
|
||||
.attributes [data="test"],
|
||||
.attributes .attributes .attribute-test {
|
||||
extend: attributes;
|
||||
}
|
||||
.attributes [data],
|
||||
.attributes .attributes .attribute-test2 {
|
||||
extend: attributes2;
|
||||
}
|
||||
.attributes [data="test3"],
|
||||
.attributes .attributes .attribute-test {
|
||||
extend: attributes2;
|
||||
}
|
||||
.header .header-nav,
|
||||
.footer .footer-nav {
|
||||
background: red;
|
||||
}
|
||||
.header .header-nav:before,
|
||||
.footer .footer-nav:before {
|
||||
background: blue;
|
||||
}
|
76
node_modules/less/test/css/extend.css
generated
vendored
Normal file
76
node_modules/less/test/css/extend.css
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
.error,
|
||||
.badError {
|
||||
border: 1px #f00;
|
||||
background: #fdd;
|
||||
}
|
||||
.error.intrusion,
|
||||
.badError.intrusion {
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
}
|
||||
.intrusion .error,
|
||||
.intrusion .badError {
|
||||
display: none;
|
||||
}
|
||||
.badError {
|
||||
border-width: 3px;
|
||||
}
|
||||
.foo .bar,
|
||||
.foo .baz,
|
||||
.ext1 .ext2 .bar,
|
||||
.ext1 .ext2 .baz,
|
||||
.ext3 .bar,
|
||||
.ext3 .baz,
|
||||
.foo .ext3,
|
||||
.ext4 .bar,
|
||||
.ext4 .baz,
|
||||
.foo .ext4 {
|
||||
display: none;
|
||||
}
|
||||
div.ext5,
|
||||
.ext6 > .ext5,
|
||||
div.ext7,
|
||||
.ext6 > .ext7 {
|
||||
width: 100px;
|
||||
}
|
||||
.ext8.ext9,
|
||||
.fuu {
|
||||
result: add-foo;
|
||||
}
|
||||
.ext8 .ext9,
|
||||
.ext8 + .ext9,
|
||||
.ext8 > .ext9,
|
||||
.buu,
|
||||
.zap,
|
||||
.zoo {
|
||||
result: bar-matched;
|
||||
}
|
||||
.ext8.nomatch {
|
||||
result: none;
|
||||
}
|
||||
.ext8 .ext9,
|
||||
.buu {
|
||||
result: match-nested-bar;
|
||||
}
|
||||
.ext8.ext9,
|
||||
.fuu {
|
||||
result: match-nested-foo;
|
||||
}
|
||||
.aa,
|
||||
.cc {
|
||||
color: black;
|
||||
}
|
||||
.aa .dd,
|
||||
.aa .ee {
|
||||
background: red;
|
||||
}
|
||||
.bb,
|
||||
.cc,
|
||||
.ee,
|
||||
.ff {
|
||||
background: red;
|
||||
}
|
||||
.bb .bb,
|
||||
.ff .ff {
|
||||
color: black;
|
||||
}
|
133
node_modules/less/test/css/extract-and-length.css
generated
vendored
Normal file
133
node_modules/less/test/css/extract-and-length.css
generated
vendored
Normal file
@@ -0,0 +1,133 @@
|
||||
.multiunit {
|
||||
length: 6;
|
||||
extract: abc "abc" 1 1px 1% #123;
|
||||
}
|
||||
.incorrect-index {
|
||||
v1: extract(a b c, 5);
|
||||
v2: extract(a, b, c, -2);
|
||||
}
|
||||
.scalar {
|
||||
var-value: variable;
|
||||
var-length: 1;
|
||||
ill-index: extract(variable, 2);
|
||||
name-value: name;
|
||||
string-value: "string";
|
||||
number-value: 12345678;
|
||||
color-value: blue;
|
||||
rgba-value: rgba(80, 160, 240, 0.67);
|
||||
empty-value: ;
|
||||
name-length: 1;
|
||||
string-length: 1;
|
||||
number-length: 1;
|
||||
color-length: 1;
|
||||
rgba-length: 1;
|
||||
empty-length: 1;
|
||||
}
|
||||
.mixin-arguments-1 {
|
||||
length: 4;
|
||||
extract: c | b | a;
|
||||
}
|
||||
.mixin-arguments-2 {
|
||||
length: 4;
|
||||
extract: c | b | a;
|
||||
}
|
||||
.mixin-arguments-3 {
|
||||
length: 4;
|
||||
extract: c | b | a;
|
||||
}
|
||||
.mixin-arguments-4 {
|
||||
length: 0;
|
||||
extract: extract(, 2) | extract(, 1);
|
||||
}
|
||||
.mixin-arguments-2 {
|
||||
length: 4;
|
||||
extract: c | b | a;
|
||||
}
|
||||
.mixin-arguments-3 {
|
||||
length: 4;
|
||||
extract: c | b | a;
|
||||
}
|
||||
.mixin-arguments-4 {
|
||||
length: 3;
|
||||
extract: c | b;
|
||||
}
|
||||
.mixin-arguments-2 {
|
||||
length: 4;
|
||||
extract: 3 | 2 | 1;
|
||||
}
|
||||
.mixin-arguments-3 {
|
||||
length: 4;
|
||||
extract: 3 | 2 | 1;
|
||||
}
|
||||
.mixin-arguments-4 {
|
||||
length: 3;
|
||||
extract: 3 | 2;
|
||||
}
|
||||
.md-space-comma {
|
||||
length-1: 3;
|
||||
extract-1: 1 2 3;
|
||||
length-2: 3;
|
||||
extract-2: 2;
|
||||
}
|
||||
.md-space-comma-as-args-2 {
|
||||
length: 3;
|
||||
extract: "x" "y" "z" | 1 2 3 | a b c;
|
||||
}
|
||||
.md-space-comma-as-args-3 {
|
||||
length: 3;
|
||||
extract: "x" "y" "z" | 1 2 3 | a b c;
|
||||
}
|
||||
.md-space-comma-as-args-4 {
|
||||
length: 2;
|
||||
extract: "x" "y" "z" | 1 2 3;
|
||||
}
|
||||
.md-cat-space-comma {
|
||||
length-1: 3;
|
||||
extract-1: 1 2 3;
|
||||
length-2: 3;
|
||||
extract-2: 2;
|
||||
}
|
||||
.md-cat-space-comma-as-args-2 {
|
||||
length: 3;
|
||||
extract: "x" "y" "z" | 1 2 3 | a b c;
|
||||
}
|
||||
.md-cat-space-comma-as-args-3 {
|
||||
length: 3;
|
||||
extract: "x" "y" "z" | 1 2 3 | a b c;
|
||||
}
|
||||
.md-cat-space-comma-as-args-4 {
|
||||
length: 2;
|
||||
extract: "x" "y" "z" | 1 2 3;
|
||||
}
|
||||
.md-cat-comma-space {
|
||||
length-1: 3;
|
||||
extract-1: 1, 2, 3;
|
||||
length-2: 3;
|
||||
extract-2: 2;
|
||||
}
|
||||
.md-cat-comma-space-as-args-1 {
|
||||
length: 3;
|
||||
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
||||
}
|
||||
.md-cat-comma-space-as-args-2 {
|
||||
length: 3;
|
||||
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
||||
}
|
||||
.md-cat-comma-space-as-args-3 {
|
||||
length: 3;
|
||||
extract: "x", "y", "z" | 1, 2, 3 | a, b, c;
|
||||
}
|
||||
.md-cat-comma-space-as-args-4 {
|
||||
length: 0;
|
||||
extract: extract(, 2) | extract(, 1);
|
||||
}
|
||||
.md-3D {
|
||||
length-1: 2;
|
||||
extract-1: a b c d, 1 2 3 4;
|
||||
length-2: 2;
|
||||
extract-2: 5 6 7 8;
|
||||
length-3: 4;
|
||||
extract-3: 7;
|
||||
length-4: 1;
|
||||
extract-4: 8;
|
||||
}
|
3
node_modules/less/test/css/filemanagerPlugin/filemanager.css
generated
vendored
Normal file
3
node_modules/less/test/css/filemanagerPlugin/filemanager.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.test {
|
||||
color: red;
|
||||
}
|
201
node_modules/less/test/css/functions.css
generated
vendored
Normal file
201
node_modules/less/test/css/functions.css
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
#functions {
|
||||
color: #660000;
|
||||
width: 16;
|
||||
height: undefined("self");
|
||||
border-width: 5;
|
||||
variable: 11;
|
||||
background: linear-gradient(#000, #fff);
|
||||
}
|
||||
#built-in {
|
||||
escaped: -Some::weird(#thing, y);
|
||||
lighten: #ffcccc;
|
||||
lighten-relative: #ff6666;
|
||||
darken: #330000;
|
||||
darken-relative: #990000;
|
||||
saturate: #203c31;
|
||||
saturate-relative: #28342f;
|
||||
desaturate: #29332f;
|
||||
desaturate-relative: #233930;
|
||||
greyscale: #2e2e2e;
|
||||
hsl-clamp: #ffffff;
|
||||
spin-p: #bf6a40;
|
||||
spin-n: #bf4055;
|
||||
luma-white: 100%;
|
||||
luma-black: 0%;
|
||||
luma-black-alpha: 0%;
|
||||
luma-red: 21.26%;
|
||||
luma-green: 71.52%;
|
||||
luma-blue: 7.22%;
|
||||
luma-yellow: 92.78%;
|
||||
luma-cyan: 78.74%;
|
||||
luma-differs-from-luminance: 23.89833349%;
|
||||
luminance-white: 100%;
|
||||
luminance-black: 0%;
|
||||
luminance-black-alpha: 0%;
|
||||
luminance-red: 21.26%;
|
||||
luminance-differs-from-luma: 36.40541176%;
|
||||
contrast-filter: contrast(30%);
|
||||
saturate-filter: saturate(5%);
|
||||
contrast-white: #000000;
|
||||
contrast-black: #ffffff;
|
||||
contrast-red: #ffffff;
|
||||
contrast-green: #000000;
|
||||
contrast-blue: #ffffff;
|
||||
contrast-yellow: #000000;
|
||||
contrast-cyan: #000000;
|
||||
contrast-light: #111111;
|
||||
contrast-dark: #eeeeee;
|
||||
contrast-wrongorder: #111111;
|
||||
contrast-light-thresh: #111111;
|
||||
contrast-dark-thresh: #eeeeee;
|
||||
contrast-high-thresh: #eeeeee;
|
||||
contrast-low-thresh: #111111;
|
||||
contrast-light-thresh-per: #111111;
|
||||
contrast-dark-thresh-per: #eeeeee;
|
||||
contrast-high-thresh-per: #eeeeee;
|
||||
contrast-low-thresh-per: #111111;
|
||||
replace: "Hello, World!";
|
||||
replace-captured: "This is a new string.";
|
||||
replace-with-flags: "2 + 2 = 4";
|
||||
replace-single-quoted: 'foo-2';
|
||||
replace-escaped-string: bar-2;
|
||||
replace-keyword: baz-2;
|
||||
replace-with-color: "#135#1357";
|
||||
replace-with-number: "2em07";
|
||||
format: "rgb(32, 128, 64)";
|
||||
format-string: "hello world";
|
||||
format-multiple: "hello earth 2";
|
||||
format-url-encode: "red is %23ff0000";
|
||||
format-single-quoted: 'hello single world';
|
||||
format-escaped-string: hello escaped world;
|
||||
format-color-as-string: "#123";
|
||||
format-number-as-string: "4px";
|
||||
eformat: rgb(32, 128, 64);
|
||||
unitless: 12;
|
||||
unit: 14em;
|
||||
unitpercentage: 100%;
|
||||
get-unit: px;
|
||||
get-unit-empty: ;
|
||||
hue: 98;
|
||||
saturation: 12%;
|
||||
lightness: 95%;
|
||||
hsvhue: 98;
|
||||
hsvsaturation: 12%;
|
||||
hsvvalue: 95%;
|
||||
red: 255;
|
||||
green: 255;
|
||||
blue: 255;
|
||||
rounded: 11;
|
||||
rounded-two: 10.67;
|
||||
roundedpx: 3px;
|
||||
roundedpx-three: 3.333px;
|
||||
rounded-percentage: 10%;
|
||||
ceil: 11px;
|
||||
floor: 12px;
|
||||
sqrt: 5px;
|
||||
pi: 3.14159265;
|
||||
mod: 2m;
|
||||
abs: 4%;
|
||||
tan: 0.90040404;
|
||||
sin: 0.17364818;
|
||||
cos: 0.84385396;
|
||||
atan: 0.1rad;
|
||||
atan: 34deg;
|
||||
atan: 45deg;
|
||||
pow: 64px;
|
||||
pow: 64;
|
||||
pow: 27;
|
||||
min: 0;
|
||||
min: 5;
|
||||
min: 1pt;
|
||||
min: 3mm;
|
||||
max: 3;
|
||||
max: 5em;
|
||||
percentage: 20%;
|
||||
color-quoted-digit: #dda0dd;
|
||||
color-quoted-keyword: #dda0dd;
|
||||
color-color: #dda0dd;
|
||||
color-keyword: #dda0dd;
|
||||
tint: #898989;
|
||||
tint-full: #ffffff;
|
||||
tint-percent: #898989;
|
||||
tint-negative: #656565;
|
||||
shade: #686868;
|
||||
shade-full: #000000;
|
||||
shade-percent: #686868;
|
||||
shade-negative: #868686;
|
||||
fade-out: rgba(255, 0, 0, 0.95);
|
||||
fade-in: rgba(255, 0, 0, 0.95);
|
||||
fade-out-relative: rgba(255, 0, 0, 0.95);
|
||||
fade-in-relative: rgba(255, 0, 0, 0.945);
|
||||
fade-out2: rgba(255, 0, 0, 0);
|
||||
fade-out2-relative: rgba(255, 0, 0, 0.25);
|
||||
hsv: #4d2926;
|
||||
hsva: rgba(77, 40, 38, 0.2);
|
||||
mix: #ff3300;
|
||||
mix-0: #ffff00;
|
||||
mix-100: #ff0000;
|
||||
mix-weightless: #ff8000;
|
||||
mixt: rgba(255, 0, 0, 0.5);
|
||||
}
|
||||
#built-in .is-a {
|
||||
ruleset: true;
|
||||
color: true;
|
||||
color1: true;
|
||||
color2: true;
|
||||
color3: true;
|
||||
keyword: true;
|
||||
number: true;
|
||||
string: true;
|
||||
pixel: true;
|
||||
percent: true;
|
||||
em: true;
|
||||
cat: true;
|
||||
no-unit-is-empty: true;
|
||||
case-insensitive-1: true;
|
||||
case-insensitive-2: true;
|
||||
}
|
||||
#alpha {
|
||||
alpha: rgba(153, 94, 51, 0.6);
|
||||
alpha2: 0.5;
|
||||
alpha3: 0;
|
||||
}
|
||||
#blendmodes {
|
||||
multiply: #ed0000;
|
||||
screen: #f600f6;
|
||||
overlay: #ed0000;
|
||||
softlight: #fa0000;
|
||||
hardlight: #0000ed;
|
||||
difference: #f600f6;
|
||||
exclusion: #f600f6;
|
||||
average: #7b007b;
|
||||
negation: #d73131;
|
||||
}
|
||||
#extract-and-length {
|
||||
extract: 3 2 1 C B A;
|
||||
length: 6;
|
||||
}
|
||||
#quoted-functions-in-mixin {
|
||||
replace-double-quoted: 'foo-2';
|
||||
replace-single-quoted: 'foo-4';
|
||||
replace-escaped-string: bar-2;
|
||||
replace-keyword: baz-2;
|
||||
replace-anonymous: qux-2;
|
||||
format-double-quoted: "hello world";
|
||||
format-single-quoted: 'hello single world';
|
||||
format-escaped-string: hello escaped world;
|
||||
format-keyword: hello;
|
||||
format-anonymous: hello anonymous world;
|
||||
}
|
||||
#list-details {
|
||||
length: 2;
|
||||
one: a 1;
|
||||
two: b 2;
|
||||
two-length: 2;
|
||||
two-one: b;
|
||||
two-two: 2;
|
||||
}
|
||||
/* comment1 */
|
||||
html {
|
||||
color: #8080ff;
|
||||
}
|
12
node_modules/less/test/css/globalVars/extended.css
generated
vendored
Normal file
12
node_modules/less/test/css/globalVars/extended.css
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Test
|
||||
*/
|
||||
#header {
|
||||
color: #333333;
|
||||
border-left: 1px;
|
||||
border-right: 2px;
|
||||
}
|
||||
#footer {
|
||||
color: #114411;
|
||||
border-color: #f20d0d;
|
||||
}
|
6
node_modules/less/test/css/globalVars/simple.css
generated
vendored
Normal file
6
node_modules/less/test/css/globalVars/simple.css
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Test
|
||||
*/
|
||||
.class {
|
||||
color: red;
|
||||
}
|
9
node_modules/less/test/css/ie-filters.css
generated
vendored
Normal file
9
node_modules/less/test/css/ie-filters.css
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
.nav {
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=20);
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr="#000000", GradientType=0);
|
||||
}
|
||||
.evalTest1 {
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30);
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=5);
|
||||
}
|
8
node_modules/less/test/css/import-inline.css
generated
vendored
Normal file
8
node_modules/less/test/css/import-inline.css
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
#import {
|
||||
color: red;
|
||||
}
|
||||
@media (min-width: 600px) {
|
||||
#css { color: yellow; }
|
||||
|
||||
}
|
||||
this isn't very valid CSS.
|
13
node_modules/less/test/css/import-interpolation.css
generated
vendored
Normal file
13
node_modules/less/test/css/import-interpolation.css
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
#logo {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: url('../assets/logo.png');
|
||||
background: url("#inline-svg");
|
||||
}
|
||||
|
||||
.a {
|
||||
var: test;
|
||||
}
|
15
node_modules/less/test/css/import-once.css
generated
vendored
Normal file
15
node_modules/less/test/css/import-once.css
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
#import {
|
||||
color: red;
|
||||
}
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
.test-f {
|
||||
height: 10px;
|
||||
}
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
.test-f {
|
||||
height: 10px;
|
||||
}
|
97
node_modules/less/test/css/import-reference.css
generated
vendored
Normal file
97
node_modules/less/test/css/import-reference.css
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
input[type="text"].class#id[attr=32]:not(1) {
|
||||
color: white;
|
||||
}
|
||||
div#id.class[a=1][b=2].class:not(1) {
|
||||
color: white;
|
||||
}
|
||||
@media print {
|
||||
.class {
|
||||
color: blue;
|
||||
}
|
||||
.class .sub {
|
||||
width: 42;
|
||||
}
|
||||
}
|
||||
.visible {
|
||||
color: red;
|
||||
}
|
||||
.visible .c {
|
||||
color: green;
|
||||
}
|
||||
.visible {
|
||||
color: green;
|
||||
}
|
||||
.visible:hover {
|
||||
color: green;
|
||||
}
|
||||
.only-with-visible + .visible,
|
||||
.visible + .only-with-visible,
|
||||
.visible + .visible {
|
||||
color: green;
|
||||
}
|
||||
.only-with-visible + .visible .sub,
|
||||
.visible + .only-with-visible .sub,
|
||||
.visible + .visible .sub {
|
||||
color: green;
|
||||
}
|
||||
@supports (something: else) {
|
||||
.class {
|
||||
something: else;
|
||||
}
|
||||
.nestedToo .class {
|
||||
something: else;
|
||||
}
|
||||
}
|
||||
.b {
|
||||
color: red;
|
||||
color: green;
|
||||
}
|
||||
.b .c {
|
||||
color: green;
|
||||
}
|
||||
.b:hover {
|
||||
color: green;
|
||||
}
|
||||
.b + .b {
|
||||
color: green;
|
||||
}
|
||||
.b + .b .sub {
|
||||
color: green;
|
||||
}
|
||||
.y {
|
||||
pulled-in: yes /* inline comment survives */;
|
||||
}
|
||||
/* comment pulled in */
|
||||
.visible {
|
||||
extend: test;
|
||||
}
|
||||
.test-mediaq-import {
|
||||
color: green;
|
||||
test: 340px;
|
||||
}
|
||||
@media (max-size: 450px) {
|
||||
.test-mediaq-import {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
.test {
|
||||
color: red;
|
||||
}
|
||||
.test:first-child {
|
||||
color: blue;
|
||||
}
|
||||
@keyframes some-name {
|
||||
property: value;
|
||||
}
|
||||
@supports (animation-name: test) {
|
||||
@keyframes some-name {
|
||||
property: value;
|
||||
}
|
||||
.selector {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
div {
|
||||
this isn't very valid CSS.
|
||||
}
|
||||
this isn't very valid CSS.
|
49
node_modules/less/test/css/import.css
generated
vendored
Normal file
49
node_modules/less/test/css/import.css
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
@charset "UTF-8";
|
||||
/** comment at the top**/
|
||||
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
|
||||
@import url(/absolute/something.css) screen and (color) and (max-width: 600px);
|
||||
@import url("//ha.com/file.css") (min-width: 100px);
|
||||
#import-test {
|
||||
height: 10px;
|
||||
color: red;
|
||||
width: 10px;
|
||||
height: 30%;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
#import {
|
||||
color: red;
|
||||
}
|
||||
.mixin {
|
||||
height: 10px;
|
||||
color: red;
|
||||
}
|
||||
.test-f {
|
||||
height: 10px;
|
||||
}
|
||||
.deep-import-url {
|
||||
color: red;
|
||||
}
|
||||
@media screen and (max-width: 601px) {
|
||||
#css {
|
||||
color: yellow;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 602px) {
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 603px) {
|
||||
#css {
|
||||
color: yellow;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
3
node_modules/less/test/css/include-path-string/include-path-string.css
generated
vendored
Normal file
3
node_modules/less/test/css/include-path-string/include-path-string.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
data-uri {
|
||||
property: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");
|
||||
}
|
9
node_modules/less/test/css/include-path/include-path.css
generated
vendored
Normal file
9
node_modules/less/test/css/include-path/include-path.css
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
data-uri {
|
||||
property: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%0A%3Csvg%20height%3D%22100%22%20width%3D%22100%22%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20stroke%3D%22black%22%20stroke-width%3D%221%22%20fill%3D%22blue%22%20%2F%3E%0A%3C%2Fsvg%3E%0A");
|
||||
}
|
||||
image-size {
|
||||
property: 100px 100px;
|
||||
}
|
28
node_modules/less/test/css/javascript.css
generated
vendored
Normal file
28
node_modules/less/test/css/javascript.css
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
.eval {
|
||||
js: 42;
|
||||
js: 2;
|
||||
js: "hello world";
|
||||
js: 1, 2, 3;
|
||||
title: "string";
|
||||
ternary: true;
|
||||
multiline: 2;
|
||||
}
|
||||
.scope {
|
||||
var: 42;
|
||||
escaped: 7px;
|
||||
}
|
||||
.vars {
|
||||
width: 8;
|
||||
}
|
||||
.escape-interpol {
|
||||
width: hello world;
|
||||
}
|
||||
.arrays {
|
||||
ary: "1, 2, 3";
|
||||
ary1: "1, 2, 3";
|
||||
}
|
||||
.test-tran {
|
||||
1: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;
|
||||
2: [opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear];
|
||||
3: opacity 0.3s ease-in 0.3s, max-height 0.6s linear, margin-bottom 0.4s linear;
|
||||
}
|
3
node_modules/less/test/css/lazy-eval.css
generated
vendored
Normal file
3
node_modules/less/test/css/lazy-eval.css
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.lazy-eval {
|
||||
width: 100%;
|
||||
}
|
21
node_modules/less/test/css/legacy/legacy.css
generated
vendored
Normal file
21
node_modules/less/test/css/legacy/legacy.css
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
@media (-o-min-device-pixel-ratio: 2/1) {
|
||||
.test-math-and-units {
|
||||
font: ignores 0/0 rules;
|
||||
test-division: 7em;
|
||||
simple: 2px;
|
||||
}
|
||||
}
|
||||
#units {
|
||||
t1: 22em;
|
||||
t2: 22em;
|
||||
t3: 2em;
|
||||
t4: 22em;
|
||||
t5: 22em;
|
||||
t6: 2em;
|
||||
t7: 22em;
|
||||
t8: 22em;
|
||||
t9: 2em;
|
||||
t10: 22em;
|
||||
t11: 22em;
|
||||
t12: 2em;
|
||||
}
|
218
node_modules/less/test/css/media.css
generated
vendored
Normal file
218
node_modules/less/test/css/media.css
generated
vendored
Normal file
@@ -0,0 +1,218 @@
|
||||
@media print {
|
||||
.class {
|
||||
color: blue;
|
||||
}
|
||||
.class .sub {
|
||||
width: 42;
|
||||
}
|
||||
.top,
|
||||
header > h1 {
|
||||
color: #444444;
|
||||
}
|
||||
}
|
||||
@media screen {
|
||||
body {
|
||||
max-width: 480;
|
||||
}
|
||||
}
|
||||
@media all and (device-aspect-ratio: 16 / 9) {
|
||||
body {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
@media all and (orientation: portrait) {
|
||||
aside {
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
@media handheld and (min-width: 42), screen and (min-width: 20em) {
|
||||
body {
|
||||
max-width: 480px;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
body {
|
||||
padding: 20px;
|
||||
}
|
||||
body header {
|
||||
background-color: red;
|
||||
}
|
||||
}
|
||||
@media print and (orientation: landscape) {
|
||||
body {
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
@media screen {
|
||||
.sidebar {
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
@media screen and (orientation: landscape) {
|
||||
.sidebar {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
@media a and b {
|
||||
.first .second .third {
|
||||
width: 300px;
|
||||
}
|
||||
.first .second .fourth {
|
||||
width: 3;
|
||||
}
|
||||
}
|
||||
@media a and b and c {
|
||||
.first .second .third {
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
@media a, b and c {
|
||||
body {
|
||||
width: 95%;
|
||||
}
|
||||
}
|
||||
@media a and x, b and c and x, a and y, b and c and y {
|
||||
body {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.a {
|
||||
background: black;
|
||||
}
|
||||
@media handheld {
|
||||
.a {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
@media handheld and (max-width: 100px) {
|
||||
.a {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
.b {
|
||||
background: black;
|
||||
}
|
||||
@media handheld {
|
||||
.b {
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
@media handheld and (max-width: 200px) {
|
||||
.b {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
@media only screen and (max-width: 200px) {
|
||||
body {
|
||||
width: 480px;
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
@page :left {
|
||||
margin: 0.5cm;
|
||||
}
|
||||
@page :right {
|
||||
margin: 0.5cm;
|
||||
}
|
||||
@page Test:first {
|
||||
margin: 1cm;
|
||||
}
|
||||
@page :first {
|
||||
size: 8.5in 11in;
|
||||
@top-left {
|
||||
margin: 1cm;
|
||||
}
|
||||
@top-left-corner {
|
||||
margin: 1cm;
|
||||
}
|
||||
@top-center {
|
||||
margin: 1cm;
|
||||
}
|
||||
@top-right {
|
||||
margin: 1cm;
|
||||
}
|
||||
@top-right-corner {
|
||||
margin: 1cm;
|
||||
}
|
||||
@bottom-left {
|
||||
margin: 1cm;
|
||||
}
|
||||
@bottom-left-corner {
|
||||
margin: 1cm;
|
||||
}
|
||||
@bottom-center {
|
||||
margin: 1cm;
|
||||
}
|
||||
@bottom-right {
|
||||
margin: 1cm;
|
||||
}
|
||||
@bottom-right-corner {
|
||||
margin: 1cm;
|
||||
}
|
||||
@left-top {
|
||||
margin: 1cm;
|
||||
}
|
||||
@left-middle {
|
||||
margin: 1cm;
|
||||
}
|
||||
@left-bottom {
|
||||
margin: 1cm;
|
||||
}
|
||||
@right-top {
|
||||
margin: 1cm;
|
||||
}
|
||||
@right-middle {
|
||||
content: "Page " counter(page);
|
||||
}
|
||||
@right-bottom {
|
||||
margin: 1cm;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 2dppx), (min-resolution: 128dpcm) {
|
||||
.b {
|
||||
background: red;
|
||||
}
|
||||
}
|
||||
body {
|
||||
background: red;
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
body {
|
||||
background: green;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
body {
|
||||
background: red;
|
||||
background: blue;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1000px) and (max-width: 500px) {
|
||||
body {
|
||||
background: green;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1200px) {
|
||||
/* a comment */
|
||||
}
|
||||
@media (max-width: 1200px) and (max-width: 900px) {
|
||||
body {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 480px) {
|
||||
.nav-justified > li {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) and (min-width: 480px) {
|
||||
.menu > li {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
@media all and tv {
|
||||
.all-and-tv-variables {
|
||||
var: all-and-tv;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user