diff options
author | Trey Hunner <treyhunner@gmail.com> | 2012-10-21 18:50:03 -0700 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-10-21 22:45:41 -0400 |
commit | 49f9b849b9c5023f138e8932510b11bfc9765814 (patch) | |
tree | 49df1f705de87c39bd57dfd1a602d3279aab0ba9 /tests/unit | |
parent | 0bcbfe714621ed181137387745a78d640924247b (diff) | |
download | jquery-ui-49f9b849b9c5023f138e8932510b11bfc9765814.tar.gz jquery-ui-49f9b849b9c5023f138e8932510b11bfc9765814.zip |
Remove trailing whitespace and add final newlines
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/dialog/dialog_tickets.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/dialog/dialog_tickets.js b/tests/unit/dialog/dialog_tickets.js index 5c3277c2f..e17d55a15 100644 --- a/tests/unit/dialog/dialog_tickets.js +++ b/tests/unit/dialog/dialog_tickets.js @@ -125,7 +125,7 @@ test("#6966: Escape key closes all dialogs, not the top one", function(){ ok(d1.data('dialog') && d1.dialog('isOpen'), 'first dialog is open'); ok(d2.data('dialog') && d2.dialog('isOpen'), 'second dialog is open'); - + $( document ).simulate('keydown', {keyCode: $.ui.keyCode.ESCAPE}); ok(d1.data('dialog') && d1.dialog('isOpen'), 'first dialog still open'); ok(!d2.data('dialog'), 'second dialog is closed'); @@ -136,14 +136,14 @@ test("#6966: Escape key closes all dialogs, not the top one", function(){ d2.remove(); d1.remove(); - + // test with close function removing dialog triggered through the dialog d1 = $('<div title="dialog 1">Dialog 1</div>').dialog({modal: true, close: function(){ d1.remove(); }}); d2 = $('<div title="dialog 2">Dialog 2</div>').dialog({modal: true, close: function(){ d2.remove(); }}); ok(d1.data('dialog') && d1.dialog('isOpen'), 'first dialog is open'); ok(d2.data('dialog') && d2.dialog('isOpen'), 'second dialog is open'); - + d2.simulate('keydown', {keyCode: $.ui.keyCode.ESCAPE}); ok(d1.data('dialog') && d1.dialog('isOpen'), 'first dialog still open'); ok(!d2.data('dialog'), 'second dialog is closed'); |