Skip to content
Permalink
Browse files

Dialog: Fixed test for default title. Some browsers were returning an…

… actual non-breaking space and some were returning the string " ".
  • Loading branch information...
scottgonzalez committed Sep 7, 2010
1 parent 52e543a commit 0050f234a88e2dfa99aeab4ff26d233715a697e9
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/unit/dialog/dialog_options.js
@@ -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();

0 comments on commit 0050f23

Please sign in to comment.
You can’t perform that action at this time.