2 // This is a workaroud for an issue that the test runner sends notifyDone
3 // before resources specified in CSS url finish loading. Currently all
4 // such resources are specified in inline CSSs so we can rely on the
5 // Document load event (Note that we cannot rely on the event generally).
6 testRunner.waitUntilDone();
7 window.addEventListener('load', () => {
8 // Force layout.
9 document.body.offsetTop;
10
11 testRunner.notifyDone();
12 });
13 }
14
rune
2017/04/18 15:30:09
The name "base.js" doesn't indicate what this scri
The name "base.js" doesn't indicate what this script does, it should have a
better name.
I don't understand how you are guaranteed that the CSS resources are loaded if
they don't block onload.
yhirano
2017/04/19 01:32:50
Done.
Resources linked from inline CSSs block the
On 2017/04/18 15:30:09, rune wrote:
> The name "base.js" doesn't indicate what this script does, it should have a
> better name.
>
> I don't understand how you are guaranteed that the CSS resources are loaded if
> they don't block onload.
Done.
Resources linked from inline CSSs block the onload event.
Issue 2822093003: Some fast/table tests should wait for images specified via CSS url()
(Closed)
Created 3 years, 8 months ago by yhirano
Modified 3 years, 8 months ago
Reviewers: kouhei (in TOK), rune
Base URL:
Comments: 1