tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

first-contentful-canvas-none.html (704B)


      1 <!DOCTYPE html>
      2 
      3 <head>
      4  <title>Performance Paint Timing Test: FCP due to canvas</title>
      5 </head>
      6 
      7 <body>
      8  <script src="/resources/testharness.js"></script>
      9  <script src="/resources/testharnessreport.js"></script>
     10  <script src="resources/utils.js"></script>
     11  <canvas id="canvas" width="200" height="200"></canvas>
     12 
     13  <script>
     14    setup({"hide_test_state": true});
     15    promise_test(async t => {
     16        assert_implements(window.PerformancePaintTiming, "Paint Timing isn't supported.");
     17        await new Promise(r => window.addEventListener('load', r));
     18        await assertNoFirstContentfulPaint(t);
     19    }, 'First contentful paint should not fire for canvas type none');
     20  </script>
     21 </body>
     22 
     23 </html>