loaf-paint-mixin.html (887B)
1 <!DOCTYPE HTML> 2 <meta charset=utf-8> 3 <title>Long Animation Frame Timing: paint mixin</title> 4 <meta name="timeout" content="long"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="resources/utils.js"></script> 8 9 <body> 10 <h1>Long Animation Frame: paint mixin</h1> 11 <div id="log"></div> 12 <script> 13 14 promise_test(async t => { 15 assert_implements("paintTime" in window.PerformanceLongAnimationFrameTiming.prototype, "PerformanceLongAnimationFrameTiming doesn't expose `paintTime`"); 16 document.querySelector("#log").innerText = "Text"; 17 const entry = await generate_long_animation_frame(); 18 assert_equals(entry.paintTime, entry.startTime + entry.duration); 19 assert_greater_than(entry.presentationTime, entry.paintTime); 20 }, 'A LoAF that generates a frame should have paintTime/presentationTime'); 21 </script> 22 </body>