| OLD | NEW |
| 1 // Test runner for the paint worklet to test invalidation behaviour. | 1 // Test runner for the paint worklet to test invalidation behaviour. |
| 2 // | 2 // |
| 3 // Registers an promise_test per test case, which: | 3 // Registers an promise_test per test case, which: |
| 4 // - Creates an element. | 4 // - Creates an element. |
| 5 // - Invalidates the style of that element. | 5 // - Invalidates the style of that element. |
| 6 // - [worklet] Worklet code logs if it got the invalidation. | 6 // - [worklet] Worklet code logs if it got the invalidation. |
| 7 // - Asserts that it got the correct paint invalidation. | 7 // - Asserts that it got the correct paint invalidation. |
| 8 // | 8 // |
| 9 // Usage: | 9 // Usage: |
| 10 // testRunnerInvalidationLogging('background-image', [ | 10 // testRunnerInvalidationLogging('background-image', [ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Cleanup. | 92 // Cleanup. |
| 93 document.body.removeChild(el); | 93 document.body.removeChild(el); |
| 94 resolve(); | 94 resolve(); |
| 95 }); | 95 }); |
| 96 }); | 96 }); |
| 97 | 97 |
| 98 }); | 98 }); |
| 99 | 99 |
| 100 }, testName); | 100 }, testName); |
| 101 } | 101 } |
| OLD | NEW |