2 <body onload=
"notifyLoaded()">
4 function notifyLoaded() {
8 // After the top frame has accessed the document of this frame, we
9 // test that the document wrapper was created in this context and
10 // not in the top context.
12 var paragraph
= document
.createElement('p');
13 if (HTMLElement
.prototype.isPrototypeOf(paragraph
)) {
14 top
.writeOutput("PASS");
16 top
.writeOutput("FAIL");
18 if (window
.testRunner
) {
19 testRunner
.notifyDone();