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.5.27 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.26 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.45 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.25 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.23 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.44 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.22 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.43 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.21 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.42 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.20 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.41 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.19 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.40 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.18 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.39 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.17 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.38 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.16 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.37 test/javascripts/relevance_sort_spec.js