Sha256: cbc963273de435835f36f6c832cc8f9bfcfb9a47ff8f5ce2ad0758bd816b998c

Contents?: true

Size: 952 Bytes

Versions: 62

Compression:

Stored size: 952 Bytes

Contents

(function () {
    'use strict';

    describe('WORKAREA.addContentBlockButtons', function () {
        describe('reorder', function () {
            it('updates the position param for each content block add button', function () {
                this.fixtures = fixture.load('add_content_block_button.html');

                WORKAREA.addContentBlockButtons.reorder();
                var $links = $('#content_editor a');

                expect(_.includes($links[0].href, 'position=2')).to.equal(true);
                expect(_.includes($links[1].href, 'position=3')).to.equal(true);
                expect(_.includes($links[2].href, 'position=1')).to.equal(true);
                expect(_.includes($links[3].href, 'position=2')).to.equal(true);
                expect(_.includes($links[4].href, 'position=0')).to.equal(true);
                expect(_.includes($links[5].href, 'position=1')).to.equal(true);
            });
        });
    });
}());

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.26 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.45 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.25 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.23 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.44 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.22 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.43 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.21 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.42 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.20 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.41 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.19 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.40 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.18 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.39 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.17 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.38 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.5.16 test/javascripts/add_content_block_buttons_spec.js
workarea-admin-3.4.37 test/javascripts/add_content_block_buttons_spec.js