https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 962d90000cca374f4756bc65ea024e06c0150499 authored by Philip Jägenstedt on 22 December 2018, 11:59:40 UTC
DO NOT MERGE: probe for idlharness.js flakiness
Tip revision: 962d900
subframe-sending-paint.html
<!DOCTYPE html>
<script>
  self.addEventListener('message', function(e) {
    // Send paint-timing entries upon receiving a message.
    const paintEntries = performance.getEntriesByType('paint');
    let entryContents = paintEntries.length + '';
    for (let i = 0; i < paintEntries.length; i++) {
      const entry = paintEntries[i];
      entryContents += ' ' + entry.entryType + ' '  + entry.name;
    }
    parent.postMessage(entryContents, '*');
  });
</script>
back to top