Sha256: 0e98dbe54e84dae5ce7a245ac21da0dc20536d2f251af36ca49260980e5a0e2c
Contents?: true
Size: 1.2 KB
Versions: 21
Compression:
Stored size: 1.2 KB
Contents
//= require workarea/core/modules/url //= require workarea/core/modules/form_submitting_controls (function () { 'use strict'; describe('WORKAREA.formSubmittingControls', function () { describe( 'init', function () { it('submits a form on change', function (done) { this.fixture = fixture.load('form_submitting_controls.html'); WORKAREA.formSubmittingControls.init($(this.fixture)); $('select[data-form-submitting-control]').val('3').trigger('change'); $('#form-submitting-controls').on('submit', function (event) { event.preventDefault(); done(); }); }); it('submits a form on input', function (done) { this.fixture = fixture.load('form_submitting_controls.html'); WORKAREA.formSubmittingControls.init($(this.fixture)); $('input[data-form-submitting-control]').val('foo').trigger('input'); $('#form-submitting-controls').on('submit', function (event) { event.preventDefault(); done(); }); }); }); }); }());
Version data entries
21 entries across 21 versions & 1 rubygems