From cf4e32fa512ba999c3c7dcba301a772b716309fe Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Thu, 15 Feb 2018 18:41:06 +0300 Subject: [PATCH] tests: hash inside url for `font-face` at rule --- test/urlTest.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/urlTest.js b/test/urlTest.js index 543a47fe..9b6b0d22 100644 --- a/test/urlTest.js +++ b/test/urlTest.js @@ -184,6 +184,12 @@ describe("url", function() { test("font face with url", "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", [ [1, "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", ""] ], "?-url"); + 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') }", [ + [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') }", ""] + ], "?-url"); + test("font face with url", "@font-face { src: url('Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix') format('embedded-opentype'), url(\"Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix\") format('embedded-opentype') }", [ + [1, "@font-face { src: url('Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix') format('embedded-opentype'), url(\"Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix\") format('embedded-opentype') }", ""] + ], "?-url"); test("media query with url", "@media (min-width: 500px) { body { background: url(image.png); } }", [ [1, "@media (min-width: 500px) { body { background: url(image.png); } }", ""] ], "?-url");