Changeset 234107 in webkit


Ignore:
Timestamp:
Jul 23, 2018 12:33:13 PM (6 years ago)
Author:
Chris Dumez
Message:

REGRESSION(PSON?): [ WK2 ] http/tests/workers/service/client-*-page-cache.html LayoutTests are flaky
https://bugs.webkit.org/show_bug.cgi?id=183705
<rdar://problem/42440606>

Unreviewed, attempting a better fix for http/tests/workers/service/serviceworkerclients-matchAll.https.html.
If it fixes the flakiness I'll do the same for the 2 page cache tests.

  • http/tests/workers/service/serviceworkerclients-matchAll-worker.js:

(waitFor):
(matchAllPromise2):
(async.doTestAfterMessage):
(matchAllPromise1): Deleted.
(then): Deleted.

  • platform/ios-wk2/TestExpectations:
  • platform/mac-wk2/TestExpectations:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r234104 r234107  
     12018-07-23  Chris Dumez  <cdumez@apple.com>
     2
     3        REGRESSION(PSON?): [ WK2 ] http/tests/workers/service/client-*-page-cache.html LayoutTests are flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=183705
     5        <rdar://problem/42440606>
     6
     7        Unreviewed, attempting a better fix for http/tests/workers/service/serviceworkerclients-matchAll.https.html.
     8        If it fixes the flakiness I'll do the same for the 2 page cache tests.
     9
     10        * http/tests/workers/service/serviceworkerclients-matchAll-worker.js:
     11        (waitFor):
     12        (matchAllPromise2):
     13        (async.doTestAfterMessage):
     14        (matchAllPromise1): Deleted.
     15        (then): Deleted.
     16        * platform/ios-wk2/TestExpectations:
     17        * platform/mac-wk2/TestExpectations:
     18
    1192018-07-23  Per Arne Vollan  <pvollan@apple.com>
    220
  • trunk/LayoutTests/http/tests/workers/service/serviceworkerclients-matchAll-worker.js

    r234061 r234107  
     1function waitFor(duration)
     2{
     3    return new Promise((resolve) => setTimeout(resolve, duration));
     4}
     5
    16function matchAllPromise1()
    27{
     
    914
    1015var matchedClients;
    11 matchAllPromise2 = self.clients.matchAll({ includeUncontrolled : true }).then((c) => {
    12     matchedClients = c;
    13     return matchedClients.length === 1 ? "PASS" : "FAIL: expected one matched client, got " + matchedClients.length;
    14 }, (e) => {
    15     return "FAIL: matchAll 2 rejected with " + e;
    16 });
     16function matchAllPromise2()
     17{
     18    return self.clients.matchAll({ includeUncontrolled : true }).then((c) => {
     19        matchedClients = c;
     20        return matchedClients.length === 1 ? "PASS" : "FAIL: expected one matched client, got " + matchedClients.length;
     21    }, (e) => {
     22        return "FAIL: matchAll 2 rejected with " + e;
     23    });
     24}
    1725
    1826async function doTestAfterMessage(event)
     
    2937                await waitFor(50);
    3038            result = await matchAllPromise1();
    31         } while (result !== "PASS" && ++tries <= 20);
     39        } while (result !== "PASS" && ++tries <= 200);
    3240
    3341        if (result !== "PASS") {
     
    3644        }
    3745
    38         var result = await matchAllPromise2;
     46        tries = 0;
     47        do {
     48            if (tries)
     49                await waitFor(50);
     50            result = await matchAllPromise2();
     51        } while (result !== "PASS" && ++tries <= 200);
     52
    3953        if (result !== "PASS") {
    4054            event.source.postMessage(result);
  • trunk/LayoutTests/platform/ios-wk2/TestExpectations

    r234100 r234107  
    13591359webkit.org/b/183705 http/tests/workers/service/client-added-to-clients-when-restored-from-page-cache.html [ Pass Failure ]
    13601360webkit.org/b/183705 http/tests/workers/service/client-removed-from-clients-while-in-page-cache.html [ Pass Failure ]
    1361 webkit.org/b/183705 http/tests/workers/service/serviceworkerclients-matchAll.https.html [ Pass Failure ]
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r234101 r234107  
    887887webkit.org/b/183705 http/tests/workers/service/client-added-to-clients-when-restored-from-page-cache.html [ Pass Failure ]
    888888webkit.org/b/183705 http/tests/workers/service/client-removed-from-clients-while-in-page-cache.html [ Pass Failure ]
    889 webkit.org/b/183705 http/tests/workers/service/serviceworkerclients-matchAll.https.html [ Pass Failure ]
    890889
    891890webkit.org/b/187658 http/tests/security/bypassing-cors-checks-for-extension-urls.html [ Pass Failure ]
Note: See TracChangeset for help on using the changeset viewer.