TR-TP identifier |
WebCGM |
Test Requirement (quote/paraphrase from spec) | Test Purpose |
---|---|---|---|
N76 | 3.1.1.p2 3.1.1.p4 |
Viewers shall support pictures and objects (APS) addressing within a WebCGM using URI fragments: base URI, followed by "#", followed by any legal fragment specification according to the WebCGM fragment EBNF. | Test that all fragment syntax is supported, in both HTML-to-CGM and CGM-to-CGM links. (Redundant with the individual TPs in this table.) |
N92 | 3.1.1.l1 | Viewers shall support the 5 fragment variations: picterm "." objterm | picterm | objterm | picid "." objid | objid | Test that each of the 5 fragment variations is supported, in each of the two applicable link configurations HTML-to-CGM and CGM-to-CGM. |
N104 | 3.1.1.l2 |
Viewers shall support the 2 picterm picture-selection variations: pictureid | pictsequence, respectively containing the (string) id or (numeric) picture sequence number, plus an optional picture behavior value. | Test that each of the 2 picterm picture-selection variations, picid and picseqno, are supported , in each of the two applicable link configurations HTML-to-CGM and CGM-to-CGM. |
N118 | 3.1.1.l5 | Viewers shall support the 6 picture behavior options: _blank | _self | _parent | _replace | _top | target | Test that each of the 6 picture behaviors is supported, in both HTML-to-CGM and CGM-to-CGM links, and in CGM-to-HTML links (linkURI 3rd parameter) as well. |
N130 | 3.1.1.l9 | Viewers shall support the 2 objterm object-selection variations: objectid | objectname, respectively containing the (string) APS 'id' parameter or (string) picture sequence number, plus an optional object behavior value. | Test that each of the 2 objterm object-selection variations is supported,. in each of the two applicable link configurations HTML-to-CGM and CGM-to-CGM. |
N142 | 3.1.1.l11 | Viewers shall support the 3 object behavior options: "view_context" | "highlight" | "highlight_all" | Test that each of the 3 object behavior options is supported, in each of the two applicable link configurations HTML-to-CGM and CGM-to-CGM. |
N154 | 3.1.2.1.p1 | picid option is id parameter in the BEGIN PICTURE element. If the metafile does not contain a picture with matching id, the first picture in the metafile is chosen. | With picture-selection mode of 'picid', test proper picture selection if there is no matching id in the metafile. |
N166 | 3.1.2.1.p2 | picseqno option is the sequence number of the picture to be viewed. "1" is the first picture, "2" is the second picture, etc. If picseqno exceeds the number of pictures in the metafile, the last picture is displayed | With picture-selection mode of 'picseqno', test proper picture selection, if the number is greater than number of pictures in the metafile. |
N178 | 3.1.2.2.p2 | If the picture behavior is not one of the 5 reserved keywords as defined in HTML 4.0, _blank | _self | _parent | _replace | _top, then it shall be a valid Frame Target Name, which begin with [A-Za-z]. | (No viewer TP. This is a syntax requirement.) |
N190 | 3.1.2.2.p4 | If picture behavior is _blank, the viewer shall load the selected picture in a new, unnamed window. (Note. WebCGM 1.0 defect in statement.) | Test that viewer implements picture behavior "_blank" properly, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. |
N202 | 3.1.2.2.p5 | If picture behavior is _self, the viewer shall load the document in the same frame as the one containing the CGM picture that refers to this target. (Note. WebCGM 1.0 defect in statement.) |
Test that viewer implements picture behavior "_self" properly, in a single frameset multi-frame context, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. Test that viewer implements picture behavior "_self" properly, in other frame/frameset contexts. |
N214 | 3.1.2.2.p6 | If picture behavior is _parent, the viewer shall load the document into the immediate FRAMESET parent of the current frame in which the current picture is displayed. This value is equivalent to "_self" if the current frame has no parent. (Note. WebCGM 1.0 defect in statement.) |
Test that viewer implements picture behavior "_parent" properly, in a context with a FRAMESET parent, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. Test that viewer implements picture behavior "_parent" properly, in a context with no FRAMESET parent. |
N226 | 3.1.2.2.p7 | If picture behavior is _replace, the viewer shall replace the current CGM picture by the designated CGM picture in the same rectangular area in the same frame as the picture which refers to this target. (Note. WebCGM 1.0 defect in statement.) | Test that viewer implements picture behavior "_replace" properly, multi-frame context, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. |
N238 | 3.1.2.2.p7 | _replace is the default picture behavior that viewers shall use in the absence of explicit picture behavior specification in the fragment | Test that viewer uses _replace behavior, if picbehavior is missing from fragment, multi-frame context, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. |
N250 | 3.1.2.2.p8 | If picture behavior is _top, the viewer should load the document into the full, original window (thus canceling all other frames). This value is equivalent to _self if the current frame has no parent. (Note. WebCGM 1.0 defect in statement.) |
Test that viewer implements picture behavior "_top" properly, in a context with a FRAMESET parent, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. Test that viewer implements picture behavior "_top" properly, in a context with no FRAMESET parent. |
N262 | 3.1.2.2.p9.s1 | If the picture behavior value is any valid name string beginning with (a-zA-Z), and if it matches the name of a frame, remove the existing content from the frame whose name matches the string and display the document in the specified frame. | Test that viewer implements picture behavior <target-frame-name> properly, in a context with a FRAMESET parent and a name-matched frame, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. |
N274 | 3.1.2.2.p9 | If the picture behavior value is any valid name string beginning with (a-zA-Z), and if no frame exists with the specified name, the viewer should load the designated document in a new window with the specified name. | Test that viewer implements picture behavior <target-frame-name> properly, in a context with a FRAMESET parent and a *NO* name-matched frame, in HTML-to-CGM, CGM-to-CGM, and CGM-to-HTML configurations. |
N286 | 3.1.2.3.p1 | objid option is the id parameter of an APS element of type 'grobject', 'para' or 'subpara' to be selected. If no match is found in the picture, no object is selected. |
Test proper viewer object selection for objects of type 'grobject', 'para', and 'subpara', when objid keyword is used, and there is an object in the target with that id, in HTML-to-CGM and CGM-to-CGM configurations. Test proper viewer action (no-op), when objid keyword is used, and there is *NOT* an object in the target with that id, in HTML-to-CGM and CGM-to-CGM configurations. |
N298 | 3.1.2.3.p2.s1 | objname option is the value of a 'name' APS attribute in an APS element of type 'grobject', 'para', or 'subpara'. The first object in the picture which contains a name attribute with a matching value is selected. (Note. WebCGM 1.0 defect in this statement [presumes objbehavior]) |
Test proper viewer object selection for objects of type 'grobject', 'para', and 'subpara', when objname keyword is used, with no objbehavior, and there is (at least) one object in the target with that name, in HTML-to-CGM and CGM-to-CGM configurations. |
N310 | 3.1.2.3.p2.s3 | objname option is the value of a 'name' APS attribute in an APS element of type 'grobject', 'para', or 'subpara'. If no match is found in the picture, no grobject is selected. | Test proper viewer action (no-op), when objname keyword is used, and there is *NOT* an object in the target with that name, in HTML-to-CGM and CGM-to-CGM configurations. |
N322 | 3.1.2.3.p2.s4 | objname option is the value of a 'name' APS attribute in an APS element of type 'grobject', 'para', or 'subpara'. If more than one match is found in the picture the 'highlight_all' behavior can be used to highlight all selected objects. | (Redundant with N382.) |
N334 | 3.1.2.4.p1.s1 | If the objbehavior value is view_context, and if a 'ViewContext' attribute exists for a selected object APS, the viewer shall display only the rectangular region of the picture defined in the ViewContext attribute, and highlight the object. |
For object selection by objid, with objbehavior of view_context, and a ViewContext attribute on the id-matched target object, test that viewer displays the correct rectangular region and highlights the object, in HTML-to-CGM and CGM-to-CGM configurations. For object selection by objname, with objbehavior of view_context, and a ViewContext attribute on the name-matched target object, test that viewer displays the correct rectangular region and highlights the object, in HTML-to-CGM and CGM-to-CGM configurations. |
N346 | 3.1.2.4.p1.s2 | If the objbehavior value is view_context, and if no 'ViewContext' attribute exists for a selected object APS, the highlight behavior shall be implemented. |
Test objbehavior of 'view_context', objid selection, and *NO* ViewContext attribute on the id-matched target object, in HTML-to-CGM and CGM-to-CGM configurations. Test objbehavior of 'view_context', objname object selection w/ multiple matched objects and *NO* ViewContext attribute on name-matched target objects, in HTML-to-CGM and CGM-to-CGM configurations. |
N358 | 3.1.2.4.p1.s3 | highlight is the default object behavior that viewers shall use in the absence of explicit object behavior specification in the fragment | (Redundant with N298.) |
N370 | 3.1.2.4.p2 | If the objbehavior value is highlight, the viewer shall highlight the first object selected and ignore the ViewContext attribute, if present. |
Test objbehavior of 'highlight', w/ objid object selection, ViewContext on matched object, HTML-to-CGM and CGM-to-CGM configurations. Test objbehavior of 'highlight', w/ objname object selection, multiple matched objects with ViewContext, HTML-to-CGM and CGM-to-CGM configurations. |
N382 | 3.1.2.4.p3 | If the objbehavior value is highlight_all, the viewer shall highlight all objects selected. |
Test objbehavior of 'highlight_all', w/ objid object selection, ViewContext on matched object, HTML-to-CGM and CGM-to-CGM configurations. Test objbehavior of 'highlight_all', w/ objname object selection, multiple matched objects with ViewContext, HTML-to-CGM and CGM-to-CGM configurations. |