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

Applets: OBJECT (CODEBASE)

This test case tests the <object> 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 OBJECT without using CODEBASE
(using <object data="class name"> </object>)

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

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

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

Test Case #3: sample displaying an OBJECT using CODEBASE with an absolute URL
(using <object data=absolute class pathname data="class name"> </object>)

The OBJECT runs from the codebase absolute class pathname