mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
52e543a637
commit
0050f234a8
@ -401,7 +401,9 @@ test("title", function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
el = $('<div></div>').dialog();
|
el = $('<div></div>').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");
|
equals(el.dialog("option", "title"), "", "option not changed");
|
||||||
el.remove();
|
el.remove();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user