[Webkit-unassigned] [Bug 178029] [iOS] Layout Test http/tests/preload/viewport/meta-viewport-link-headers.php is flaky

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 11 11:45:56 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=178029

--- Comment #2 from Alexey Proskuryakov <ap at webkit.org> ---
I don't know if that's the cause of flakiness, but this test uses a common anti-pattern. 

The test starts before the document is completely loaded, so loading the image races with completing the document load. The assignment to img.src should happen no earlier than window.onload.

Also, instead of waiting for a second, the test can use shouldBecomeTrue from WebKit test harness (or an equivalent from W3C harness if it exists).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171011/8f3c648c/attachment.html>


More information about the webkit-unassigned mailing list