PHP Classes

File: public/js/tinymce/src/core/src/test/js/browser/file/UploadStatusTest.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/core/src/test/js/browser/file/UploadStatusTest.js   Download  
File: public/js/tinymce/src/core/src/test/js/browser/file/UploadStatusTest.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 1,806 bytes
 

Contents

Class file image Download
asynctest( 'browser.tinymce.core.file.UploadStatusTest', [ 'ephox.agar.api.Pipeline', 'ephox.mcagar.api.LegacyUnit', 'tinymce.core.file.UploadStatus' ], function (Pipeline, LegacyUnit, UploadStatus) { var success = arguments[arguments.length - 2]; var failure = arguments[arguments.length - 1]; var suite = LegacyUnit.createSuite(); suite.test('hasBlobUri/markPending', function () { var status = new UploadStatus(); LegacyUnit.strictEqual(status.hasBlobUri("nonexisting_uri"), false); status.markPending("existing_uri"); LegacyUnit.strictEqual(status.isPending("existing_uri"), true); LegacyUnit.strictEqual(status.isUploaded("existing_uri"), false); LegacyUnit.strictEqual(status.hasBlobUri("existing_uri"), true); status.markUploaded("existing_uri", "uri"); LegacyUnit.strictEqual(status.isPending("existing_uri"), false); LegacyUnit.strictEqual(status.isUploaded("existing_uri"), true); LegacyUnit.strictEqual(status.hasBlobUri("existing_uri"), true); LegacyUnit.strictEqual(status.getResultUri("existing_uri"), "uri"); status.markUploaded("existing_uri2", "uri2"); LegacyUnit.strictEqual(status.isPending("existing_uri"), false); LegacyUnit.strictEqual(status.isUploaded("existing_uri"), true); LegacyUnit.strictEqual(status.hasBlobUri("existing_uri2"), true); LegacyUnit.strictEqual(status.getResultUri("existing_uri2"), "uri2"); status.markPending("existing_uri"); LegacyUnit.strictEqual(status.hasBlobUri("existing_uri"), true); status.removeFailed("existing_uri"); LegacyUnit.strictEqual(status.hasBlobUri("existing_uri"), false); }); Pipeline.async({}, suite.toSteps({}), function () { success(); }, failure); } );