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

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

Issue 2375223002: md-settings: Fix back navigation from /resetProfileSettings. (Closed)
Patch Set: Fix failing test. Created 4 years, 2 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
index 7e4f6777154442503aa3fecade97f888d1249790..85eb24d8266801b35fbaa4c63b273417b3318cc3 100644
--- a/chrome/test/data/webui/md_history/test_util.js
+++ b/chrome/test/data/webui/md_history/test_util.js
@@ -2,19 +2,6 @@
// 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() {
- Polymer.dom.flush();
- // Promises have microtask timing, so we use setTimeout to explicity force a
- // new task.
- return new Promise(function(resolve, reject) {
- window.setTimeout(resolve, 0);
- });
-}
-
/**
* Replace the current primary element of the test with a new element. Useful
* as an alternative to PolymerTest.clearBody() which preserves styling.
« no previous file with comments | « chrome/test/data/webui/md_history/history_toolbar_test.js ('k') | chrome/test/data/webui/polymer_browser_test_base.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698