Bug 445004 followup: Use parent instead of top for tests. r=roc

This commit is contained in:
Dave Camp 2008-11-18 17:00:15 -08:00
parent 7945609a52
commit 3dc780cf46

View File

@ -4,18 +4,18 @@
<script>
function test_func() {
var bar = new Option();
top.is(bar.ownerDocument, document,
parent.is(bar.ownerDocument, document,
"Unexpected document for our new option");
bar = new Image();
top.is(bar.ownerDocument, document,
parent.is(bar.ownerDocument, document,
"Unexpected document for our new image");
bar = new top.Option();
top.is(bar.ownerDocument, top.document,
"Unexpected document for top new option");
bar = new top.Image();
top.is(bar.ownerDocument, top.document,
"Unexpected document for top new image");
top.isnot(top.document, document, "Documents should be different");
bar = new parent.Option();
parent.is(bar.ownerDocument, parent.document,
"Unexpected document for parent new option");
bar = new parent.Image();
parent.is(bar.ownerDocument, parent.document,
"Unexpected document for parent new image");
parent.isnot(parent.document, document, "Documents should be different");
}
</script>
</head>