Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE HTML>
<meta charset=utf-8>
<title>Container Timing: observe after painting happened without buffering</title>
<body>
<style>
body {
margin: 0;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/container-timing/resources/container-timing-helpers.js"></script>
<script>
promise_test(async t => {
assert_implements(window.PerformanceContainerTiming, "PerformanceContainerTiming is not implemented");
addSquare100Image(document.body, {containertiming: 'image_ct', id: 'my_id'});
await waitWithoutObserving(t);
const entries = await getContainerEntriesWithin(t);
assert_equals(entries.length, 0,
'Painting happened before observing, it should not create a containertiming entry');
}, 'containertiming does not report paints before observing if buffering is disabled.');
</script>
</body>