You are here: Test Case Description for applets within <applet> tag > Test Case #3 for applets within <applet>: Alt
Applets: APPLET (ALT attribute)
This test case tests the <applet> tag with its optional alt attribute which specifies alternate text and/or HTML that is displayed by browsers that either do not the understand the <applet> tag or do understand the <applet> tag but cannot actually run the applets. This attribute can also be used to describe the applet in the case where the browser does run applets, since in that case any alternate text and/or HTML contained between <applet> ... </applet> is ignored.
Test Instructions:
Set the Java Enabled browser "off" to view the alternate text in java-disabled mode:
- Select menu Edit|Preferences|Network Preferences|Languages.
- Click Enable Java checkmark (off).
- Close Preferences dialog.
- Repeat steps 1-3 to go from Disable Java to Enable Java and view the results.
- Verify that the sample displays correctly for the following test case.
- Verify that the java applet is maintained when you minimize/maximize the screen.
- Verify that the java applet is maintained when you re-size left & right the screen.
- Verify that the java applet is maintained when you re-size top & bottom the screen.
- Verify re-draw takes place correctly after maximizing the screen.
- Verify reload works.
Test Case: sample java applet with alternate text and HTML using:
<applet codebase="class pathname" code="class name" width="value" height="value" alt="alternate text"> text and/or HTML </applet>
With Java enabled only the applet should display below:
With Java disabled
you should see the following alternate-text followed
by any text and/or HTML contained inside our sample applet:
[The 'Jitter Text' Java Applet!]
The JitterText applet is a spinoff from Sun's NervousText applet. It does a slightly better job spacing the text as it dances about, and also provides the option to display each character of the text in a random pattern of colors. Clicking on JitterText pauses its animation, and displays the text normally. Clicking again resumes the animation.