API Docs for:
Show:

Hop.TestCase Class

Defined in: lib/test.js:618
Module: Test
Parent Module: Hop

TestCase Class

This is the underlying class which is used in defineTestCase

To construct a new test case use defineTestCase instead The name of the case must alway be the name of a method, but may be followed by a description

Constructor

Hop.TestCase

(
  • name
  • onTest
)

Defined in lib/test.js:618

Parameters:

  • name String

    The name of the test case, this must always start with the name of a defined method, but may also include a description seperated by a ':'

  • onTest Function

    The function defining the test case

Example:

Hop.defineTestCase("Object.Method",function()...);
Hop.defineTestCase("Object.Method: Do a specific test",function()...);

Item Index

Methods

Methods

fileFromURL

(
  • url
)
static

Defined in lib/test.js:645

Create a special object to instruct Hop to use a file provide by a URL as a test input value

Parameters:

  • url String

    url to fetch file from (this should be a url on the local server)