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

Unified Diff: chrome/test/data/webui/md_history/test_util.js

Issue 1572383006: MD History: Hook all elements into the page and add tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch
Patch Set: Rebase. Created 4 years, 11 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: chrome/test/data/webui/md_history/test_util.js
diff --git a/chrome/test/data/webui/md_history/test_util.js b/chrome/test/data/webui/md_history/test_util.js
new file mode 100644
index 0000000000000000000000000000000000000000..acb77f4d03142d9242589f033837ae2174594dd1
--- /dev/null
+++ b/chrome/test/data/webui/md_history/test_util.js
@@ -0,0 +1,12 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/*
+ * Waits for queued up tasks to finish before proceeding. Inspired by:
+ * https://github.com/Polymer/web-component-tester/blob/master/browser/environment/helpers.js#L97
+ */
+function flush(callback) {
+ Polymer.dom.flush();
+ window.setTimeout(callback, 0);
+}
« no previous file with comments | « chrome/test/data/webui/md_history/md_history_browsertest.js ('k') | third_party/closure_compiler/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698