| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <title>Performance Paint Timing Test</title> | 3 <title>Performance Paint Timing Test</title> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <script src="../../resources/testharness.js"></script> | 6 <script src="../../resources/testharness.js"></script> |
| 7 <script src="../../resources/testharnessreport.js"></script> | 7 <script src="../../resources/testharnessreport.js"></script> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 async_test(function (t) { | 10 async_test(function (t) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 assert_equals(bufferedEntries[1].name, "first-contentful-paint", | 41 assert_equals(bufferedEntries[1].name, "first-contentful-paint", |
| 42 "Expected entryType to be: paint."); | 42 "Expected entryType to be: paint."); |
| 43 | 43 |
| 44 t.done(); | 44 t.done(); |
| 45 }) | 45 }) |
| 46 ); | 46 ); |
| 47 observer.observe({entryTypes: ["paint"]}); | 47 observer.observe({entryTypes: ["paint"]}); |
| 48 | 48 |
| 49 }, "Both first-paint-timing and first-contentful-paint timing entry are obse
rvable."); | 49 }, "Both first-paint-timing and first-contentful-paint timing entry are obse
rvable."); |
| 50 | 50 |
| 51 if (window.testRunner) { | |
| 52 testRunner.waitUntilDone(); | |
| 53 testRunner.capturePixelsAsyncThen(async_test); | |
| 54 } | |
| 55 </script> | 51 </script> |
| 56 <div style="background-color:black;color:white;padding:20px;">...test...</di
v> | 52 <div style="background-color:black;color:white;padding:20px;">...test...</di
v> |
| 57 </body> | 53 </body> |
| 58 </html> | 54 </html> |
| OLD | NEW |