OLD | NEW |
(Empty) | |
| 1 Verifies JavaScript pretty-printing functionality. |
| 2 |
| 3 |
| 4 Running: simpleLiteral |
| 5 ====== 8< ------ |
| 6 var foo = `bar`; |
| 7 |
| 8 ------ >8 ====== |
| 9 Correct mapping for <foo> |
| 10 Correct mapping for <bar> |
| 11 |
| 12 Running: multilineLiteral |
| 13 ====== 8< ------ |
| 14 var foo = `this |
| 15 bar`; |
| 16 |
| 17 ------ >8 ====== |
| 18 Correct mapping for <foo> |
| 19 Correct mapping for <bar> |
| 20 |
| 21 Running: stringSubstitution |
| 22 ====== 8< ------ |
| 23 var a = `I have ${credit + cash}$`; |
| 24 |
| 25 ------ >8 ====== |
| 26 Correct mapping for <credit> |
| 27 Correct mapping for <cash> |
| 28 |
| 29 Running: multipleStringSubstitution |
| 30 ====== 8< ------ |
| 31 var a = `${name} has ${credit + cash}${currency ? currency : "$"}`; |
| 32 |
| 33 ------ >8 ====== |
| 34 Correct mapping for <credit> |
| 35 Correct mapping for <cash> |
| 36 |
| 37 Running: taggedTemplate |
| 38 ====== 8< ------ |
| 39 escapeHtml`<div class=${classnName} width=${a + b}/>`; |
| 40 |
| 41 ------ >8 ====== |
| 42 Correct mapping for <escapeHtml> |
| 43 Correct mapping for <width> |
| 44 |
| 45 Running: escapedApostrophe |
| 46 ====== 8< ------ |
| 47 var a=`That`s great!`; |
| 48 ------ >8 ====== |
| 49 Correct mapping for <That> |
| 50 Correct mapping for <great> |
| 51 |
OLD | NEW |