Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: third_party/WebKit/LayoutTests/dom/html/level2/html/AppletsCollection.html

Issue 2675803006: Move DOM conformance tests to dom/legacy_dom_conformance/, part 6/8. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/dom/html/level2/html/AppletsCollection-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Fix for 13636</title>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 }
8
9 function outputAppletsLength() {
10 document.write("<p>");
11 if (document.applets)
12 document.write("Applets length is currently " + document.applets.len gth);
13 else
14 document.write("There is no applets collection yet");
15 document.write("</p>");
16 }
17
18 </script>
19 </head>
20 <body>
21 <p>This test demonstrates a couple of object tags being added that do not contai n Java applets. Previously these Object element would be included in the docume nt.applets collection even though the spec says that collection should contain o nly Applet elements and Object elements that contain applets.</p>
22 <p>As the document is parsed, javascript will output the size of the document.ap plets collection after each Object tag is inserted into the document. For this test the count should always be zero.</p>
23 <p>Tragically we cannot have any actual Java Applets referenced here because whe n DRT loads the Java VM it hangs. If that bug is resolved this test should also be amended to add a dummy Applet using both the Applet tag and a few different uses of the Object tag.</p>
24
25 <script>outputAppletsLength();</script>
26
27 <object type="application/not-a-real-applet" width=500 height=50>
28 <param name="code" value="ZOMG.class">
29 <param name="text" value="ZOMG OBJECT JAVA APPLET (but not really!)">
30 </object>
31
32 <script>outputAppletsLength();</script>
33
34 <object width=500 height=50>
35 Nothing here!
36 </object>
37
38 <script>outputAppletsLength();</script>
39
40 <object data="w3c_main.png" type="image/png">
41 </object>
42
43 <script>outputAppletsLength();</script>
44
45 </body>
46 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/dom/html/level2/html/AppletsCollection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698