| OLD | NEW |
| 1 // Test runner for the paint worklet. | 1 // Test runner for the paint worklet. |
| 2 // | 2 // |
| 3 // Calls a given function with a newly created element, and prints the expected | 3 // Calls a given function with a newly created element, and prints the expected |
| 4 // geometry to the console. | 4 // geometry to the console. |
| 5 // | 5 // |
| 6 // Runs each test sequentially after a layout and a paint. | 6 // Runs each test sequentially after a layout and a paint. |
| 7 // | 7 // |
| 8 // Usage: | 8 // Usage: |
| 9 // testRunnerGeometryLogging([{ | 9 // testRunnerGeometryLogging([{ |
| 10 // func: function(el) { | 10 // func: function(el) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 }); | 34 }); |
| 35 }); | 35 }); |
| 36 }); | 36 }); |
| 37 }, Promise.resolve()).then(function() { | 37 }, Promise.resolve()).then(function() { |
| 38 if (window.testRunner) { | 38 if (window.testRunner) { |
| 39 testRunner.notifyDone(); | 39 testRunner.notifyDone(); |
| 40 } | 40 } |
| 41 }); | 41 }); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| OLD | NEW |