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.15 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.36 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.14 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.35 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.13 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.34 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.12 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.33 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.11 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.10 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.32 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.9 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.31 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.8 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.30 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.7 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.29 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.6 test/javascripts/relevance_sort_spec.js
workarea-admin-3.4.28 test/javascripts/relevance_sort_spec.js
workarea-admin-3.5.5 test/javascripts/relevance_sort_spec.js