HtmlMock

Modify/load/get HTML to/from the test area of the browser.

Source:

Methods

(static) cleanup() → {void}

Source:

Removes any test HTML code.

Returns:
Type
void

(static) getTestHtml() → {string}

Source:

Get's the current test HTML code.

Returns:
Type
string

(static) setTestHtml(htmlText) → {void}

Source:

Set the HTML code as a test code in the test area.

Parameters:
Name Type Description
htmlText string
Returns:
Type
void

(static) setTestHtmlFile(filename) → {Promise}

Source:

Downloads the test file and attach it to the test area.

Parameters:
Name Type Description
filename string
Returns:
Type
Promise

(static) stripAllNewlines(text) → {string}

Source:

Strips all new lines from a test data.

Based on https://stackoverflow.com/a/10805198.

Parameters:
Name Type Description
text string
Returns:
Type
string