Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/script-tests/font-family-fallback-reset.js

Issue 1778743003: Make <custom-ident> not insert quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win_chromium_rel_ng Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 description("Setting a new font-family should reset the fallback list to empty b efore adding the new family."); 1 description("Setting a new font-family should reset the fallback list to empty b efore adding the new family.");
2 2
3 var wrapperDiv = document.createElement('div'); 3 var wrapperDiv = document.createElement('div');
4 document.body.appendChild(wrapperDiv) 4 document.body.appendChild(wrapperDiv)
5 5
6 wrapperDiv.innerHTML = 6 wrapperDiv.innerHTML =
7 '<div id="outerDiv" style="font-family: courier new, cursive;">' + 7 '<div id="outerDiv" style="font-family: courier new, cursive;">' +
8 'should be Courier New' + 8 'should be Courier New' +
9 '<div id="timesDiv" style="font-family: foo;">should be Times (default font)</di v>' + 9 '<div id="timesDiv" style="font-family: foo;">should be Times (default font)</di v>' +
10 '<div id="cursiveDiv" style="font-family: cursive;">should be cursive</div>' + 10 '<div id="cursiveDiv" style="font-family: cursive;">should be cursive</div>' +
11 '</div>'; 11 '</div>';
12 12
13 shouldBeEqualToString("window.getComputedStyle(outerDiv, null).fontFamily", "'co urier new', cursive"); 13 shouldBeEqualToString("window.getComputedStyle(outerDiv, null).fontFamily", '"co urier new", cursive');
14 shouldBeEqualToString("window.getComputedStyle(timesDiv, null).fontFamily", "foo "); 14 shouldBeEqualToString("window.getComputedStyle(timesDiv, null).fontFamily", "foo ");
15 shouldBeEqualToString("window.getComputedStyle(cursiveDiv, null).fontFamily", "c ursive"); 15 shouldBeEqualToString("window.getComputedStyle(cursiveDiv, null).fontFamily", "c ursive");
16 16
17 document.body.removeChild(wrapperDiv); 17 document.body.removeChild(wrapperDiv);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698