diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-04-19 10:27:06 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-04-19 10:28:26 -0400 |
commit | 0a5a9090f827cd186ac486344327bcbb3901fd34 (patch) | |
tree | 085dfcb5a99db48b464bff91e112a37cf6e206af /tests/unit/dialog/dialog_methods.js | |
parent | 58a120bb4b022b3d2237aabaa960e42d9fe821ba (diff) | |
download | jquery-ui-0a5a9090f827cd186ac486344327bcbb3901fd34.tar.gz jquery-ui-0a5a9090f827cd186ac486344327bcbb3901fd34.zip |
Tests: Lint.
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r-- | tests/unit/dialog/dialog_methods.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js index 645baa9f5..1f84cd6b5 100644 --- a/tests/unit/dialog/dialog_methods.js +++ b/tests/unit/dialog/dialog_methods.js @@ -98,14 +98,17 @@ test("isOpen", function() { }); test("moveToTop", function() { - var expected = $('<div></div>').dialog(), + var d1, d2, dlg1, dlg2, + expected = $('<div></div>').dialog(), actual = expected.dialog('moveToTop'); equal(actual, expected, 'moveToTop is chainable'); - var d1 = $('<div></div>').dialog(), dlg1 = d1.parents('.ui-dialog'); + d1 = $('<div></div>').dialog(); + dlg1 = d1.parents('.ui-dialog'); d1.dialog('close'); d1.dialog('open'); - var d2 = $('<div></div>').dialog(), dlg2 = d2.parents('.ui-dialog'); + d2 = $('<div></div>').dialog(); + dlg2 = d2.parents('.ui-dialog'); d2.dialog('close'); d2.dialog('open'); ok(dlg1.css('zIndex') < dlg2.css('zIndex'), 'dialog 1 under dialog 2 before moveToTop method called'); |