Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/performance-timing/paint-timing/observable.html

Issue 2873033002: Update PaintTiming Web Perf APIs for FP & FCP to report swap time (Closed)
Patch Set: missed virtual/mojo-loading tests Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
51 </script> 55 </script>
52 <div style="background-color:black;color:white;padding:20px;">...test...</di v> 56 <div style="background-color:black;color:white;padding:20px;">...test...</di v>
53 </body> 57 </body>
54 </html> 58 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/paint/PaintTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698