File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,12 @@ describe('\njqLite: testing against jQuery\n', function () {
89
89
'<div style="padding: 3em">some text w padding</div>' ,
90
90
'<div style="margin: 3px">some text w margin</div>' ,
91
91
'<div style="margin: 3em">some text w margin</div>' ,
92
- '<div style="margin: 3pt">some text w margin</div>' ,
93
- '<div style="line-height: 1.1em">some text w line height</div>'
92
+ '<div style="margin: 3pt">some text w margin</div>'
94
93
] , function ( element ) {
95
94
96
- /*function validateHeight(element) {
97
- expect(extras.prototype.height.call(element)).toBe(element.height());
98
- var h = element.height();
99
- extras.prototype.height.call(element, h*2);
100
- expect(extras.prototype.height.call(element)).toBe(h*2);
101
- }*/
95
+ // Since jQuery v3 the .hegth() results don't being rounded (https://github.com/jquery/jquery/pull/2454).
96
+ // So the element '<div style="line-height: 1.1em">some text w line height</div>' will cause the error --
97
+ // Expected 18 to be 17.6
102
98
103
99
it ( 'height(value) for ' + element , function ( ) {
104
100
( function ( element ) {
You can’t perform that action at this time.
0 commit comments