Skip to content

Instantly share code, notes, and snippets.

@jzaefferer
Created November 22, 2012 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jzaefferer/5e1b59de38dfc3902d13 to your computer and use it in GitHub Desktop.
Save jzaefferer/5e1b59de38dfc3902d13 to your computer and use it in GitHub Desktop.
diff --git a/tests/unit/dialog/dialog_core.js b/tests/unit/dialog/dialog_core.js
index 404e817..8a5c5e3 100644
--- a/tests/unit/dialog/dialog_core.js
+++ b/tests/unit/dialog/dialog_core.js
@@ -80,4 +80,17 @@ test( "focus tabbable", function() {
}, 13);
});
+asyncTest( "close bug", function() {
+ expect( 1 );
+ var el = $( "<div></div>" ).dialog();
+ setTimeout(function() {
+ debugger;
+ el.dialog( "option", "height", 1600 );
+ el.dialog( "widget" ).find( ".ui-dialog-titlebar-close" ).click();
+ strictEqual( el.dialog( "isOpen" ), false, "should close after clicking close button" );
+ el.remove();
+ start();
+ }, 1 );
+});
+
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment