From e8ef66d2d6dde9cb1b9b0fa0df24643c1e0f6f26 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Tue, 27 Nov 2012 11:14:57 +0200 Subject: Move some SCSS tests to be scanned automatically Change-Id: I7590c6cd20f649a5c02e92673d44cf1c2721b95d --- .../tests/resources/automatic/scss/listmodify.scss | 25 ++++++++++++++++++++++ .../automatic/scss/microsoft-extensions.scss | 6 ++++++ .../resources/automatic/scss/remove-directive.scss | 24 +++++++++++++++++++++ .../tests/resources/automatic/scss/semicolons.scss | 9 ++++++++ 4 files changed, 64 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/scss/listmodify.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/remove-directive.scss create mode 100644 theme-compiler/tests/resources/automatic/scss/semicolons.scss (limited to 'theme-compiler/tests/resources/automatic/scss') diff --git a/theme-compiler/tests/resources/automatic/scss/listmodify.scss b/theme-compiler/tests/resources/automatic/scss/listmodify.scss new file mode 100644 index 0000000000..814f3156f8 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/listmodify.scss @@ -0,0 +1,25 @@ +$list : .v-button, .v-panel, .v-label; + +$basics : remove($list, .v-panel); + +@each $component in $basics{ + .#{$component} { + font-size: 12px; + } +} + +$items : append($basics, .v-textfield); + +@each $component in $items{ + .#{$component} { + font-color: red; + } +} + +$contains : contains($items, .v-button); + +@if($contains){ + .v-button { + background-color: black; + } +} diff --git a/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss b/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss new file mode 100644 index 0000000000..69670969de --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/microsoft-extensions.scss @@ -0,0 +1,6 @@ +.v-ie6 .v-shadow-window { + background: #000000; + filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20); + margin-top: 2px; + margin-left: 2px; +} diff --git a/theme-compiler/tests/resources/automatic/scss/remove-directive.scss b/theme-compiler/tests/resources/automatic/scss/remove-directive.scss new file mode 100644 index 0000000000..ca9a19522f --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/remove-directive.scss @@ -0,0 +1,24 @@ +$animals : platypus, rhinoceros, llama, duck, duck; +$remove : duck; + +@each $animal in $animals { + .animals .#{$animal}-icon { + background-image: url('/images/#{$animal}.png'); + } +} + +$exotic : remove($animals, $remove, space); + +@each $animal in $exotic{ + .exotic-animals .#{$animal}-icon { + background-image: url('/images/#{$animal}.png'); + } +} + +$things : remove((ball,cube,duck), duck); + +@each $thing in $things{ + .#{$thing}{ + font-size: 12px; + } +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/semicolons.scss b/theme-compiler/tests/resources/automatic/scss/semicolons.scss new file mode 100644 index 0000000000..a4a56043d5 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/semicolons.scss @@ -0,0 +1,9 @@ +.all-the-properties { + font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; ; + position: absolute;; + overflow: hidden; +} +.missing-semicolon-on-last-row { + color: red; + background-color: blue +} -- cgit v1.2.3