aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-03 21:43:52 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-03 21:43:52 -0400
commit6fb68568bea4fcaf0caff77363819b3d7c732cd4 (patch)
tree9a869c658b574eda6668fce064ed02c7047c2000 /tests/unit/dialog
parentcff6b56fd429b0be2e1668a26b362775263f8925 (diff)
downloadjquery-ui-6fb68568bea4fcaf0caff77363819b3d7c732cd4.tar.gz
jquery-ui-6fb68568bea4fcaf0caff77363819b3d7c732cd4.zip
Tests: Cleanup.
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r--tests/unit/dialog/dialog_core.js4
-rw-r--r--tests/unit/dialog/dialog_options.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/dialog/dialog_core.js b/tests/unit/dialog/dialog_core.js
index aec3e22be..2003689e9 100644
--- a/tests/unit/dialog/dialog_core.js
+++ b/tests/unit/dialog/dialog_core.js
@@ -106,7 +106,7 @@ test("title id", function() {
equals(titleId, 'ui-dialog-title-2', 'auto-numbered title id');
el.remove();
- el = $('<div id="foo"/>').dialog();
+ el = $('<div id="foo">').dialog();
titleId = dlg().find('.ui-dialog-title').attr('id');
equals(titleId, 'ui-dialog-title-foo', 'carried over title id');
el.remove();
@@ -131,7 +131,7 @@ test("ARIA", function() {
});
test("widget method", function() {
- var dialog = $("<div/>").appendTo("#main").dialog();
+ var dialog = $("<div>").appendTo("#main").dialog();
same(dialog.parent()[0], dialog.dialog("widget")[0]);
});
diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js
index 5705da079..eab577c69 100644
--- a/tests/unit/dialog/dialog_options.js
+++ b/tests/unit/dialog/dialog_options.js
@@ -407,7 +407,7 @@ test("title", function() {
equals(el.dialog("option", "title"), "", "option not changed");
el.remove();
- el = $('<div title="foo"/>').dialog();
+ el = $('<div title="foo">').dialog();
equals(titleText(), "foo", "title in element attribute");
equals(el.dialog("option", "title"), "foo", "option updated from attribute");
el.remove();
@@ -417,7 +417,7 @@ test("title", function() {
equals(el.dialog("option", "title"), "foo", "opiton set from options hash");
el.remove();
- el = $('<div title="foo"/>').dialog({ title: 'bar' });
+ el = $('<div title="foo">').dialog({ title: 'bar' });
equals(titleText(), "bar", "title in init options should override title in element attribute");
equals(el.dialog("option", "title"), "bar", "opiton set from options hash");
el.remove();