mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
Bug 445004 followup: Use parent instead of top for tests. r=roc
This commit is contained in:
parent
7945609a52
commit
3dc780cf46
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user