~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/javascript/tests/test_picker.js

[r=sinzui][bug=798772] Reorders elements in picker so batch nav is
        below results.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
        Assert.isTrue(got_focus, "focus didn't go to the search input.");
162
162
    },
163
163
 
 
164
    test_navigation_renders_after_results: function () {
 
165
        // We modify the base picker to show the batch navigation below the
 
166
        // picker results.
 
167
        this.create_picker();
 
168
        this.picker.set('results', this.vocabulary);
 
169
        var results_box = this.picker._results_box;
 
170
        var batch_box = this.picker._batches_box;
 
171
        Assert.areEqual(results_box.next(), batch_box);
 
172
    },
 
173
 
164
174
    test_confirmation_yes: function() {
165
175
        // The picker saves the selected value if the user answers
166
176
        // "Yes" to a confirmation request.