Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/MediaUploader/tests/qunit/controller/uw.controller.Deed.test.js
Ðазад
/* * This file is part of the MediaWiki extension MediaUploader. * * MediaUploader is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * MediaUploader is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MediaUploader. If not, see <http://www.gnu.org/licenses/>. */ ( function ( uw ) { QUnit.module( 'uw.controller.Deed', QUnit.newMwEnvironment() ); QUnit.test( 'Constructor sanity test', function ( assert ) { var step = new uw.controller.Deed(); assert.true( !!step ); assert.true( step instanceof uw.controller.Step ); assert.true( !!step.ui ); } ); QUnit.test( 'load', function ( assert ) { var step = new uw.controller.Deed( new mw.Api(), { licensing: { enabled: true, thirdParty: { type: 'radio', licenses: [] }, showTypes: [ 'thirdParty' ], defaultType: 'thirdParty' } } ), ststub = this.sandbox.stub().returns( $.Deferred().promise() ), uploads = [ { file: {}, getThumbnail: ststub, on: function () {}, title: mw.Title.newFromText( 'Test2.jpg', 6 ) }, { file: {}, getThumbnail: ststub, on: function () {}, title: mw.Title.newFromText( 'Test4.jpg', 6 ) } ]; this.sandbox.stub( step.ui, 'load' ); step.load( uploads ); assert.strictEqual( ststub.callCount, 2 ); } ); }( mw.uploadWizard ) );
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка