2016-11-15 09:08:06 -05:00
|
|
|
/* eslint-disable space-before-function-paren, no-var, comma-dangle, no-return-assign, padded-blocks, max-len */
|
2016-07-24 16:45:11 -04:00
|
|
|
|
|
|
|
/*= require behaviors/autosize */
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
describe('Autosize behavior', function() {
|
|
|
|
var load;
|
|
|
|
beforeEach(function() {
|
|
|
|
return fixture.set('<textarea class="js-autosize" style="resize: vertical"></textarea>');
|
|
|
|
});
|
|
|
|
it('does not overwrite the resize property', function() {
|
|
|
|
load();
|
|
|
|
return expect($('textarea')).toHaveCss({
|
|
|
|
resize: 'vertical'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return load = function() {
|
|
|
|
return $(document).trigger('page:load');
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
}).call(this);
|