test("destroy", function() {
expect( 6 );
+
+ // Dialogs are expected to be hidden on destroy, so make sure they're hidden
+ // before the test
+ $( "#dialog1, #form-dialog" ).hide();
+
domEqual( "#dialog1", function() {
var dialog = $( "#dialog1" ).dialog().dialog( "destroy" );
equal( dialog.parent()[ 0 ], $( "#qunit-fixture" )[ 0 ] );
"tabIndex",
"title"
];
-/*
+
function getElementStyles( elem ) {
var key, len,
style = elem.ownerDocument.defaultView ?
return styles;
}
-*/
+
function extract( elem ) {
if ( !elem || !elem.length ) {
QUnit.push( false, actual, expected,
var value = elem.attr( attr );
result[ attr ] = value !== undefined ? value : "";
});
- // TODO: Enable when we can figure out what's happening with accordion
- //result.style = getElementStyles( elem[ 0 ] );
+ result.style = getElementStyles( elem[ 0 ] );
result.events = $._data( elem[ 0 ], "events" );
result.data = $.extend( {}, elem.data() );
delete result.data[ $.expando ];