[Pkg-javascript-commits] [less.js] 47/88: add scope tests to the detached ruleset test-set

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:22:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v1.7.0
in repository less.js.

commit e0692fa199fc6828f0136da05948cb2c0194b611
Author: Luke Page <luke.a.page at gmail.com>
Date:   Thu Feb 13 20:36:34 2014 +0000

    add scope tests to the detached ruleset test-set
---
 test/css/detached-rulesets.css   | 13 +++++++++++++
 test/less/detached-rulesets.less |  9 +++++++++
 2 files changed, 22 insertions(+)

diff --git a/test/css/detached-rulesets.css b/test/css/detached-rulesets.css
index e6b646a..b98bf60 100644
--- a/test/css/detached-rulesets.css
+++ b/test/css/detached-rulesets.css
@@ -1,12 +1,19 @@
 .wrap-selector {
   color: black;
+  one: 1px;
+  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;
@@ -21,11 +28,17 @@ html.lt-ie9 header {
 }
 .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;
 }
diff --git a/test/less/detached-rulesets.less b/test/less/detached-rulesets.less
index 3829f68..57c2cb4 100644
--- a/test/less/detached-rulesets.less
+++ b/test/less/detached-rulesets.less
@@ -3,14 +3,23 @@
      background: white;
   };
 
+ at a: 1px;
 .wrap-mixin(@ruleset) {
+  @a: hidden and if you see this in the output its a bug;
+  @b: visible;
   .wrap-selector {
+      @c: visible;
       @ruleset();
+	  visible-one: @b;
+	  visible-two: @c;
     }
 };
 
 .wrap-mixin({
   color: black;
+  one: @a;
+  @b: hidden and if you see this in the output its a bug;
+  @c: hidden and if you see this in the output its a bug;
 });
 
 .wrap-mixin(@ruleset: {

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