From 0050f234a88e2dfa99aeab4ff26d233715a697e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 7 Sep 2010 09:49:58 -0400 Subject: [PATCH] Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string " ". --- tests/unit/dialog/dialog_options.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();