aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-11-15 10:47:36 -0500
committerScott González <scott.gonzalez@gmail.com>2012-11-15 10:47:36 -0500
commit8c36603305bba105d03fe611c33e8ae5973b072b (patch)
treebace26ddb11ab473eb992615880498cdb9edc8b3 /tests/unit
parentfb6119e182ece9f2b5f94eb79b8763b602d04c47 (diff)
downloadjquery-ui-8c36603305bba105d03fe611c33e8ae5973b072b.tar.gz
jquery-ui-8c36603305bba105d03fe611c33e8ae5973b072b.zip
Dialog tests: Work around inconsistent handling of non-breaking spaces in IE7/8 with jQuery <1.8.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/dialog/dialog_options.js4
1 files 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 = $('<div></div>').dialog();
// some browsers return a non-breaking space and some return "&nbsp;"
- // 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(), $( "<span>&#160;</span>" ).html(), "[default]");
equal(el.dialog("option", "title"), "", "option not changed");
el.remove();