diff --git a/test/_tape.cjs b/test/_tape.cjs index 04021e3..4d56691 100644 --- a/test/_tape.cjs +++ b/test/_tape.cjs @@ -14,6 +14,18 @@ postcssTape(plugin)({ 'google-fonts-once': { message: "adds google fonts once", }, + 'google-fonts-cyrillic': { + message: "supports google fonts (cyrillic)", + options: { + "variants": { + "Roboto Slab": { + "400": ["local woff2 woff", "cyrillic"] + } + }, + "foundries": ["google"], + "display": "swap" + } + }, 'font-display-option': { message: "supports font-display option", options: { diff --git a/test/google-fonts-cyrillic.css b/test/google-fonts-cyrillic.css new file mode 100644 index 0000000..607388a --- /dev/null +++ b/test/google-fonts-cyrillic.css @@ -0,0 +1,3 @@ +a { + font-family: "Roboto Slab"; +} diff --git a/test/google-fonts-cyrillic.expect.css b/test/google-fonts-cyrillic.expect.css new file mode 100644 index 0000000..5a17c1a --- /dev/null +++ b/test/google-fonts-cyrillic.expect.css @@ -0,0 +1,11 @@ +@font-face { + font-family: "Roboto Slab"; + font-style: normal; + font-weight: 400; + src: url(//fonts.gstatic.com/s/robotoslab/v33/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rj.woff2) format("woff2"),url(//fonts.gstatic.com/s/robotoslab/v33/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmYWRl.woff) format("woff"); + font-display: swap; + unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +a { + font-family: "Roboto Slab"; +}