WordPress.org

Make WordPress Core

Ticket #32577: 32577.3.patch

File 32577.3.patch, 2.0 KB (added by dlh, 3 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.
     6// Remove from view.
     7customizerRootElement.css({
     8        height: "1px",
     9        left: "-10px",
     10        overflow: "hidden",
     11        position: "absolute",
     12        top: "-10px",
     13        width: "1px",
     14});
    715jQuery( document.body ).append( customizerRootElement );
    816
    917window._wpCustomizeSettings = {
  • tests/qunit/wp-admin/js/customize-base.js

     
    44        var FooSuperClass, BarSubClass, foo, bar, ConstructorTestClass, newConstructor, constructorTest, $mockElement, mockString,
    55        firstInitialValue, firstValueInstance, wasCallbackFired, mockValueCallback;
    66
     7        QUnit.done( function() {
     8                // Clean up.
     9                [ 'panel', 'section', 'control' ].forEach(function ( type ) {
     10                        wp.customize[ type ].each(function ( instance ) {
     11                                instance.container.remove();
     12                        });
     13                });
     14        });
     15
    716        module( 'Customize Base: Class' );
    817
    918        FooSuperClass = wp.customize.Class.extend(
  • tests/qunit/wp-admin/js/customize-controls.js

     
    545545
    546546        test( 'Panel instance is not contextuallyActive', function () {
    547547                equal( mockPanel.isContextuallyActive(), false );
     548
     549                // Clean up.
     550                mockPanel.container.remove();
    548551        });
    549552
    550553        module( 'Test wp.customize.findControlsForSettings' );