--- /dev/null
+.v-button {
+ font-size: 12px;
+}
+
+.v-label {
+ font-size: 12px;
+}
+
+.v-button {
+ font-color: red;
+}
+
+.v-label {
+ font-color: red;
+}
+
+.v-textfield {
+ font-color: red;
+}
+
+.v-button {
+ background-color: black;
+}
\ No newline at end of file
--- /dev/null
+.v-ie6 .v-shadow-window {
+ background: #000000;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20);
+ margin-top: 2px;
+ margin-left: 2px;
+}
\ No newline at end of file
--- /dev/null
+.animals .platypus-icon {
+ background-image: url('/images/platypus.png');
+}
+
+.animals .rhinoceros-icon {
+ background-image: url('/images/rhinoceros.png');
+}
+
+.animals .llama-icon {
+ background-image: url('/images/llama.png');
+}
+
+.animals .duck-icon {
+ background-image: url('/images/duck.png');
+}
+
+.animals .duck-icon {
+ background-image: url('/images/duck.png');
+}
+
+.exotic-animals .platypus-icon {
+ background-image: url('/images/platypus.png');
+}
+
+.exotic-animals .rhinoceros-icon {
+ background-image: url('/images/rhinoceros.png');
+}
+
+.exotic-animals .llama-icon {
+ background-image: url('/images/llama.png');
+}
+
+.ball {
+ font-size: 12px;
+}
+
+.cube {
+ font-size: 12px;
+}
\ No newline at end of file
--- /dev/null
+.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;
+}
\ No newline at end of file
--- /dev/null
+$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;
+ }
+}
--- /dev/null
+.v-ie6 .v-shadow-window {
+ background: #000000;
+ filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20);
+ margin-top: 2px;
+ margin-left: 2px;
+}
--- /dev/null
+$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
--- /dev/null
+.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
+}
+++ /dev/null
-.v-button {
- font-size: 12px;
-}
-
-.v-label {
- font-size: 12px;
-}
-
-.v-button {
- font-color: red;
-}
-
-.v-label {
- font-color: red;
-}
-
-.v-textfield {
- font-color: red;
-}
-
-.v-button {
- background-color: black;
-}
\ No newline at end of file
+++ /dev/null
-.v-ie6 .v-shadow-window {
- background: #000000;
- filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20);
- margin-top: 2px;
- margin-left: 2px;
-}
\ No newline at end of file
+++ /dev/null
-.animals .platypus-icon {
- background-image: url('/images/platypus.png');
-}
-
-.animals .rhinoceros-icon {
- background-image: url('/images/rhinoceros.png');
-}
-
-.animals .llama-icon {
- background-image: url('/images/llama.png');
-}
-
-.animals .duck-icon {
- background-image: url('/images/duck.png');
-}
-
-.animals .duck-icon {
- background-image: url('/images/duck.png');
-}
-
-.exotic-animals .platypus-icon {
- background-image: url('/images/platypus.png');
-}
-
-.exotic-animals .rhinoceros-icon {
- background-image: url('/images/rhinoceros.png');
-}
-
-.exotic-animals .llama-icon {
- background-image: url('/images/llama.png');
-}
-
-.ball {
- font-size: 12px;
-}
-
-.cube {
- font-size: 12px;
-}
\ No newline at end of file
+++ /dev/null
-.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;
-}
\ No newline at end of file
+++ /dev/null
-$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;
- }
-}
+++ /dev/null
-.v-ie6 .v-shadow-window {
- background: #000000;
- filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=5 ) alpha(opacity = 20);
- margin-top: 2px;
- margin-left: 2px;
-}
+++ /dev/null
-$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
+++ /dev/null
-.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
-}
--- /dev/null
+/*
+ * Copyright 2011 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.sass.testcases.scss;
+
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Collection;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Parameterized;
+import org.junit.runners.Parameterized.Parameters;
+
+@RunWith(Parameterized.class)
+public class AutomaticSassTests extends AbstractDirectoryScanningSassTests {
+
+ public AutomaticSassTests(String scssResourceName) {
+ super(scssResourceName);
+ }
+
+ @Override
+ protected URL getResourceURL(String path) {
+ return getResourceURLInternal(path);
+ }
+
+ private static URL getResourceURLInternal(String path) {
+ return AutomaticSassTests.class.getResource("/automatic" + path);
+ }
+
+ @Parameters
+ public static Collection<Object[]> getScssResourceNames()
+ throws URISyntaxException {
+ return getScssResourceNames(getResourceURLInternal(""));
+ }
+
+}
+++ /dev/null
-package com.vaadin.sass.testcases.scss;
-
-import org.junit.Test;
-
-import com.vaadin.sass.AbstractTestBase;
-
-public class ListModify extends AbstractTestBase {
-
- String scss = "/scss/listmodify.scss";
- String css = "/css/listmodify.css";
-
- @Test
- public void testCompiler() throws Exception {
- testCompiler(scss, css);
- }
-
-}
+++ /dev/null
-/*
- * Copyright 2011 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.vaadin.sass.testcases.scss;
-
-import org.junit.Test;
-
-import com.vaadin.sass.AbstractTestBase;
-
-/**
- * Test for Microsoft specific CSS extensions.
- */
-public class MicrosoftExtensions extends AbstractTestBase {
- String scss = "/scss/microsoft-extensions.scss";
- String css = "/css/microsoft-extensions.css";
-
- @Test
- public void testCompiler() throws Exception {
- testCompiler(scss, css);
- }
-}
+++ /dev/null
-package com.vaadin.sass.testcases.scss;
-
-import java.io.IOException;
-
-import org.junit.Test;
-import org.w3c.css.sac.CSSException;
-
-import com.vaadin.sass.AbstractTestBase;
-
-public class RemoveDirective extends AbstractTestBase {
-
- String scss = "/scss/remove-directive.scss";
- String css = "/css/remove-directive.css";
-
- @Test
- public void testParser() throws CSSException, IOException {
-
- }
-
- @Test
- public void testCompiler() throws Exception {
- testCompiler(scss, css);
- }
-
-}
+++ /dev/null
-/*
- * Copyright 2011 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-
-package com.vaadin.sass.testcases.scss;
-
-import org.junit.Test;
-
-import com.vaadin.sass.AbstractTestBase;
-
-/**
- * Test for missing and extraneous semicolon handling.
- */
-public class Semicolons extends AbstractTestBase {
- String scss = "/scss/semicolons.scss";
- String css = "/css/semicolons.css";
-
- @Test
- public void testCompiler() throws Exception {
- testCompiler(scss, css);
- }
-}