| OLD | NEW |
| 1 /* | 1 /* |
| 2 * THIS FILE INTENTIONALLY LEFT BLANK | 2 * THIS FILE INTENTIONALLY LEFT BLANK |
| 3 * | 3 * |
| 4 * More specifically, this file is intended for vendors to implement | 4 * More specifically, this file is intended for vendors to implement |
| 5 * code needed to integrate testharness.js tests with their own test systems. | 5 * code needed to integrate testharness.js tests with their own test systems. |
| 6 * | 6 * |
| 7 * Typically such integration will attach callbacks when each test is | 7 * Typically such integration will attach callbacks when each test is |
| 8 * has run, using add_result_callback(callback(test)), or when the whole test fi
le has | 8 * has run, using add_result_callback(callback(test)), or when the whole test fi
le has |
| 9 * completed, using add_completion_callback(callback(tests, harness_status)). | 9 * completed, using add_completion_callback(callback(tests, harness_status)). |
| 10 * | 10 * |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Set results element's innerHTML to the results string | 71 // Set results element's innerHTML to the results string |
| 72 results.innerHTML = resultStr; | 72 results.innerHTML = resultStr; |
| 73 | 73 |
| 74 // Add results element to document | 74 // Add results element to document |
| 75 document.body.appendChild(results); | 75 document.body.appendChild(results); |
| 76 | 76 |
| 77 if (self.testRunner) | 77 if (self.testRunner) |
| 78 testRunner.notifyDone(); | 78 testRunner.notifyDone(); |
| 79 }); | 79 }); |
| OLD | NEW |