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

Unified Diff: dashboard/dashboard/elements/autocomplete-box-test.html

Issue 2692243003: [dashboard] Use fuzzy autocomplete in autocomplete-box (Closed)
Patch Set: fix 2nd new presubmit Created 3 years, 10 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: dashboard/dashboard/elements/autocomplete-box-test.html
diff --git a/dashboard/dashboard/elements/autocomplete-box-test.html b/dashboard/dashboard/elements/autocomplete-box-test.html
index a77e9d03f57005dc0ecf624af3973a1108f54752..282c36f1a57dfa1fd5def4a4a8f18eb2e3f310a4 100644
--- a/dashboard/dashboard/elements/autocomplete-box-test.html
+++ b/dashboard/dashboard/elements/autocomplete-box-test.html
@@ -52,9 +52,9 @@ tr.b.unittest.testSuite(function() {
fixture.set('items', [this.foo, this.fooish, this.bar]);
fixture.set('query', '');
assert.deepEqual(fixture.get('suggestedItems'), [
+ {'name': 'Bar'},
{'name': 'Foo'},
{'name': 'Fooish'},
- {'name': 'Bar'},
]);
}, testOptions);
@@ -155,7 +155,7 @@ tr.b.unittest.testSuite(function() {
var cucumber = item('Cucumber');
fixture.set('items', [animals, lion, elephant, cucumber]);
fixture.selectItem(animals);
- assert.deepEqual(fixture.get('selectedItems'), [lion, elephant]);
+ assert.deepEqual(fixture.get('selectedItems'), [elephant, lion]);
fixture.selectItem(animals);
assert.deepEqual(fixture.get('selectedItems'), []);
fixture.selectItem(lion);
« no previous file with comments | « dashboard/dashboard/elements/autocomplete-box.html ('k') | dashboard/dashboard/static/fuzzy_autocomplete.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698