Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/misc/resources/run-async-tasks-promise.js

Issue 2045183002: [DO NOT SUBMIT] [OBSOLETE] Add layout tests for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move PHP files to /misc/resources and factor out and rename runLoop(). Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/resources/gzip-content-encoding.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
+}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/resources/gzip-content-encoding.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698