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

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

Issue 2126173002: [MD History] Add 2-way binding to query state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_shit
Patch Set: rebase 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 | « chrome/browser/resources/md_history/app.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/history_toolbar_test.js
diff --git a/chrome/test/data/webui/md_history/history_toolbar_test.js b/chrome/test/data/webui/md_history/history_toolbar_test.js
index 6eb61f63dd092eba2d632b219bdb81cd9421ce43..5383fd1d824af25175838f5376508dd0f4a39c5f 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -45,7 +45,7 @@ cr.define('md_history.history_toolbar_test', function() {
test('search term gathered correctly from toolbar', function(done) {
app.queryState_.queryingDisabled = false;
registerMessageCallback('queryHistory', this, function (info) {
- assertEquals(info[0], 'Test');
+ assertEquals('Test', info[0]);
done();
});
@@ -70,7 +70,19 @@ cr.define('md_history.history_toolbar_test', function() {
document.body, 70, 'ctrl', 'f');
assertTrue(field.showingSearch);
assertEquals(field.$.searchInput, field.root.activeElement);
- });
+ });
+
+ test('spinner is active on search' , function(done) {
+ app.queryState_.queryingDisabled = false;
+ registerMessageCallback('queryHistory', this, function (info) {
+ assertTrue(toolbar.spinnerActive);
+ app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
+ assertFalse(toolbar.spinnerActive);
+ done();
+ });
+
+ toolbar.$$('cr-toolbar').fire('search-changed', 'Test2');
+ });
teardown(function() {
element.historyData_ = [];
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698