Skip to content

Instantly share code, notes, and snippets.

@jzaefferer jzaefferer/dialog.patch Secret
Created Nov 22, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.