Source image | Reference image |
---|---|
![]() |
Initiate Test | Purpose | Test Result | Comments |
Done on load | Get initial 'viewcontext' values | NA | "Passed" if getAppStructureAttr values are correct. See Note 1. |
Set 'viewcontext' of larger plane to dashed rectangle. | NA | "No errors" if no error executing setAppStructureAttr. See Note 2. | |
Reset already-specified 'viewcontext' on plane_1. | NA | "No errors" if no error executing setAppStructureAttr. See Note 3. | |
Retrieve current 'viewcontext' values. | NA | "Passed" if getAppStructureAttr values are correct. See Note 4. | |
Remove 'viewcontext' attributes: | NA | "No errors" if no error executing removeAppStructureAttr. See Note 5. |
Note 1. At test start, there is a 'viewcontext' ApsAttr on plane_1 (upper-left small plane in the fleet of 6), whose extent is indicated by the dashed rectangle. There is no 'viewcontext' on big_plane initially. There is a linkuri from plane_5 (the bottom small one) to plane_1, and a linkuri from plane_6 (the upper-right small plane) to big_plane. The first (onload) test is passed if the returned getApsStructureAttr values are correct. (You can also activate these links to visually verify viewer behavior.)
Note 2. "No errors" only means that there were no exceptions upon test execution. To interactively verify that the initial value (no 'viewcontext') is replaced on big_plane, activate the linkuri from plane_6 (the upper-right small plane) to big_plane.
Note 3. "No errors" only means that there were no exceptions upon test execution. To interactively verify that the initial value (dashed rectangle) is replaced on plane_1, activate the linkuri from plane_5 (the lowest small plane) to plane_1. The new view context is the height of the dashed rectangle, but as wide as the whole small-plane fleet.
Note 4. "Passed" means that getAppStructureAttr returned the same 'viewcontext' values on plane_1 and big_plane as were set in tests 2 and 3.
Note 5. "No errors" only means that there were no exceptions upon test execution. To interactively verify that the removal happened, activate the linkuri from plane_6 to big_plane, and the linkuri from plane_5 to plane_1. Correct result is a zoomed view to a minimal enclosing rectangle of the linkuri target.