Re: [w3c/ServiceWorker] async waitUntil microtask issue (#1213)

@jungkees, are these what the tests would look like for what you are describing in your examples?

1. ```javascript
    waitPromise = async_task_waituntil(event);
    event.waitUntil(waitPromise);
    waitPromise.then(() => {
        return Promise.resolve().then(() => sync_waituntil(event))
    }).then(reportResultExpecting('InvalidStateError'));
    ```
2. ```javascript
    waitPromise = async_task_waituntil(event);
    waitPromise.then(() => {
        return Promise.resolve().then(() => sync_waituntil(event))
    }).then(reportResultExpecting('OK'));
    event.waitUntil(waitPromise);
    ```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1213#issuecomment-359122656

Received on Friday, 19 January 2018 23:59:33 UTC