~rharding/juju-gui/renderBundle2

« back to all changes in this revision

Viewing changes to test/test_browser_editorial.js

  • Committer: j.c.sackett
  • Date: 2013-08-27 14:14:38 UTC
  • mfrom: (972.2.7 remove-categories)
  • Revision ID: jcsackett@canonical.com-20130827141438-rl31q45aaqczpf4n
Removes the category links on editorial.

* Category links removed from editorial template
* Category Partial deleted
* Category link events and tests removed.

R=matthew.scott, rharding
CC=
https://codereview.appspot.com/12741050

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
      assert(node.all('.yui3-charmtoken-hidden').size() === 14);
141
141
    });
142
142
 
143
 
    it('does a search when a category link is clicked', function(done) {
144
 
      view = new EditorialView({
145
 
        renderTo: Y.one('.bws-content')
146
 
      });
147
 
      var results = {
148
 
        featuredCharms: [],
149
 
        newCharms: [],
150
 
        popularCharms: []
151
 
      };
152
 
      view.on('viewNavigate', function(ev) {
153
 
        assert.isTrue(ev.change.search);
154
 
        assert.equal(1, ev.change.filter.categories.length);
155
 
        assert.equal('databases', ev.change.filter.categories[0]);
156
 
        assert.equal(ev.change.filter.replace, true);
157
 
        done();
158
 
      });
159
 
      view.render(results);
160
 
      Y.one('#category-links').one('a').simulate('click');
161
 
    });
162
 
 
163
143
    it('clicking a charm navigates for fullscreen', function(done) {
164
144
      fakeStore = new Y.juju.Charmworld2({});
165
145
      fakeStore.set('datasource', {