OLD | NEW |
1 This is a test case for String.prototype.fontsize(size). | 1 This is a test case for String.prototype.fontsize(size). |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS '_'.fontsize('"') is "<font size=\""\">_</font>" | 6 PASS '_'.fontsize('"') is "<font size=\""\">_</font>" |
7 PASS '_'.fontsize('b') is "<font size=\"b\">_</font>" | 7 PASS '_'.fontsize('b') is "<font size=\"b\">_</font>" |
8 PASS '<'.fontsize('b') is "<font size=\"b\"><</font>" | 8 PASS '<'.fontsize('b') is "<font size=\"b\"><</font>" |
9 PASS '_'.fontsize(0x2A) is "<font size=\"42\">_</font>" | 9 PASS '_'.fontsize(0x2A) is "<font size=\"42\">_</font>" |
10 PASS '_'.fontsize('"') is "<font size=\""\">_</font>" | 10 PASS '_'.fontsize('"') is "<font size=\""\">_</font>" |
11 PASS '_'.fontsize('" color="b') is "<font size=\"" color="b\">_</font>
" | 11 PASS '_'.fontsize('" color="b') is "<font size=\"" color="b\">_</font>
" |
12 PASS String.prototype.fontsize.call(0x2A, 0x2A) is "<font size=\"42\">42</font>" | 12 PASS String.prototype.fontsize.call(0x2A, 0x2A) is "<font size=\"42\">42</font>" |
13 PASS String.prototype.fontsize.call(undefined) threw exception TypeError: Type e
rror. | 13 FAIL String.prototype.fontsize.call(undefined) should throw TypeError: Type erro
r. Was <font size="undefined">undefined</font>. |
14 PASS String.prototype.fontsize.call(null) threw exception TypeError: Type error. | 14 FAIL String.prototype.fontsize.call(null) should throw TypeError: Type error. Wa
s <font size="undefined">null</font>. |
15 PASS String.prototype.fontsize.length is 1 | 15 PASS String.prototype.fontsize.length is 1 |
16 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
17 | 17 |
18 TEST COMPLETE | 18 TEST COMPLETE |
19 | 19 |
OLD | NEW |