This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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