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 <object> tag > Test Case #3 for applets within <object>: alternate content

Applets: OBJECT (alternate content - text and/or HTML - as contents of <object>)

This test case tests the <object> element with text and/or HTML as embedded alternate content of <object> that is displayed by browsers that either do not the understand the <object> element or do understand the <object> element but cannot actually run the applets. The embedded alternate text and/or HTML is 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 <object>...</object> 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 <object codebase=class pathname data="class name" width="value" height="value"> embedded alternate content: text and/or HTML</object>)

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 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.