2 <body onload=
"runTest()">
3 <p>This test makes sure we can open SVG documents in Dashboard compatibility mode. It can not be tested manually.
</p>
5 if (window
.testRunner
) {
6 testRunner
.setUseDashboardCompatibilityMode(true);
7 testRunner
.dumpAsText();
8 testRunner
.waitUntilDone();
12 var c
= document
.getElementById('console')
13 c
.appendChild(document
.createTextNode(str
+ '\n'));
21 svgDoc
= document
.getElementById('svgObject').getSVGDocument();
26 debug("PASS: Loaded SVG document in <object> tag.");
29 debug("FAIL: Did not load SVG document in <object> tag");
32 svgDoc
= document
.getElementById('svgEmbed').getSVGDocument();
37 debug("PASS: Loaded SVG document in <element> tag.");
40 debug("FAIL: Did not load SVG document in <element> tag");
43 svgDoc
= document
.getElementById('svgIFrame').getSVGDocument();
48 debug("PASS: Loaded SVG document in <iframe> tag.");
51 debug("FAIL: Did not load SVG document in <iframe> tag");
54 debug("PASS: SVG Documents were loaded");
56 debug("FAIL: SVG Documents were not loaded");
58 debug("FAIL: Exception thrown: " + e
)
60 if (window
.testRunner
)
61 testRunner
.notifyDone();
65 <object id=
"svgObject" data=
"../W3C-SVG-1.1/text-ws-02-t.svg" width=
"100px" height=
"100px"></object>
66 <embed id=
"svgEmbed" src=
"../W3C-SVG-1.1/text-ws-02-t.svg" width=
"100px" height=
"100px"></embed>
67 <iframe id=
"svgIFrame" src=
"../W3C-SVG-1.1/text-ws-02-t.svg" width=
"100px" height=
"100px"></iframe>
68 <pre id=
"console"></pre>