From d860763454e7c5cf3bfaee05642c4320a5d03a79 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Thu, 4 Mar 2010 01:41:03 -0500 Subject: [PATCH] tweaked tests to match less.js --- test/css/colors.css | 20 ++++++++++---------- test/css/mixins.css | 44 ++++++++++++++++++++++++++++++++----------- test/css/rulesets.css | 37 +++++++----------------------------- test/css/scope.css | 8 ++++++-- test/less/mixins.less | 6 ++++-- 5 files changed, 60 insertions(+), 55 deletions(-) diff --git a/test/css/colors.css b/test/css/colors.css index e177e6b..38acf25 100644 --- a/test/css/colors.css +++ b/test/css/colors.css @@ -1,32 +1,32 @@ #yelow #short { - color: #fea; + color: #fea; } #yelow #long { - color: #ffeeaa; + color: #ffeeaa; } #yelow #rgba { - color: rgba(255, 238, 170, 0.1); + color: rgba(255, 238, 170, 0.1); } #blue #short { - color: #00f; + color: #00f; } #blue #long { - color: #0000ff; + color: #0000ff; } #blue #rgba { - color: rgba(0, 0, 255, 0.1); + color: rgba(0, 0, 255, 0.1); } #overflow .a { - color: #000000; + color: #000000; } #overflow .b { - color: #ffffff; + color: #ffffff; } #overflow .c { - color: #ffffff; + color: #ffffff; } #overflow .d { - color: #00ff00; + color: #00ff00; } #grey { color: #c8c8c8; diff --git a/test/css/mixins.css b/test/css/mixins.css index dd258cd..15f4c5f 100644 --- a/test/css/mixins.css +++ b/test/css/mixins.css @@ -1,10 +1,24 @@ -.mixin { border: 1px solid black; } -.mixout { border-color: orange; } -.borders { border-style: dashed; } -#namespace .borders { border-style: dotted; } -#namespace .biohazard { content: "death"; } -#namespace .biohazard .man { color: transparent; } -#theme > .mixin { background-color: grey; } +.mixin { + border: 1px solid black; +} +.mixout { + border-color: orange; +} +.borders { + border-style: dashed; +} +#namespace .borders { + border-style: dotted; +} +#namespace .biohazard { + content: "death"; +} +#namespace .biohazard .man { + color: transparent; +} +#theme > .mixin { + background-color: grey; +} #container { color: black; border: 1px solid black; @@ -16,13 +30,21 @@ border: 1px solid black; background-color: grey; } -#header #cookie { border-style: dashed; } -#header #cookie .chips { border-style: dotted; } +#header #cookie { + border-style: dashed; +} +#header #cookie .chips { + border-style: dotted; +} #header #cookie .chips .calories { color: black; border: 1px solid black; border-color: orange; background-color: grey; } -.secure-zone { color: transparent; } -.direct { border-style: dotted; } +.secure-zone { + color: transparent; +} +.direct { + border-style: dotted; +} diff --git a/test/css/rulesets.css b/test/css/rulesets.css index 2dccd6b..3e73bc0 100644 --- a/test/css/rulesets.css +++ b/test/css/rulesets.css @@ -13,40 +13,17 @@ #first > .one > #second .two > #deux #third:focus #fifth > #sixth .seventh #eighth + #ninth { color: purple; } -#first > .one > #second .two > #deux #fourth { +#first > .one > #second .two > #deux #fourth, #first > .one > #second .two > #deux #five, #first > .one > #second .two > #deux #six { color: #110000; } -#first > .one > #second .two > #deux #fourth .seven { - border: 1px solid black; -} -#first > .one > #second .two > #deux #fourth .eight > #nine { - border: 1px solid black; -} -#first > .one > #second .two > #deux #fourth #ten { - color: red; -} -#first > .one > #second .two > #deux #five { - color: #110000; -} -#first > .one > #second .two > #deux #five .seven { - border: 1px solid black; -} -#first > .one > #second .two > #deux #five .eight > #nine { - border: 1px solid black; -} -#first > .one > #second .two > #deux #five #ten { - color: red; -} -#first > .one > #second .two > #deux #six { - color: #110000; -} -#first > .one > #second .two > #deux #six .seven { - border: 1px solid black; -} +#first > .one > #second .two > #deux #fourth .seven, +#first > .one > #second .two > #deux #five .seven, +#first > .one > #second .two > #deux #six .seven, +#first > .one > #second .two > #deux #fourth .eight > #nine, +#first > .one > #second .two > #deux #five .eight > #nine, #first > .one > #second .two > #deux #six .eight > #nine { border: 1px solid black; } -#first > .one > #second .two > #deux #six #ten { +#first > .one > #second .two > #deux #fourth #ten, #first > .one > #second .two > #deux #five #ten, #first > .one > #second .two > #deux #six #ten { color: red; } - diff --git a/test/css/scope.css b/test/css/scope.css index 737c647..926bfc5 100644 --- a/test/css/scope.css +++ b/test/css/scope.css @@ -1,9 +1,13 @@ -.tiny-scope { color: #998899; } +.tiny-scope { + color: #998899; +} .scope1 { color: blue; border-color: black; } -.scope1 .scope2 { color: blue; } +.scope1 .scope2 { + color: blue; +} .scope1 .scope2 .scope3 { color: red; border-color: black; diff --git a/test/less/mixins.less b/test/less/mixins.less index 8ed8cba..598add1 100644 --- a/test/less/mixins.less +++ b/test/less/mixins.less @@ -18,14 +18,16 @@ } #container { color: black; - .mixin, .mixout; + .mixin; + .mixout; #theme > .mixin; } #header { .milk { color: white; - .mixin, #theme > .mixin; + .mixin; + #theme > .mixin; } #cookie { .chips {