Sha256: db4d7cb5e9cdffd6929465aefd6025a2de760b5a42419fdecb52cd96015b3613

Contents?: true

Size: 767 Bytes

Versions: 62

Compression:

Stored size: 767 Bytes

Contents

(function () {
    'use strict';

    describe('WORKAREA.relevanceSort', function () {
        describe('init', function () {
            it('autoselects relevance on keyup', function () {
                this.fixtures = fixture.load('sort_form.html', true);

                var $input = $('input[name=q]', this.fixtures),
                    $select = $('select[name=sort]', this.fixtures);

                WORKAREA.relevanceSort.init($(this.fixtures));
                expect($select.val()).to.equal('name');

                $input.trigger('keyup');
                expect($select.val()).to.equal('name');

                $input.val('foo').trigger('keyup');
                expect($select.val()).to.equal('relevance');
            });
        });
    });
}());

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.4 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.26 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.3 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.25 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.2 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.24 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.1 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.23 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.22 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.0 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.21 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.0.beta.1 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.20 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.19 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.18 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.17 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.16 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.15 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.14 test/javascripts/relevance_sort_spec.js