summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoheriks <joheriks@vaadin.com>2013-11-08 15:22:31 +0200
committerLeif Åstrand <leif@vaadin.com>2013-11-08 13:28:37 +0000
commit30e9b7c7940e617d5ed9ed5bf883a460a8ec0e98 (patch)
treeaec772aa6adf1eb108c3a7fc087ea4ab400fb199
parenta3aa6cc93e22fd6ff37ea6f3aa91810cab2aa624 (diff)
downloadvaadin-framework-30e9b7c7940e617d5ed9ed5bf883a460a8ec0e98.tar.gz
vaadin-framework-30e9b7c7940e617d5ed9ed5bf883a460a8ec0e98.zip
Add a test for @mixin { @font-face {...} } (#11649)
Change-Id: I7d089ea14b169481f943a1f44058ad47f9b8179a
-rw-r--r--theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css9
-rw-r--r--theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss17
2 files changed, 26 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/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;
+}