| OLD | NEW |
| 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); |
| OLD | NEW |