Skip to content

Commit 8c36603

Browse files
committed
Dialog tests: Work around inconsistent handling of non-breaking spaces in IE7/8 with jQuery <1.8.
1 parent fb6119e commit 8c36603

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/dialog/dialog_options.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ test("title", function() {
424424

425425
var el = $('<div></div>').dialog();
426426
// some browsers return a non-breaking space and some return "&nbsp;"
427-
// so we get the text to normalize to the actual non-breaking space
428-
equal(el.dialog('widget').find(".ui-dialog-title").text(), " ", "[default]");
427+
// so we generate a non-breaking space for comparison
428+
equal(titleText(), $( "<span>&#160;</span>" ).html(), "[default]");
429429
equal(el.dialog("option", "title"), "", "option not changed");
430430
el.remove();
431431

0 commit comments

Comments
 (0)