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

Side by Side Diff: third_party/WebKit/LayoutTests/css1/resources/base.js

Issue 2588283002: Most css1/ tests should wait for basebg.gif to be loaded (Closed)
Patch Set: fix Created 4 years 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 load event may be dispatched
3 // before loading ../resources/basebg.gif which is linked from
4 // ../resources/base.css.
5 testRunner.waitUntilDone();
6 window.addEventListener('load', () => {
7 const id = setInterval(() => {
8 // Force layout.
9 document.body.offsetTop;
10 if (internals.isLoading('../resources/basebg.gif'))
11 return;
12
13 clearInterval(id);
14 testRunner.notifyDone();
15 }, 50);
16 });
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698