rnacanvas.test

Testing procedures

View the Project on GitHub pzhaojohnson/rnacanvas.test

Unit testing

In general, unit tests for component packages can be run using the following command.

npm test

The --silent option can also be included to hide console messages generated by tested code.

Manual testing

URL interface

Dot-bracket notation

Attempt to draw a structure using dot-bracket notation in Chrome, Firefox and Safari browsers.

https://code.rnacanvas.app?sequence=AGAGUAGCAUUCUGCUUUAGACUGUUAACUUUAUGAACCACGCGUGUCACGUGGGGAGAGUUAACAGCGCCC&dot_bracket=(((((((....)))))))...(((((((((((.....(((((.......)))))..))))))))))).....

Check for any error messages in the console.

Check that the drawn sequence matches the one specified in the URL.

RNA 2D schemas

Retrieve an active RNA 2D schema URL from the R2DT webpage.

Draw the linked to RNA 2D schema in RNAcanvas using the URL interface in Chrome, Firefox and Safari browsers.

https://code.rnacanvas.app?schema=

Check for any error messages in the console.

Check that the sequence and drawing match those on the R2DT webpage.

Exporting drawings

SVG

Open the Export form using the top-left Export button.

Set the padding and scaling to several sets of random values and check that exported drawings conform to the specified padding and scaling values.

Consider trying negative padding and scaling values (and scaling of zero).

Try using the E key binding to export the draiwng while the Export form is open.

Try using the E key binding to export the drawing while the Export form is closed.

PPTX

Try converting an exported SVG drawing to PPTX.