Permalink
Browse files

fix popup test to reflect focus and after open ordering

  • Loading branch information...
1 parent 0b87a42 commit 1f7ea081db1de2a64799cefb738ecb9faf6970ef @johnbender johnbender committed Aug 31, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/unit/popup/popup_core.js
@@ -454,14 +454,14 @@
expect( 2 );
+ $popup.parent().one( "focus", function() {
+ ok( true, "focus fired after the popup opens" );
+ });
+
// check that after the popup is closed the focus is correct
$popup.one( "popupafteropen", function() {
ok( true, "afteropen has fired" );
-
- $popup.parent().one( "focus", function() {
- ok( true, "focus fired after 'afteropen'" );
- $popup.popup( "close" );
- });
+ $popup.popup( "close" );
});
$popup.one( "popupafterclose", function() {

0 comments on commit 1f7ea08

Please sign in to comment.