From: Scott González Date: Tue, 7 Sep 2010 13:49:58 +0000 (-0400) Subject: Dialog: Fixed test for default title. Some browsers were returning an actual non... X-Git-Tag: 1.8.5~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0050f234a88e2dfa99aeab4ff26d233715a697e9;p=jquery-ui.git Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string " ". --- 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();