Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1198)

Unified Diff: test/test_browser_search_view.js

Issue 9003043: Adds filter controls to the search in the browser
Patch Set: Adds filter controls to the search in the browser Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/test_browser_models.js ('k') | test/test_browser_search_widget.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test_browser_search_view.js
=== modified file 'test/test_browser_search_view.js'
--- test/test_browser_search_view.js 2013-04-24 01:22:31 +0000
+++ test/test_browser_search_view.js 2013-04-28 14:33:13 +0000
@@ -24,7 +24,9 @@
window.juju_config = {charmworldURL: 'http://localhost'};
container = Y.Node.create('<div id="container"></div>');
Y.one('body').append(container);
- view = new Y.juju.browser.views.BrowserSearchView({text: 'foo'});
+ view = new Y.juju.browser.views.BrowserSearchView({
+ filters: {text: 'foo'}
+ });
//
// Create monkeypatched store to verify right method is called.
apiURL = '';
@@ -72,7 +74,7 @@
});
it('handles empty text for search', function() {
- view.set('text', '');
+ view.set('filters', {text: ''});
view.render();
assert.equal('charms?text=', apiURL);
});
« no previous file with comments | « test/test_browser_models.js ('k') | test/test_browser_search_widget.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b