Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string " ".

This commit is contained in:
Scott González 2010-09-07 09:49:58 -04:00
parent 52e543a637
commit 0050f234a8

View File

@ -401,7 +401,9 @@ test("title", function() {
}
el = $('<div></div>').dialog();
equals(titleText(), "&nbsp;", "[default]");
// some browsers return a non-breaking space and some return "&nbsp;"
// 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();