updated bower components
- updated bootstrap-datepicker to 1.9.0 - updated chart.js to 1.1.1 - updated ckeditor to 4.12.1 - updated jquery to 3.4.1 - updated raphael to 2.2.7 - updated select2 to 4.0.8
This commit is contained in:
@@ -64,3 +64,21 @@ test('resolve falls back to element if there is no style', function (assert) {
|
||||
|
||||
assert.equal(width, '500px');
|
||||
});
|
||||
|
||||
test('computedstyle gets the style if parent is invisible', function (assert) {
|
||||
var $style = $(
|
||||
'<style type="text/css">.css-set-width { width: 500px; }</style>'
|
||||
);
|
||||
var $test = $(
|
||||
'<div style="display:none;">' +
|
||||
'<select class="css-set-width"></select>' +
|
||||
'</div>'
|
||||
);
|
||||
|
||||
$('#qunit-fixture').append($style);
|
||||
$('#qunit-fixture').append($test);
|
||||
|
||||
var width = select._resolveWidth($test.find('select'), 'computedstyle');
|
||||
|
||||
assert.equal(width, '500px');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user