You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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.
  1. Verify that the sample displays correctly for the following test case.
  2. Verify that the java applet is maintained when you minimize/maximize the screen.
  3. Verify that the java applet is maintained when you re-size left & right the screen.
  4. Verify that the java applet is maintained when you re-size top & bottom the screen.
  5. Verify re-draw takes place correctly after maximizing the screen.
  6. 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:

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.

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.