4 function print(message
) {
5 var paragraph
= document
.createElement("p");
6 paragraph
.appendChild(document
.createTextNode(message
));
7 document
.getElementById("console").appendChild(paragraph
);
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
17 var embeds
= document
.embeds
;
18 var plugins
= document
.plugins
;
20 if (embeds
[0].id
!= 'embed0' || embeds
[1].id
!= 'embed1')
22 if (plugins
[0] != embeds
[0] || plugins
[1] != embeds
[1])
25 print(pass
? "PASS" : "FAIL");
29 <body onload=
"test();">
30 <p>This test checks for whether document.plugins matches document.embeds.
</p>
31 <p>If the test passes, you will see a pass message below.
</p>
33 <div id='console'
></div>
34 <embed id = 'embed0' width=
0 height=
0>
35 <embed id = 'embed1' width=
0 height=
0>