Skip to content

Commit 0050f23

Browse files
committed
Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string " ".
1 parent 52e543a commit 0050f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/dialog/dialog_options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ test("title", function() {
401401
}
402402

403403
el = $('<div></div>').dialog();
404-
equals(titleText(), "&nbsp;", "[default]");
404+
// some browsers return a non-breaking space and some return "&nbsp;"
405+
// so we get the text to normalize to the actual non-breaking space
406+
equals(dlg().find(".ui-dialog-title").text(), " ", "[default]");
405407
equals(el.dialog("option", "title"), "", "option not changed");
406408
el.remove();
407409

0 commit comments

Comments
 (0)