~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/tests/test_subscribers.js

[rs=buildbot-poller] automatic merge from stable. Revisions: 14253,
        14254, 14255, 14256, 14257, 14258, 14259 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
    setUp: function() {
13
13
        this.root = Y.Node.create('<div />');
14
14
        Y.one('body').appendChild(this.root);
 
15
        window.LP = {
 
16
            cache: {
 
17
                context:  {
 
18
                    bug_link: '/bug/1',
 
19
                    web_link: '/base'
 
20
                }
 
21
            }
 
22
        };
15
23
    },
16
24
 
17
25
    tearDown: function() {
18
26
        this.root.remove();
 
27
        delete window.LP;
19
28
    },
20
29
 
21
30
    setUpLoader: function() {
22
31
        this.root.appendChild(
23
32
            Y.Node.create('<div />').addClass('container'));
24
 
        var bug = { web_link: '/base', self_link: '/bug/1'};
25
33
        return new module.createBugSubscribersLoader({
26
34
            container_box: '.container',
27
 
            bug: bug,
28
35
            subscribers_details_view: '/+bug-portlet-subscribers-details'});
29
36
    },
30
37