| 1 |
require "spec_helper" |
| 2 |
|
| 3 |
describe "font-stacks" do |
| 4 |
before(:all) do |
| 5 |
ParserSupport.parse_file("library/font-stacks") |
| 6 |
end |
| 7 |
|
| 8 |
context "stacks used in variable" do |
| 9 |
it "output stacks" do |
| 10 |
helvetica = '"Helvetica Neue", "Helvetica", "Arial", sans-serif' |
| 11 |
lucida_grande = '"Lucida Grande", "Lucida Sans Unicode", ' + |
| 12 |
'"Geneva", "Verdana", sans-serif' |
| 13 |
verdana = '"Verdana", "Geneva", sans-serif' |
| 14 |
garamond = '"Garamond", "Baskerville", "Baskerville Old Face", ' + |
| 15 |
'"Hoefler Text", "Times New Roman", serif' |
| 16 |
georgia = '"Georgia", "Times", "Times New Roman", serif' |
| 17 |
hoefler_text = '"Hoefler Text", "Baskerville Old Face", ' + |
| 18 |
'"Garamond", "Times New Roman", serif' |
| 19 |
consolas = '"Consolas", "monaco", monospace' |
| 20 |
courier_new = '"Courier New", "Courier", "Lucida Sans Typewriter", ' + |
| 21 |
'"Lucida Typewriter", monospace' |
| 22 |
monaco = '"Monaco", "Consolas", "Lucida Console", monospace' |
| 23 |
|
| 24 |
system = 'system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", ' + |
| 25 |
'"Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", ' + |
| 26 |
'"Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", ' + |
| 27 |
'"Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", ' + |
| 28 |
'"Century Gothic", "Liberation Sans", sans-serif' |
| 29 |
|
| 30 |
expect(".helvetica").to have_value(helvetica) |
| 31 |
expect(".lucida-grande").to have_value(lucida_grande) |
| 32 |
expect(".verdana").to have_value(verdana) |
| 33 |
expect(".garamond").to have_value(garamond) |
| 34 |
expect(".georgia").to have_value(georgia) |
| 35 |
expect(".hoefler-text").to have_value(hoefler_text) |
| 36 |
expect(".consolas").to have_value(consolas) |
| 37 |
expect(".courier-new").to have_value(courier_new) |
| 38 |
expect(".monaco").to have_value(monaco) |
| 39 |
expect(".system").to have_value(system) |
| 40 |
end |
| 41 |
end |
| 42 |
end |