aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-09-07 09:49:58 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-07 09:49:58 -0400
commit0050f234a88e2dfa99aeab4ff26d233715a697e9 (patch)
treebfced931af9395e76b2e8e1c246ad8f5e0feb278 /tests/unit/dialog
parent52e543a63760d9e9ca17e04e796ca80646326f4a (diff)
downloadjquery-ui-0050f234a88e2dfa99aeab4ff26d233715a697e9.tar.gz
jquery-ui-0050f234a88e2dfa99aeab4ff26d233715a697e9.zip
Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string "&nbsp;".
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r--tests/unit/dialog/dialog_options.js4
1 files changed, 3 insertions, 1 deletions
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 = $('<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();