Active rendering rules are followed
Title: Active rendering rules are followed
Number: 140
Specification reference: (Section 6.5 page 17)
“While this technique is essential for animations, several rules apply to those application doing active rendering, to prevent those actions from disrupting AWT's control of the other applications being rendered:
• An application SHALL NOT perform any active rendering unless that application has the front-most HScene on the stack of visible HScenes.
• Even when doing active rendering, an application SHALL paint its entire display (subject to clipping) when paint() is invoked.
• When doing active rendering, the application SHALL be responsible for all display updates, including clearing or erasing of previous contents, if necessary.
• Active rendering is not expected to play well with inter-scene blending. An application SHOULD disable inter-scene blending via HScene.setBackgroundMode() when doing active rendering."
Assertions:
1. The application does not perform any active rendering unless the application has the front-most HScene
2. When doing active rendering and paint() is called the application paints its entire display
3. When doing active rendering the application is responsible for all display updates
4. The application does not disable inter-scene blending via HScene.setBackgroundMode()
Test Procedure:
1. Manually inspect the source code.
2. Use Java reflection API or other tools to inspect the application .class files
Expected result:
1. The code follows the rules for active rendering.
- Printer-friendly version
- Login or register to post comments


community