OLD | NEW |
(Empty) | |
| 1 This tests basic calling of forEach on a CSSVariablesMap object. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS div.style.var.forEach() threw exception TypeError: Failed to execute 'forEa
ch' on 'CSSVariablesMap': 1 argument required, but only 0 present.. |
| 7 PASS div.style.var.forEach("Not a function.") threw exception TypeError: Type er
ror. |
| 8 |
| 9 Test calling forEach without thisArg specified: |
| 10 PASS log[0] is "[object CSSVariablesMap], a: apple, this == [object Window]" |
| 11 PASS log[1] is "[object CSSVariablesMap], b: banana, this == [object Window]" |
| 12 PASS log[2] is "[object CSSVariablesMap], c: carrot, this == [object Window]" |
| 13 PASS log.length is 3 |
| 14 |
| 15 Test calling forEach with thisArg specified: |
| 16 PASS log[0] is "[object CSSVariablesMap], a: apple, this == {\"test\":\"pass\"}" |
| 17 PASS log[1] is "[object CSSVariablesMap], b: banana, this == {\"test\":\"pass\"}
" |
| 18 PASS log[2] is "[object CSSVariablesMap], c: carrot, this == {\"test\":\"pass\"}
" |
| 19 PASS log.length is 3 |
| 20 |
| 21 PASS successfullyParsed is true |
| 22 |
| 23 TEST COMPLETE |
| 24 |
OLD | NEW |