# Chapter 4 Test Suite

Last modified: 2003-07-09

## Legend

- [Level] A: MUST
- [Level] AA: SHOULD
- [Level] AAA: MAY
- [Test] (green): Passed by two or more implementations
- [Test] (yellow): Passed by one implementation
- [Test] (red): Passed by no implementation
- [Test] (white): No or partial results
- [Implementation] (full): Passed all level A tests for this test suite
- [Implementation] Pass: Passed test
- [Implementation] Fail: Failed test
- [Implementation] N/A: Not tested

## Implementation Chart

### Processing Model

4.2.1-1 | Level: A | if a model exists a xforms-model-construct is dispatched to the declaration element | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-2 | Level: A | A model has a xsd:list of URI's pointing to accessible resources. The resources identified by the URI's are loaded. All the resources were loaded. | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-3 | Level: A | A model has a xsd:list of URI's pointing to resources where at least one resource is inaccessible. The resources identified by the URI's are loaded. A xforms-link-exception event was dispatched to the model declaration element | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-4 | Level: A | A valid external source for initial instance data is given. The external source is loaded and the xpath datamodel constructed. A XPath datamodel representing the initial instance data exists. | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-5 | Level: A | An inline initial instance data exist. A XPath datamodel is constructed using the initial instance data. A XPath datamodel representing the initial instance data exists | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-6 | Level: A | An inline initial instance data exist and an external source for initial instance data is given. A XPath datamodel is constructed using the initial instance data in the external source. A XPath datamodel representing the initial instance data from the external source exists | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-7 | Level: A | Neither inline initial instance data nor an external source for initial instance data is given. No processing. No xpath datamodel exists | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-7 | Level: A | No exceptions during processoing of xforms-model-construct event. A xforms-model-initialize event is dispatch to the model declaration element. A xforms-model-initialize was dispatched to the model declaration element | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.1-8 | Level: A | No exceptions during processing of xforms-model-construct event. A xforms-model-initialize event is dispatched to the model declaration element. A xforms-model-initialize was dispatched to the model declaration element | X-Smiles: Pass | Novell: N/A | FormsPlayer: Pass
4.2.3-1 | Level: A | No exceptions were thrown during processing of xforms-model-initialize. No processing. | X-Smiles: Pass | Novell: N/A | FormsPlayer: Pass
4.2.2-1 | Level: A | xforms-intialize-done has been dispacthed on all model's declaration elements. A xforms-ui-initialize is dispatched to each model | X-Smiles: Pass | Novell: N/A | FormsPlayer: Pass
4.2.4-1 | Level: A | Controls bound to the model exists in the containing document. A xforms-form-control-intialize is dispatched to each form control bound to the model post: xforms-form-control-initialize event was dispatched to each form control bound to the model | X-Smiles: Pass | Novell: N/A | FormsPlayer: Pass
4.2.5-1 | Level: A | The instance referenced by the form control existed when the first xforms-form-control-initialized was dispatched pre: The node the binding expression is evaluated to does exist. The binding expression is evaluated. The control references the evaluated node | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.5-2 | Level: A | The instance referenced by the form control existed when the first xforms-form-control-initialized was dispatched. The node the binding expression is evaluated to does not exist. The binding expression is evaluated. The control references no node and behaves as if its referenced node had an model item relevant of value false | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.2.5-3 | Level: A | The instance referenced by the form control did not exist. This is the first reference to the instance. A default instance is created. A default instance exists with the root element instanceData | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass

4.2.5-5

Level: A

The instance referenced by the form control did not exist. This is the first reference to the instance. A default instance with rootelement instanceData exists. The value of the binding expression is not a valid QName. A xforms-binding-exception event is dispatched to the model declaration element. The event xforms-binding-exception was dispatched to the model declaration element

X-Smiles: Pass

Novell: Pass

FormsPlayer: Pass

4.2.6-1 | Level: A | The xforms processor is shutting down. A model exits. A xforms-model-destruct event is dispatched to the model declaration element. A xforms-model-destruct was disptached to the declaration element | X-Smiles: Pass | Novell: Pass | FormsPlayer: Pass
4.3.2-1 | Level: A | xforms-focus is dispatched to a form control. The focus is transferred to the form control. The form control has focus | X-Smiles: Pass | Novell: Fail | FormsPlayer: Pass

Thierry Michel (tmichel@w3.org), W3C staff contact for XForms