~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-01 06:01:37 UTC
  • mfrom: (14382.1.13 person-bug-listings)
  • Revision ID: launchpad@pqm.canonical.com-20111201060137-clw9qzmhigspsxx3
[r=bac][bug=887232] Implement JavaScript functionality on Person bug
 listings

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
                resource_type_link: 'http://foo_type',
220
220
                web_link: 'http://foo/bar'
221
221
            },
 
222
            view_name: '+bugs',
222
223
            mustache_model: {
223
224
                foo: 'bar',
224
225
                bugtasks: []
448
449
            resource_type_link: 'http://foo_type',
449
450
            web_link: 'http://foo/bar'
450
451
        },
 
452
        view_name: '+bugs',
451
453
        next: {
452
454
            memo: 467,
453
455
            start: 500
483
485
suite.add(new Y.Test.Case({
484
486
    name: 'navigation',
485
487
 
 
488
    test_model_uses_view_name: function(){
 
489
        var navigator = get_navigator('');
 
490
        navigator.get('current_batch').view_name = '+funbugs';
 
491
        navigator.load_model({});
 
492
        Y.Assert.areSame(
 
493
            '/bar/+funbugs/++model++',
 
494
            navigator.get('io_provider').last_request.url);
 
495
    },
 
496
 
486
497
    /**
487
498
     * last_batch uses memo="", start=navigator.current_batch.last_start,
488
499
     * direction=backwards, orderby=navigator.current_batch.order_by.
672
683
                resource_type_link: 'http://foo_type',
673
684
                web_link: 'http://foo/bar'
674
685
            },
675
 
            next: {memo: 57, start: 56}});
 
686
            next: {memo: 57, start: 56},
 
687
            view_name: '+bugs'
 
688
        });
676
689
        navigator.set('current_batch', batch);
677
690
        return navigator;
678
691
    },
724
737
                resource_type_link: 'http://foo_type',
725
738
                web_link: 'http://foo/bar'
726
739
            },
 
740
            view_name: '+bugs',
727
741
            order_by: 'baz',
728
742
            memo: 'memo1',
729
743
            next: {