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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/performance/performance-first-paint-timing-observable.html

Issue 2860143002: Add tests for paint-timing, and move existing tests to same location (Closed)
Patch Set: add missing image resources Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/performance/performance-paint-timing-observable.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <head>
3 <title>Performance Paint Timing Test</title>
4 </head>
5 <body>
6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script>
8 <script>
9
10 async_test(function (t) {
11 var observer = new PerformanceObserver(
12 t.step_func(function (entryList) {
13 var entries = entryList.getEntries();
14 // Nothing contentful to be painted yet.
15 assert_equals(entries.length, 1,
16 "There should be only first paint timing instance.");
17 assert_equals(entries[0].entryType, "paint",
18 "Expected entryType to be: paint.");
19 assert_equals(entries[0].name, "first-paint",
20 "Expected name to be: first-paint.");
21 assert_equals(entries[0].duration, 0,
22 "Expected duration to be: 0.");
23 observer.disconnect();
24 t.done();
25 })
26 );
27 observer.observe({entryTypes: ["paint"]});
28
29 }, "Performance first paint timing entry is observable.");
30 </script>
31
32 <div style="background-color:black;color:white;padding:20px;"></div>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/performance/performance-paint-timing-observable.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698