dwv. test

Just used for tests.

Methods

(static) checkIterator(assert, getIter, theoValues, name)

Check iter.

Parameters:
NameTypeDescription
assertobject

The qunit assert.

getIterfunction

Function to get the iter at a given position.

theoValuesArray

Theoretical values.

namestring

String to identify test.

(static) compare(jsonTags, dicomElements, name, comparator)

Compare JSON tags and DICOM elements

Parameters:
NameTypeDescription
jsonTagsobject

The JSON tags.

dicomElementsobject

The DICOM elements

namestring

The name of the test.

comparatorobject

An object with an equal function (such as Qunit assert).

(static) compareImageAndBuffer(image, size, buffer, rsi) → {object}

Compare an image and a buffer.

Parameters:
NameTypeDescription
imageobject

The input image.

sizeobject

The size of the input buffer.

bufferArray

The input buffer.

rsiobject

The rescale slope of the input buffer.

Returns:

Statistics of the value and rescaled value differences.

Type: 
object

(static) generate()

Generate DICOM data

(static) getMessagePara(text, type) → {object}

Get a message paragraph.

Parameters:
NameTypeDescription
textstring

The text message.

typestring

The message type used as css class.

Returns:

The paragraph element.

Type: 
object

(static) launchJSONLint()

open JSONLint to check the rules

(static) launchJSONlint()

Open JSONLint to check the tags.

(static) onDOMContentLoadedColourmap()

Last minute.

(static) onDOMContentLoadedGenerator()

Last minute.

(static) onDOMContentLoadedPacs()

Last minute

(static) onDOMContentLoadedSynthData()

Last minute.

(static) onDOMContentLoadedViewer()

Last minute.

(static) onGenerate()

Generate DICOM data

(static) onInputDICOMFile(event)

handle input DICOM file

Parameters:
NameTypeDescription
eventobject

The input field event.

(static) onInputImageFiles(event)

Handle input image file

Parameters:
NameTypeDescription
eventobject

The input field event.

(static) onInputRulesFile(event)

handle input rules file

Parameters:
NameTypeDescription
eventobject

The input field event.

(static) onInputTagsFile(event)

Handle input tags file.

Parameters:
NameTypeDescription
eventobject

The input field event.

(static) onSaveTags()

Save the tags as a JSON file.

(static) qidoSearch()

Launch a QIDO search on series.

(static) runIterator(iter) → {Array}

Run an input iterator and store values.

Parameters:
NameTypeDescription
iterobject

The iterator.

Returns:

The result array.

Type: 
Array

(static) sauceTest(caps)

Launch a sauce GUI test.

Parameters:
NameTypeDescription
capsobject

Desired capabilities for the webdriver. Minimum of {'browserName', 'version', 'platform'}.

(static) saveRules()

Save the rules as a JSON file.

(static) stow()

Launch a STOW request.

(static) testWriteReadDataFromConfig(config, assert)

Test a JSON config: write a DICOM file and read it back.

Parameters:
NameTypeDescription
configobject

A JSON config representing DICOM tags.

assertobject

A Qunit assert.

(static) viewerSetup()

Setup simple dwv app.