Skip to content

Commit

Permalink
FLUID-4500: Added one more unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cindyli committed Oct 5, 2011
1 parent 57e064d commit 045ef35
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -114,9 +114,13 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt

tests.test("getLineHeight", function () {
// Mimic IE with its DOM lineHeight structure
var container = [{currentStyle: {lineHeight: 10}}];
var container = [{currentStyle: {lineHeight: "10"}}];
var lineHeight = fluid.uiEnhancer.getLineHeight(container);
jqUnit.assertEquals("getLineHeight with IE simulation", 10, lineHeight);
jqUnit.assertEquals("getLineHeight with IE simulation", "10", lineHeight);

var container = [{currentStyle: {lineHeight: "14pt"}}];
var lineHeight = fluid.uiEnhancer.getLineHeight(container);
jqUnit.assertEquals("getLineHeight with IE simulation", "14pt", lineHeight);

container = $(".flt-lineSpacer");
lineHeight = fluid.uiEnhancer.getLineHeight(container);
Expand Down

0 comments on commit 045ef35

Please sign in to comment.