From 6153eb0fd401cda90bf2007335cd4338093d38f0 Mon Sep 17 00:00:00 2001 From: Jason Bedard Date: Mon, 20 Aug 2018 21:13:33 -0700 Subject: [PATCH] Tests: use width style instead of SVG width attribute (#4157) The SVG width attribute seems to not support border-box in iOS7. Closes gh-4155 --- test/unit/dimensions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 8c7f0752f..ea7793ff9 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -355,7 +355,7 @@ QUnit.test( "table dimensions", function( assert ) { QUnit.test( "SVG dimensions (basic content-box)", function( assert ) { assert.expect( 8 ); - var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); + var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); assert.equal( svg.width(), 100 ); assert.equal( svg.height(), 100 ); @@ -375,7 +375,7 @@ QUnit.test( "SVG dimensions (basic content-box)", function( assert ) { QUnit.test( "SVG dimensions (content-box)", function( assert ) { assert.expect( 8 ); - var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); + var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); assert.equal( svg.width(), 100 ); assert.equal( svg.height(), 100 ); @@ -395,7 +395,7 @@ QUnit.test( "SVG dimensions (content-box)", function( assert ) { QUnit.test( "SVG dimensions (border-box)", function( assert ) { assert.expect( 8 ); - var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); + var svg = jQuery( "" ).appendTo( "#qunit-fixture" ); assert.equal( svg.width(), 94 ); assert.equal( svg.height(), 94 ); -- 2.39.5