diff options
author | Haijian Wang <haijian@vaadin.com> | 2013-01-04 14:13:02 +0200 |
---|---|---|
committer | Haijian Wang <haijian@vaadin.com> | 2013-01-09 13:59:16 +0200 |
commit | 63a7fdf83df3f43343ba4fdb878bdfc8ebf52204 (patch) | |
tree | a1d653c63954f1be0f1a9675ce93af2e450430d0 /theme-compiler/tests | |
parent | 2cc7ad1cd43132fce201aa21d2a31fd56f093815 (diff) | |
download | vaadin-framework-63a7fdf83df3f43343ba4fdb878bdfc8ebf52204.tar.gz vaadin-framework-63a7fdf83df3f43343ba4fdb878bdfc8ebf52204.zip |
Preserve UTF-8 in imported files and output @charset in generated css
(#10505)
Change-Id: I53f46611ef39124d532b118bb8ccb34f31cf8a6a
Diffstat (limited to 'theme-compiler/tests')
3 files changed, 12 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/utf8.css b/theme-compiler/tests/resources/automatic/css/utf8.css new file mode 100644 index 0000000000..b27d6cedf9 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/utf8.css @@ -0,0 +1,5 @@ +@charset "UTF-8"; +.imported { content: "\1f4c5"; } +.imported_raw_utf { content: "♥"; } +.bar { content: "\1f4c5"; } +.raw_utf { content: "📈"; }
\ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss b/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss new file mode 100644 index 0000000000..f8a08a4a96 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/utf8-imported/to-be-imported-scss-file-contains-utf8.scss @@ -0,0 +1,3 @@ +@charset "abc"; +.imported{content: '\1f4c5';} +.imported_raw_utf{content: "♥";} diff --git a/theme-compiler/tests/resources/automatic/scss/utf8.scss b/theme-compiler/tests/resources/automatic/scss/utf8.scss new file mode 100644 index 0000000000..b568674073 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/utf8.scss @@ -0,0 +1,4 @@ +@charset "UTF-8"; +@import "utf8-imported/to-be-imported-scss-file-contains-utf8"; +.bar {content: "\1f4c5";} +.raw_utf {content: "📈";}
\ No newline at end of file |