[Pkg-javascript-commits] [less.js] 41/58: Added unit test for referenced parent selectors
Jonas Smedegaard
dr at jones.dk
Mon Oct 26 23:28:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag v2.3.0
in repository less.js.
commit dc2b6851947952d37fe6affd7950893242adbf60
Author: jurcovicovam <meri at meri.org>
Date: Fri Jan 23 18:42:02 2015 +0100
Added unit test for referenced parent selectors
Name: Parent selectors not working within mixins using (reference)
Number: #1979
---
test/css/import-reference.css | 6 ++++++
test/less/import-reference.less | 1 +
test/less/import/import-reference.less | 11 ++++++++++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/test/css/import-reference.css b/test/css/import-reference.css
index 4dc5490..0d06c2b 100644
--- a/test/css/import-reference.css
+++ b/test/css/import-reference.css
@@ -74,3 +74,9 @@ div#id.class[a=1][b=2].class:not(1) {
color: red;
}
}
+.test {
+ color: red;
+}
+.test:first-child {
+ color: blue;
+}
diff --git a/test/less/import-reference.less b/test/less/import-reference.less
index e1477c5..77df43b 100644
--- a/test/less/import-reference.less
+++ b/test/less/import-reference.less
@@ -19,3 +19,4 @@
.class:extend(.class all) {
}
+.mixin-with-nested-selectors();
\ No newline at end of file
diff --git a/test/less/import/import-reference.less b/test/less/import/import-reference.less
index f8f9642..f4c9c74 100644
--- a/test/less/import/import-reference.less
+++ b/test/less/import/import-reference.less
@@ -49,7 +49,7 @@
color: red;
}
}
-
+//https://github.com/less/less.js/issues/2359
@supports (something: else) {
.class {
something: else;
@@ -63,3 +63,12 @@
something: else;
}
}
+//https://github.com/less/less.js/issues/1979
+.mixin-with-nested-selectors() {
+ .test {
+ color: red;
+ &:first-child {
+ color: blue;
+ }
+ }
+}
\ No newline at end of file
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git
More information about the Pkg-javascript-commits
mailing list