Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam atque cum dolor explicabo incidunt. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam atque cum dolor explicabo incidunt.
{"ScriptPreparationCode":"function getJqueryHeight(input) {\r\n var $input = $(input);\r\n var $wrapper = $(\u0027\u003Cdiv\u003E\u0027).css({\r\n width: $input.width(),\r\n height: \u002799999999px\u0027,\r\n display: \u0027block\u0027,\r\n position: \u0027absolute\u0027\r\n });\r\n $input.css({\r\n display: \u0027inline\u0027\r\n }).wrap($wrapper);\r\n var result = $input.height();\r\n $input.css({\r\n display: \u0027\u0027\r\n });\r\n $input.unwrap();\r\n return result;\r\n }\r\n\r\n\r\n function getJqueryWidth(input) {\r\n var $input = $(input);\r\n var $wrapper = $(\u0027\u003Cdiv\u003E\u0027).css({\r\n width: \u002799999999px\u0027,\r\n height: $input.height(),\r\n display: \u0027block\u0027,\r\n position: \u0027absolute\u0027\r\n });\r\n $input.css({\r\n display: \u0027inline\u0027\r\n }).wrap($wrapper);\r\n var text = $input.html();\r\n $input.html($input.text());\r\n var result = $input.width();\r\n $input.html(text);\r\n $input.css({\r\n display: \u0027\u0027\r\n });\r\n $input.unwrap();\r\n return result;\r\n }\r\n\r\n function getTmHeight(input) {\r\n return textMetrics(input).height();\r\n }\r\n\r\n\r\n function getTmWidth(input) {\r\n return textMetrics(input).width();\r\n }\r\n\r\n var testEl = document.getElementById(\u0027test\u0027);","TestCases":[{"Name":"jQuery width","Code":"getJqueryWidth(testEl)","IsDeferred":false},{"Name":"jQuery height","Code":"getJqueryHeight(testEl)","IsDeferred":false},{"Name":"text-metrics width","Code":"getTmWidth(testEl)","IsDeferred":false},{"Name":"text-metrics height","Code":"getTmHeight(testEl)","IsDeferred":false}]}