~rharding/juju-gui/charm-details-1172050

« back to all changes in this revision

Viewing changes to test/test_browser_charm_details.js

Adds search functionality

This adds text search from the search widget
-Search widget propogates search text to browser subapp
-Subapp routes data to search view
-Search view does query from text
-Search view can render search results

As a driveby, this moves repeated apiFailure code out to an extension.

There is an issue outstanding:
-The querystring can be eaten by the routing code in some cases. A follow up
branch is in progress for this problem.

R=rharding, jeff.pihach, curtis
CC=
https://codereview.appspot.com/8910043

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
      delete window.juju_config;
47
47
    });
48
48
 
49
 
    // Ensure the search results are rendered inside the container.
50
49
    it('should be able to locate a readme file', function() {
51
50
      view = new CharmView({
52
51
        charm: new models.BrowserCharm({