зеркало из https://github.com/mozilla/gecko-dev.git
Bug 445004 followup: Use parent instead of top for tests. r=roc
This commit is contained in:
Родитель
7945609a52
Коммит
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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче