Make WordPress Core

Ticket #32577: 32577.2.patch

File 32577.2.patch, 2.3 KB (added by dlh, 7 years ago)
  • tests/qunit/fixtures/customize-settings.js

     
    33
    44var customizerRootElement;
    55customizerRootElement = jQuery( '<div id="customize-theme-controls"><ul></ul></div>' );
    6 customizerRootElement.css( { position: 'absolute', left: -10000, top: -10000 } ); // Remove from view.
     6customizerRootElement.css( { position: 'absolute', top: -1000 } ); // Remove from view.
    77jQuery( document.body ).append( customizerRootElement );
    88
    99window._wpCustomizeSettings = {
  • tests/qunit/wp-admin/js/customize-controls.js

     
    219219                control.focus();
    220220                ok( section.expanded() );
    221221                ok( panel.expanded() );
     222
     223                // Clean up at the end of the module.
     224                panel.container.remove();
    222225        } );
    223226
    224227        module( 'Customizer Default Panel with Template in Fixture' );
     
    437440
    438441        test( 'Panel instance is not contextuallyActive', function () {
    439442                equal( mockPanel.isContextuallyActive(), false );
     443
     444                // Clean up at the end of the module.
     445                mockPanel.container.remove();
    440446        });
    441447});
  • tests/qunit/wp-admin/js/customize-nav-menus.js

     
    123123                var control = api.Menus.getMenuItemControl( 2000 );
    124124                ok( !! control, 'control is returned' );
    125125                ok( control.extended( api.Menus.MenuItemControl ), 'control is a MenuItemControl' );
     126
     127                // Clean up at the end of the module.
     128                api.panel( 'nav_menus' ).container.remove();
    126129        } );
    127130
    128131} );
  • tests/qunit/wp-admin/js/customize-widgets.js

     
    6767                } );
    6868
    6969                expect( 4 );
     70
     71                // Clean up at the end of the module.
     72                panel.container.remove();
    7073        });
    7174});