From 8c36603305bba105d03fe611c33e8ae5973b072b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 15 Nov 2012 10:47:36 -0500 Subject: [PATCH] Dialog tests: Work around inconsistent handling of non-breaking spaces in IE7/8 with jQuery <1.8. --- tests/unit/dialog/dialog_options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index c58cf6915..331230318 100644 --- a/tests/unit/dialog/dialog_options.js +++ b/tests/unit/dialog/dialog_options.js @@ -424,8 +424,8 @@ test("title", function() { var el = $('
').dialog(); // some browsers return a non-breaking space and some return " " - // so we get the text to normalize to the actual non-breaking space - equal(el.dialog('widget').find(".ui-dialog-title").text(), " ", "[default]"); + // so we generate a non-breaking space for comparison + equal(titleText(), $( " " ).html(), "[default]"); equal(el.dialog("option", "title"), "", "option not changed"); el.remove(); -- 2.39.5