Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/table/resources/wait-for-onload.js

Issue 2822093003: Some fast/table tests should wait for images specified via CSS url() (Closed)
Patch Set: fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 if (window.testRunner) {
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 that with linked
6 // CSSs).
7 testRunner.waitUntilDone();
8 window.addEventListener('load', () => {
9 // Force layout.
10 document.body.offsetTop;
11
12 testRunner.notifyDone();
13 });
14 }
15
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698