diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index 8e597ffe7..11e1f4a8e 100644 --- a/tests/unit/dialog/dialog_options.js +++ b/tests/unit/dialog/dialog_options.js @@ -401,7 +401,9 @@ test("title", function() { } el = $('
').dialog(); - equals(titleText(), " ", "[default]"); + // some browsers return a non-breaking space and some return " " + // so we get the text to normalize to the actual non-breaking space + equals(dlg().find(".ui-dialog-title").text(), " ", "[default]"); equals(el.dialog("option", "title"), "", "option not changed"); el.remove();