| Index: third_party/WebKit/LayoutTests/http/tests/misc/resources/run-async-tasks-promise.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/misc/resources/run-async-tasks-promise.js b/third_party/WebKit/LayoutTests/http/tests/misc/resources/run-async-tasks-promise.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a38490dc0300db67d4b3fabc04fa272dbc92ab32
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/misc/resources/run-async-tasks-promise.js
|
| @@ -0,0 +1,7 @@
|
| +// Returns a promise while will let queued asynchronous tasks run before
|
| +// resolving.
|
| +function runAsyncTasks() {
|
| + return new Promise((resolve, reject) => {
|
| + setTimeout(() => resolve(), 0);
|
| + });
|
| +}
|
|
|