summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests
diff options
context:
space:
mode:
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r--theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css9
-rw-r--r--theme-compiler/tests/resources/automatic/css/interpolation-singlequote.css1
-rw-r--r--theme-compiler/tests/resources/automatic/css/mixin-keyframes.css10
-rw-r--r--theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss17
-rw-r--r--theme-compiler/tests/resources/automatic/scss/interpolation-singlequote.scss7
-rw-r--r--theme-compiler/tests/resources/automatic/scss/mixin-keyframes.scss14
6 files changed, 58 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css b/theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css
new file mode 100644
index 0000000000..cb842a647d
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css
@@ -0,0 +1,9 @@
+p {
+ @font-face {
+ font-family: "vdebugfont";
+ src: url('fonts/font.eot');
+ src: url('fonts/font.eot?#iefix') format("embedded-opentype"), url('fonts/font.woff') format("woff"), url('fonts/font.ttf') format("truetype"), url('fonts/font.svg#fontawesome') format("svg");
+ font-weight: normal;
+ font-style: normal;
+}
+}
diff --git a/theme-compiler/tests/resources/automatic/css/interpolation-singlequote.css b/theme-compiler/tests/resources/automatic/css/interpolation-singlequote.css
new file mode 100644
index 0000000000..58c6a3d37a
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/interpolation-singlequote.css
@@ -0,0 +1 @@
+body { background-color: white; } \ No newline at end of file
diff --git a/theme-compiler/tests/resources/automatic/css/mixin-keyframes.css b/theme-compiler/tests/resources/automatic/css/mixin-keyframes.css
new file mode 100644
index 0000000000..c1f2ccd6c0
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/mixin-keyframes.css
@@ -0,0 +1,10 @@
+@-webkit-keyframes fade-in {
+ 0% { opacity: 0; }
+ 20% , 50%,100% { opacity: 1; }
+ 30%, 75% { opacity: 0; }
+}
+@-moz-keyframes fade-in {
+ 0% { opacity: 0; }
+ 20% , 50%,100% { opacity: 1; }
+ 30%, 75% { opacity: 0; }
+} \ No newline at end of file
diff --git a/theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss b/theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss
new file mode 100644
index 0000000000..22356f724e
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss
@@ -0,0 +1,17 @@
+@mixin debug-globals {
+ @font-face {
+ font-family: 'vdebugfont';
+ src:url('fonts/font.eot');
+ src:url('fonts/font.eot?#iefix') format('embedded-opentype'),
+ url('fonts/font.woff') format('woff'),
+ url('fonts/font.ttf') format('truetype'),
+ url('fonts/font.svg#fontawesome') format('svg');
+ font-weight: normal;
+ font-style: normal;
+ }
+
+}
+
+p {
+ @include debug-globals;
+}
diff --git a/theme-compiler/tests/resources/automatic/scss/interpolation-singlequote.scss b/theme-compiler/tests/resources/automatic/scss/interpolation-singlequote.scss
new file mode 100644
index 0000000000..4cdd7bf165
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/interpolation-singlequote.scss
@@ -0,0 +1,7 @@
+@mixin bgcolor ($name, $color) {
+ #{$name}{
+ background-color: $color;
+ }
+}
+
+@include bgcolor('body', white);
diff --git a/theme-compiler/tests/resources/automatic/scss/mixin-keyframes.scss b/theme-compiler/tests/resources/automatic/scss/mixin-keyframes.scss
new file mode 100644
index 0000000000..931d102e3f
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/mixin-keyframes.scss
@@ -0,0 +1,14 @@
+@mixin keyframes ($name) {
+ @-webkit-keyframes #{$name} {
+ @content;
+ }
+ @-moz-keyframes #{$name} {
+ @content;
+ }
+}
+
+@include keyframes("fade-in") {
+ 0% {opacity: 0;}
+ 20% , 50%,100%{opacity: 1;}
+ 30%, 75% {opacity: 0;}
+} \ No newline at end of file