]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed test for default title. Some browsers were returning an actual non...
authorScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 13:49:58 +0000 (09:49 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 13:49:58 +0000 (09:49 -0400)
tests/unit/dialog/dialog_options.js

index 8e597ffe772c6ba2bcd97a93c9efc232039e5c8d..11e1f4a8ef313f9d7e21059aa66da82597b5e276 100644 (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();