jsr/sret should be removed
[WebKit-https.git] / LayoutTests / java / embedding-java-with-object.html
1 <html>
2 <head>
3 <meta charset="utf-8">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 <script>
6 if (window.layoutTestController)
7     layoutTestController.overridePreference("WebKitJavaEnabled", "1");
8 </script>
9 </head>
10 <body>
11 <div id="description"></div>
12 <div id="console"></div>
13
14 <object name="objectWithJavaClassId" type="application/x-java-applet" classid="java:SharedApplet.class"></object>
15
16 <object name="objectWithJavaType" type="application/x-java-applet" code="SharedApplet.class"></object>
17
18 <object name="objectWithClassIdBeforeType" classid="java:SharedApplet.class" type="application/x-java-applet"></object>
19
20 <object name="objectWithCodeBeforeType" code="SharedApplet.class" type="application/x-java-applet"></object>
21
22 <object name="objectWithActiveXClassId" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93">
23     <object name="fallbackObjectWithJavaClassId" type="application/x-java-applet" classid="java:SharedApplet.class"></object>
24 </object>
25
26 <script>
27 description("Test that Java applets can be embedded using the object element. Applet resources should be able to be specified using the classid or code attribute. Fallback content should be rendered if the object uses an IE-specific classid.");
28
29 shouldBeNonNull("document.objectWithJavaClassId");
30 shouldBeNonNull("document.objectWithJavaClassId.getSelf()");
31 shouldBeNonNull("document.objectWithJavaType");
32 shouldBeNonNull("document.objectWithJavaType.getSelf()");
33 shouldBeNonNull("document.objectWithClassIdBeforeType");
34 shouldBeNonNull("document.objectWithClassIdBeforeType.getSelf()");
35 shouldBeNonNull("document.objectWithCodeBeforeType");
36 shouldBeNonNull("document.objectWithCodeBeforeType.getSelf()");
37 shouldBeUndefined("document.objectWithActiveXClassId");
38 shouldBeNonNull("document.fallbackObjectWithJavaClassId");
39 shouldBeNonNull("document.fallbackObjectWithJavaClassId.getSelf()");
40
41 </script>
42 <script src="../fast/js/resources/js-test-post.js"></script>
43 </body>
44 </html>