2017-01-10 18:02:20 -05:00
|
|
|
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, max-len */
|
2016-07-24 16:45:11 -04:00
|
|
|
|
2017-01-09 18:23:54 -05:00
|
|
|
require('~/behaviors/autosize');
|
2016-07-24 16:45:11 -04:00
|
|
|
|
|
|
|
(function() {
|
|
|
|
describe('Autosize behavior', function() {
|
|
|
|
var load;
|
|
|
|
beforeEach(function() {
|
2016-12-30 19:14:33 -05:00
|
|
|
return setFixtures('<textarea class="js-autosize" style="resize: vertical"></textarea>');
|
2016-07-24 16:45:11 -04:00
|
|
|
});
|
|
|
|
it('does not overwrite the resize property', function() {
|
|
|
|
load();
|
|
|
|
return expect($('textarea')).toHaveCss({
|
|
|
|
resize: 'vertical'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return load = function() {
|
2017-01-13 16:54:16 -05:00
|
|
|
return $(document).trigger('load');
|
2016-07-24 16:45:11 -04:00
|
|
|
};
|
|
|
|
});
|
2017-02-10 02:29:41 -05:00
|
|
|
}).call(window);
|