OLD | NEW |
(Empty) | |
| 1 Verifies JavaScript pretty-printing functionality. |
| 2 |
| 3 |
| 4 Running: testLinkFollowedByComment |
| 5 ====== 8< ------ |
| 6 <link href='a/b/c.css' rel='stylesheet'> |
| 7 <!-- some comment --> |
| 8 |
| 9 ------ >8 ====== |
| 10 Correct mapping for <stylesheet> |
| 11 Correct mapping for <some> |
| 12 Correct mapping for <comment> |
| 13 |
| 14 Running: testInlineJavascript |
| 15 ====== 8< ------ |
| 16 <html> |
| 17 <script> |
| 18 for (var i = 0; i < 10; ++i) |
| 19 console.log('test ' + i); |
| 20 </script> |
| 21 </html> |
| 22 |
| 23 ------ >8 ====== |
| 24 Correct mapping for <console> |
| 25 Correct mapping for <test> |
| 26 Correct mapping for <</html> |
| 27 |
| 28 Running: testInlineCSS |
| 29 ====== 8< ------ |
| 30 <html> |
| 31 <style> |
| 32 div { |
| 33 color: red; |
| 34 border: 1px solid black; |
| 35 } |
| 36 </style> |
| 37 </html> |
| 38 |
| 39 ------ >8 ====== |
| 40 Correct mapping for <<html>> |
| 41 Correct mapping for <red> |
| 42 Correct mapping for <black> |
| 43 |
| 44 Running: testMultilineInput |
| 45 ====== 8< ------ |
| 46 <html> |
| 47 <head> |
| 48 <meta name="ROBOTS" content="NOODP"> |
| 49 <meta name='viewport' content='text/html'> |
| 50 <title>foobar</title> |
| 51 <body> |
| 52 <script> |
| 53 if (1 < 2) { |
| 54 if (2 < 3) { |
| 55 if (3 < 4) { |
| 56 if (4 < 5) { |
| 57 console.log("magic") |
| 58 } |
| 59 } |
| 60 } |
| 61 } |
| 62 </script> |
| 63 <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."> |
| 64 <style> |
| 65 div { |
| 66 display: flex; |
| 67 align-items: center; |
| 68 justify-content: center; |
| 69 } |
| 70 |
| 71 body { |
| 72 width: 100% |
| 73 } |
| 74 |
| 75 * { |
| 76 border: 1px solid black |
| 77 } |
| 78 </style> |
| 79 </body> |
| 80 </html> |
| 81 |
| 82 ------ >8 ====== |
| 83 Correct mapping for <ROBOTS> |
| 84 Correct mapping for <image> |
| 85 Correct mapping for <...> |
| 86 Correct mapping for <</body>> |
| 87 Correct mapping for <</html>> |
| 88 Correct mapping for <</style>> |
| 89 |
OLD | NEW |