aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-03-16 21:49:29 +0100
committerGitHub <noreply@github.com>2020-03-16 21:49:29 +0100
commit90fed4b453a5becdb7f173d9e3c1492390a1441f (patch)
tree1415e8746489af4d26b31b422cb9b3db95497cb2 /test/unit/dimensions.js
parent5b94a4f847fe2328b1b8f2340b11b6031f95d2d1 (diff)
downloadjquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.tar.gz
jquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.zip
Manipulation: Make jQuery.htmlPrefilter an identity function
Closes gh-4642
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 35fd13151..280a54ebc 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -342,7 +342,7 @@ QUnit.test( "getting dimensions shouldn't modify runtimeStyle see #9233", functi
QUnit.test( "table dimensions", function( assert ) {
assert.expect( 2 );
- var table = jQuery( "<table><colgroup><col/><col/></colgroup><tbody><tr><td></td><td>a</td></tr><tr><td></td><td>a</td></tr></tbody></table>" ).appendTo( "#qunit-fixture" ),
+ var table = jQuery( "<table><colgroup><col></col><col></col></colgroup><tbody><tr><td></td><td>a</td></tr><tr><td></td><td>a</td></tr></tbody></table>" ).appendTo( "#qunit-fixture" ),
tdElem = table.find( "td" ).first(),
colElem = table.find( "col" ).first().width( 300 );
@@ -536,7 +536,7 @@ QUnit.test( "allow modification of coordinates argument (gh-1848)", function( as
assert.expect( 1 );
var offsetTop,
- element = jQuery( "<div/>" ).appendTo( "#qunit-fixture" );
+ element = jQuery( "<div></div>" ).appendTo( "#qunit-fixture" );
element.offset( function( index, coords ) {
coords.top = 100;
@@ -583,7 +583,7 @@ QUnit.test( "width/height on element with transform (gh-3193)", function( assert
assert.expect( 2 );
- var $elem = jQuery( "<div style='width: 200px; height: 200px; transform: scale(2);' />" )
+ var $elem = jQuery( "<div style='width: 200px; height: 200px; transform: scale(2);'></div>" )
.appendTo( "#qunit-fixture" );
assert.equal( $elem.width(), 200, "Width ignores transforms" );
@@ -663,7 +663,7 @@ QUnit.test( "interaction with scrollbars (gh-3589)", function( assert ) {
return old + adjustment;
};
},
- parent = jQuery( "<div/>" )
+ parent = jQuery( "<div></div>" )
.css( { position: "absolute", width: "1000px", height: "1000px" } )
.appendTo( "#qunit-fixture" ),
@@ -672,7 +672,7 @@ QUnit.test( "interaction with scrollbars (gh-3589)", function( assert ) {
borderWidth = 1,
padding = 2,
size = 100 + fraction,
- plainBox = jQuery( "<div />" )
+ plainBox = jQuery( "<div></div>" )
.css( {
"box-sizing": "content-box",
position: "absolute",
@@ -747,23 +747,23 @@ QUnit.test( "interaction with scrollbars (gh-3589)", function( assert ) {
QUnit.test( "outerWidth/Height for table cells and textarea with border-box in IE 11 (gh-4102)", function( assert ) {
assert.expect( 5 );
- var $table = jQuery( "<table class='border-box' style='border-collapse: separate' />" ).appendTo( "#qunit-fixture" ),
- $thead = jQuery( "<thead />" ).appendTo( $table ),
- $firstTh = jQuery( "<th style='width: 200px;padding: 5px' />" ),
- $secondTh = jQuery( "<th style='width: 190px;padding: 5px' />" ),
- $thirdTh = jQuery( "<th style='width: 180px;padding: 5px' />" ),
+ var $table = jQuery( "<table class='border-box' style='border-collapse: separate'></table>" ).appendTo( "#qunit-fixture" ),
+ $thead = jQuery( "<thead></thead>" ).appendTo( $table ),
+ $firstTh = jQuery( "<th style='width: 200px;padding: 5px'></th>" ),
+ $secondTh = jQuery( "<th style='width: 190px;padding: 5px'></th>" ),
+ $thirdTh = jQuery( "<th style='width: 180px;padding: 5px'></th>" ),
// Most browsers completely ignore the border-box and height settings.
// The computed height is instead just line-height + border.
// Either way, what we're doing in css.js is correct.
$td = jQuery( "<td style='height: 20px;padding: 5px;border: 1px solid;line-height:18px'>text</td>" ),
- $tbody = jQuery( "<tbody />" ).appendTo( $table ),
- $textarea = jQuery( "<textarea style='height: 0;padding: 2px;border: 1px solid;box-sizing: border-box' />" ).appendTo( "#qunit-fixture" );
+ $tbody = jQuery( "<tbody></tbody>" ).appendTo( $table ),
+ $textarea = jQuery( "<textarea style='height: 0;padding: 2px;border: 1px solid;box-sizing: border-box'></textarea>" ).appendTo( "#qunit-fixture" );
- jQuery( "<tr />" ).appendTo( $thead ).append( $firstTh );
- jQuery( "<tr />" ).appendTo( $thead ).append( $secondTh );
- jQuery( "<tr />" ).appendTo( $thead ).append( $thirdTh );
+ jQuery( "<tr></tr>" ).appendTo( $thead ).append( $firstTh );
+ jQuery( "<tr></tr>" ).appendTo( $thead ).append( $secondTh );
+ jQuery( "<tr></tr>" ).appendTo( $thead ).append( $thirdTh );
jQuery( "<tr><td></td></tr>" ).appendTo( $tbody ).append( $td );
assert.strictEqual( $firstTh.outerWidth(), 200, "First th has outerWidth 200." );