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

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

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs 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
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);
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698