Ticket #32577: 32577.3.patch
| File 32577.3.patch, 2.0 KB (added by , 9 years ago) |
|---|
-
tests/qunit/fixtures/customize-settings.js
3 3 4 4 var customizerRootElement; 5 5 customizerRootElement = 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. 7 customizerRootElement.css({ 8 height: "1px", 9 left: "-10px", 10 overflow: "hidden", 11 position: "absolute", 12 top: "-10px", 13 width: "1px", 14 }); 7 15 jQuery( document.body ).append( customizerRootElement ); 8 16 9 17 window._wpCustomizeSettings = { -
tests/qunit/wp-admin/js/customize-base.js
4 4 var FooSuperClass, BarSubClass, foo, bar, ConstructorTestClass, newConstructor, constructorTest, $mockElement, mockString, 5 5 firstInitialValue, firstValueInstance, wasCallbackFired, mockValueCallback; 6 6 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 7 16 module( 'Customize Base: Class' ); 8 17 9 18 FooSuperClass = wp.customize.Class.extend( -
tests/qunit/wp-admin/js/customize-controls.js
545 545 546 546 test( 'Panel instance is not contextuallyActive', function () { 547 547 equal( mockPanel.isContextuallyActive(), false ); 548 549 // Clean up. 550 mockPanel.container.remove(); 548 551 }); 549 552 550 553 module( 'Test wp.customize.findControlsForSettings' );