| OLD | NEW |
| 1 // To run these tests, load json_results.html in a browser. | 1 // To run these tests, load results.html in a browser. |
| 2 // You should see a series of PASS lines. | 2 // You should see a series of PASS lines. |
| 3 if (window.testRunner) | 3 if (window.testRunner) |
| 4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
| 5 | 5 |
| 6 var testStyles = document.createElement('style'); | 6 var testStyles = document.createElement('style'); |
| 7 testStyles.innerText = ".test-pass { color: green; } .test-fail { color: red; }"
; | 7 testStyles.innerText = ".test-pass { color: green; } .test-fail { color: red; }"
; |
| 8 document.querySelector('head').appendChild(testStyles); | 8 document.querySelector('head').appendChild(testStyles); |
| 9 | 9 |
| 10 var g_testIndex = 0; | 10 var g_testIndex = 0; |
| 11 var g_log = ["You should see a series of PASS lines."]; | 11 var g_log = ["You should see a series of PASS lines."]; |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 results.tests['foo'].has_repaint_overlay = true; | 804 results.tests['foo'].has_repaint_overlay = true; |
| 805 runTest(results, function() { | 805 runTest(results, function() { |
| 806 assertTrue(document.querySelector('tbody td:nth-child(2)').textContent.i
ndexOf('overlay') != -1); | 806 assertTrue(document.querySelector('tbody td:nth-child(2)').textContent.i
ndexOf('overlay') != -1); |
| 807 }) | 807 }) |
| 808 | 808 |
| 809 document.body.innerHTML = '<pre>' + g_log.join('\n') + '</pre>'; | 809 document.body.innerHTML = '<pre>' + g_log.join('\n') + '</pre>'; |
| 810 } | 810 } |
| 811 | 811 |
| 812 var originalGeneratePage = generatePage; | 812 var originalGeneratePage = generatePage; |
| 813 generatePage = runTests; | 813 generatePage = runTests; |
| OLD | NEW |