Changeset 46388
- Timestamp:
- 10/04/2019 09:19:17 PM (4 years ago)
- Location:
- trunk/tests/qunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/qunit/index.html
r46375 r46388 25 25 </script> 26 26 <script src="../../build/wp-includes/js/wp-util.js"></script> 27 <script src="../../build/wp-includes/js/dist/vendor/wp-polyfill.js"></script> 28 <script src="../../build/wp-includes/js/dist/dom-ready.js"></script> 27 29 <script src="../../build/wp-includes/js/dist/a11y.js"></script> 28 30 <script> -
trunk/tests/qunit/wp-admin/js/customize-controls.js
r42042 r46388 95 95 container: container 96 96 }); 97 collection.add( 'mycode-1', new wp.customize.Notification( 'mycode-1' ) );97 collection.add( 'mycode-1', new wp.customize.Notification( 'mycode-1', { message: 'My message 1' } ) ); 98 98 collection.render(); 99 99 items = collection.container.find( 'li' ); … … 102 102 103 103 collection.add( 'mycode-2', new wp.customize.Notification( 'mycode-2', { 104 message: 'My message 2', 104 105 dismissible: true 105 106 } ) ); … … 188 189 assert.equal( 0, notificationContainerElement.height() ); 189 190 190 settingNotification = new wp.customize.Notification( 'setting_invalidity', 'Invalid setting');191 controlOnlyNotification = new wp.customize.Notification( 'control_invalidity', 'Invalid control');191 settingNotification = new wp.customize.Notification( 'setting_invalidity', { message: 'Invalid setting' } ); 192 controlOnlyNotification = new wp.customize.Notification( 'control_invalidity', { message: 'Invalid control' } ); 192 193 control.settings['default'].notifications.add( settingNotification.code, settingNotification ); 193 194 control.notifications.add( controlOnlyNotification.code, controlOnlyNotification );
Note: See TracChangeset
for help on using the changeset viewer.