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 #5 for applets within <applet>: codebase attribute

Applets: APPLET (CODEBASE)

This test case tests the <applet> tag with its optional codebase attribute which specifies the base URL location of the java applet class file. It enables a java-capable browser to find the applet class files when they are stored in a different directory than that of your HTML files.

Test Instructions

  1. Verify that the sample java applet displays as stated in each of the following test cases:
  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 #1: sample displaying an APPLET without using CODEBASE
(using <applet code="class name"> </applet>)

The APPLET runs from the "current document URL" when codebase is not used

Test Case #2: sample displaying an APPLET using CODEBASE with a relative URL
(using <applet codebase=relative class pathname code="class name"> </applet>)

The APPLET runs from a "URL" relative to the codebase relative class pathname

Test Case #3: sample displaying an APPLET using CODEBASE with an absolute URL
(using <applet code=absolute class pathname code="class name"> </applet>)

The APPLET runs from the codebase absolute class pathname