diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-09-07 09:49:58 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-07 09:49:58 -0400 |
commit | 0050f234a88e2dfa99aeab4ff26d233715a697e9 (patch) | |
tree | bfced931af9395e76b2e8e1c246ad8f5e0feb278 /tests/unit/dialog | |
parent | 52e543a63760d9e9ca17e04e796ca80646326f4a (diff) | |
download | jquery-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 " ".
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r-- | tests/unit/dialog/dialog_options.js | 4 |
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(), " ", "[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(); |