]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add a test for @mixin { @font-face {...} } (#11649)
authorjoheriks <joheriks@vaadin.com>
Fri, 8 Nov 2013 13:22:31 +0000 (15:22 +0200)
committerLeif Åstrand <leif@vaadin.com>
Fri, 8 Nov 2013 13:28:37 +0000 (13:28 +0000)
Change-Id: I7d089ea14b169481f943a1f44058ad47f9b8179a

theme-compiler/tests/resources/automatic/css/fontface-in-mixin_new.css [new file with mode: 0644]
theme-compiler/tests/resources/automatic/scss/fontface-in-mixin_new.scss [new file with mode: 0644]

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 (file)
index 0000000..cb842a6
--- /dev/null
@@ -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 (file)
index 0000000..22356f7
--- /dev/null
@@ -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;
+}