DWVv0.37.0

tests/utils

Source: array.test.js:19


Instance Methods

undostack()

Tests for UndoStack.

precisionround()

Tests for precisionRound.

tostringid()

Tests for toStringId.

arraymap()

Tests for arrayMap.

arraycontains()

Tests for arrayContains.

arraysortequals()

Tests for arraySortEquals.

parseMultipart()

Tests for parseMultipart.

isequalrgb()

Tests for isEqualRgb.

ybrtorgb()

Tests for ybrToRgb.

hextorgb()

Tests for hexToRgb.

isdarkcolour()

Tests for isDarkColour.

cielabToCiexyz()

Tests for cielabToCiexyz.

Ref: https://www.easyrgb.com/en/convert.php.

ciexyzToCielab()

Tests for ciexyzToCielab.

Ref: https://www.easyrgb.com/en/convert.php.

ciexyzToSrgb()

Tests for ciexyzToSrgb.

Ref: https://www.easyrgb.com/en/convert.php.

srgbToCiexyz()

Tests for srgbToCiexyz.

Ref: https://www.easyrgb.com/en/convert.php.

cielabToRgb()

Tests for cielabToSrgb.

Ref: https://www.easyrgb.com/en/convert.php.

srgbToCielab()

Tests for srgbToCielab.

Ref: https://www.easyrgb.com/en/convert.php.

i18n()

Tests for i18n.

logging()

Tests for utils.logger.

mergePbjects()

Tests for mergeObjects.

capitalisefirstletter()

Tests for capitaliseFirstLetter.

startswith()

Tests for startsWith.

endswith()

Tests for endsWith.

getflags()

Tests for getFlags.

replaceflags()

Tests for replaceFlags.

getfileextension()

Tests for getFileExtension.

WorkerTask()

Tests for WorkerTask constructor.

WorkerTaskGetStartMessage()

Tests that WorkerTask#getStartMessage returns the start message with no transferred objects by default.

WorkerTaskGetWorker()

Tests that WorkerTask#getWorker returns undefined by default.

getDefaultPoolSize()

Tests for getDefaultPoolSize.

ThreadPoolConstructor()

Tests for ThreadPool constructor input validation.

clampPoolSize()

Tests for clampPoolSize.

ThreadPoolHandlers()

Tests that default event handlers are no-ops.

ThreadPoolWorkStart()

Tests that addWorkerTask fires onworkstart on the first task only.

threadPoolImmediateDispatch()

Tests that addWorkerTask dispatches the task immediately when a thread is free (postMessage called, thread moved to runningThreads).

threadPoolTransfer()

Tests that the worker thread posts the message and transfer list returned by WorkerTask#getStartMessage.

threadPoolQueue()

Tests that addWorkerTask queues a task when no thread is free.

threadPoolWorkitem()

Tests that when a worker replies, onworkitem is called with the event augmented by task info.

threadPoolWorkDone()

Tests that when the last task completes, onwork and onworkend are fired and the thread is returned to freeThreads.

threadPoolQueueDrain()

Tests that a queued task is dispatched when a running task finishes.

threadPoolMultiThread()

Tests that multiple tasks across multiple threads all complete correctly.

threadPoolAbort()

Tests that abort() stops running workers, clears the queue, and fires onabort + onworkend.

threadPoolReuseAfterAbort()

Tests that the pool is fully operational after an abort.

threadPoolError()

Tests that a worker error stops all threads and fires onerror + onworkend.

geturlfromuri()

Tests for getUrlFromUri. Test the multiplatform version and the simple one.

splituri()

Tests for splitUri.

geturiquery()

Tests for getUriQuery.

parseWeasisXMLManifest()

Tests for parseWeasisXMLManifest.