aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-07-12 00:14:19 +0000
committerScott González <scott.gonzalez@gmail.com>2008-07-12 00:14:19 +0000
commitac6189fd5758e8c98c40d4fc1274cb4202b35cb5 (patch)
treec53280f7812fefbdec0ac21e665f29993022bb68 /tests/dialog.js
parent3bc322fd375e5f26c39d9620a64e0788f18acef5 (diff)
downloadjquery-ui-ac6189fd5758e8c98c40d4fc1274cb4202b35cb5.tar.gz
jquery-ui-ac6189fd5758e8c98c40d4fc1274cb4202b35cb5.zip
Dialog: Fixed #3013: Force dialog titlebars to have a full line height when no title is provided (after initialization).
Diffstat (limited to 'tests/dialog.js')
-rw-r--r--tests/dialog.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dialog.js b/tests/dialog.js
index 56be158b6..5cd1f1250 100644
--- a/tests/dialog.js
+++ b/tests/dialog.js
@@ -376,9 +376,9 @@ test("stack", function() {
test("title", function() {
expect(4);
function titleText() {
- return dlg().find(".ui-dialog-title").text();
+ return dlg().find(".ui-dialog-title").html();
}
- el = $('<div/>').dialog(); equals(titleText(), "", "[default]"); el.remove();
+ el = $('<div/>').dialog(); equals(titleText(), "&nbsp;", "[default]"); el.remove();
el = $('<div title="foo"/>').dialog(); equals(titleText(), "foo", "title in element attribute"); el.remove();
el = $('<div/>').dialog({ title: 'foo' }); equals(titleText(), "foo", "title in init options"); el.remove();
el = $('<div title="foo"/>').dialog({ title: 'bar' }); equals(titleText(), "bar", "title in init options should override title in element attribute"); el.remove();