@@ -247,7 +247,7 @@ QUnit.test( "nested resizable", function( assert ) {
247
247
QUnit . test ( "Resizable with scrollbars and box-sizing: border-box" , function ( assert ) {
248
248
assert . expect ( 4 ) ;
249
249
250
- var style = $ ( "<style> * { box-sizing: border-box; } </style>" ) . appendTo ( "head " ) ;
250
+ $ ( "<style> * { box-sizing: border-box; } </style>" ) . appendTo ( "#qunit-fixture " ) ;
251
251
252
252
//Both scrollbars
253
253
var elementContent = $ ( "<div>" )
@@ -272,14 +272,12 @@ QUnit.test( "Resizable with scrollbars and box-sizing: border-box", function( as
272
272
testHelper . drag ( handle , 10 , 10 ) ;
273
273
assert . equal ( element . width ( ) , 120 , "element width (only vertical scrollbar)" ) ;
274
274
assert . equal ( element . height ( ) , 120 , "element height (only vertical scrollbar)" ) ;
275
-
276
- style . remove ( ) ;
277
275
} ) ;
278
276
279
277
QUnit . test ( "Resizable with scrollbars and box-sizing: content-box" , function ( assert ) {
280
278
assert . expect ( 4 ) ;
281
279
282
- var style = $ ( "<style> * { box-sizing: content-box; } </style>" ) . appendTo ( "head " ) ;
280
+ $ ( "<style> * { box-sizing: content-box; } </style>" ) . appendTo ( "#qunit-fixture " ) ;
283
281
284
282
//Both scrollbars
285
283
var elementContent = $ ( "<div>" )
@@ -309,14 +307,12 @@ QUnit.test( "Resizable with scrollbars and box-sizing: content-box", function( a
309
307
testHelper . drag ( handle , 10 , 10 ) ;
310
308
assert . equal ( parseFloat ( element . innerWidth ( ) ) , widthBefore + 20 , "element width (only vertical scrollbar)" ) ;
311
309
assert . equal ( parseFloat ( element . innerHeight ( ) ) , heightBefore + 20 , "element height (only vertical scrollbar)" ) ;
312
-
313
- style . remove ( ) ;
314
310
} ) ;
315
311
316
312
QUnit . test ( "Resizable with scrollbars, a transform and box-sizing: border-box" , function ( assert ) {
317
313
assert . expect ( 4 ) ;
318
314
319
- var style = $ ( "<style> * { box-sizing: border-box; } </style>" ) . appendTo ( "head " ) ;
315
+ $ ( "<style> * { box-sizing: border-box; } </style>" ) . appendTo ( "#qunit-fixture " ) ;
320
316
321
317
//Both scrollbars
322
318
var elementContent = $ ( "<div>" )
@@ -341,14 +337,12 @@ QUnit.test( "Resizable with scrollbars, a transform and box-sizing: border-box",
341
337
testHelper . drag ( handle , 10 , 10 ) ;
342
338
assert . equal ( element . width ( ) , 120 , "element width (only vertical scrollbar)" ) ;
343
339
assert . equal ( element . height ( ) , 120 , "element height (only vertical scrollbar)" ) ;
344
-
345
- style . remove ( ) ;
346
340
} ) ;
347
341
348
342
QUnit . test ( "Resizable with scrollbars, a transform and box-sizing: content-box" , function ( assert ) {
349
343
assert . expect ( 4 ) ;
350
344
351
- var style = $ ( "<style> * { box-sizing: content-box; } </style>" ) . appendTo ( "head " ) ;
345
+ $ ( "<style> * { box-sizing: content-box; } </style>" ) . appendTo ( "#qunit-fixture " ) ;
352
346
353
347
//Both scrollbars
354
348
var elementContent = $ ( "<div>" )
@@ -378,8 +372,6 @@ QUnit.test( "Resizable with scrollbars, a transform and box-sizing: content-box"
378
372
testHelper . drag ( handle , 10 , 10 ) ;
379
373
assert . equal ( parseFloat ( element . innerWidth ( ) ) , widthBefore + 20 , "element width (only vertical scrollbar)" ) ;
380
374
assert . equal ( parseFloat ( element . innerHeight ( ) ) , heightBefore + 20 , "element height (only vertical scrollbar)" ) ;
381
-
382
- style . remove ( ) ;
383
375
} ) ;
384
376
385
377
} ) ;
0 commit comments