FLUID-1423: jqUnit: Provide a means for easily testing the sequence and contents of function invocations.

Metadata

Source
FLUID-1423
Type
New Feature
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Colin Clark
Created
2008-09-03T17:17:06.000-0400
Updated
2014-03-04T09:05:34.377-0500
Versions
  1. 1.4
Fixed Versions
  1. 1.5
Component
  1. Testing Infrastructure

Description

At the moment, there's nothing built into jqUnit that helps us test the order and contents of function invocations. For example, in the DemoUploadManager, the core logic is orchestrational: it's important to test that each callback function is called in the correct order, and that the arguments are appropriate.

An "invocation tracker" in jqUnit would be immensely helpful.

Comments

  • Antranig Basman commented 2013-01-13T18:19:14.201-0500

    The "invocationTracker" was delivered as part of 1.4. Also, FLUID-4850 delivers similar but more advanced functionality covering the case of asynchronous event sequences as well