Skip to content

Commit da633dd

Browse files
author
Jason Young
committed
Add test case
1 parent 8588ff9 commit da633dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/urlTest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ describe("url", function() {
172172
test("font face with url", "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", [
173173
[1, "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", ""]
174174
], "?-url");
175+
test("font face with url", '@font-face { src: url("bold regular.woff?#iefix") format("woff") }', [
176+
[1, '@font-face { src: url("{./bold regular.woff}?#iefix") format("woff") }', ""]
177+
], "", { './module': "data:font/ttf;base64,AAEAAAATAQAABAAwR1BPU+Df" });
175178
test("font face with url", "@font-face { src: url(Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype'), url(~opentype/Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype') }", [
176179
[1, "@font-face { src: url(Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype'), url(~opentype/Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype') }", ""]
177180
], "?-url");

0 commit comments

Comments
 (0)