aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_events.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-20 11:06:11 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-20 11:06:11 -0400
commit308b55e50ca781ad9db08a252f313ee2e8e2f257 (patch)
treeb287b6936d45efdfe067d2bdf4c732b13a1726bd /tests/unit/dialog/dialog_events.js
parent2cf9948cadf45a24c591d6f7232f2470b4d9743e (diff)
parent33df9b788d3f60459c43acbfefdfeef8a07ce632 (diff)
downloadjquery-ui-308b55e50ca781ad9db08a252f313ee2e8e2f257.tar.gz
jquery-ui-308b55e50ca781ad9db08a252f313ee2e8e2f257.zip
Merge branch 'master' into position-notification
Diffstat (limited to 'tests/unit/dialog/dialog_events.js')
-rw-r--r--tests/unit/dialog/dialog_events.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/dialog/dialog_events.js b/tests/unit/dialog/dialog_events.js
index 4b769bafc..85afa5a3b 100644
--- a/tests/unit/dialog/dialog_events.js
+++ b/tests/unit/dialog/dialog_events.js
@@ -63,7 +63,8 @@ test("dragStart", function() {
test("drag", function() {
expect(9);
- var hasDragged = false;
+ var handle,
+ hasDragged = false;
el = $('<div></div>').dialog({
drag: function(ev, ui) {
@@ -83,7 +84,7 @@ test("drag", function() {
ok(ui.position !== undefined, "ui.position in callback");
ok(ui.offset !== undefined, "ui.offset in callback");
});
- var handle = $(".ui-dialog-titlebar", dlg());
+ handle = $(".ui-dialog-titlebar", dlg());
drag(handle, 50, 50);
el.remove();
});
@@ -138,7 +139,8 @@ test("resizeStart", function() {
test("resize", function() {
expect(13);
- var hasResized = false;
+ var handle,
+ hasResized = false;
el = $('<div></div>').dialog({
resize: function(ev, ui) {
@@ -162,7 +164,7 @@ test("resize", function() {
ok(ui.position !== undefined, "ui.position in callback");
ok(ui.size !== undefined, "ui.size in callback");
});
- var handle = $(".ui-resizable-se", dlg());
+ handle = $(".ui-resizable-se", dlg());
drag(handle, 50, 50);
el.remove();
});