REGRESSION(PSON?): [ WK2 ] http/tests/workers/service/client-*-page-cache.html Layout...
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2018 19:34:09 +0000 (19:34 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2018 19:34:09 +0000 (19:34 +0000)
commit752998d385ce6b6fd3911cc15137f61551c53cd1
tree34b2a6e07beb640af7d8299bda1c3c4c0a5c13b7
parentb6343dd7de1f53946885abd5678e764f2572bcca
REGRESSION(PSON?): [ WK2 ] http/tests/workers/service/client-*-page-cache.html LayoutTests are flaky
https://bugs.webkit.org/show_bug.cgi?id=183705

Reviewed by Youenn Fablet.

At the beginning of the tests, wait for the client count to reach the expected value instead of
expecting it to be the right value right away. Clients unregister themselves asynchronously so
it is flaky otherwise.

* http/tests/workers/service/client-added-to-clients-when-restored-from-page-cache.html:
* http/tests/workers/service/client-removed-from-clients-while-in-page-cache.html:
* http/tests/workers/service/serviceworkerclients-matchAll-worker.js:
(async.doTestAfterMessage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/workers/service/client-added-to-clients-when-restored-from-page-cache.html
LayoutTests/http/tests/workers/service/client-removed-from-clients-while-in-page-cache.html
LayoutTests/http/tests/workers/service/serviceworkerclients-matchAll-worker.js