mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 771273 - Part 5: Add test for window.content. r=bz
This commit is contained in:
parent
c5d51c56b6
commit
1abc43da9a
@ -38,11 +38,13 @@ function outerIframeLoaded() {
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
is(content.window.top, content.window, 'top'); \
|
is(content.window.top, content.window, 'top'); \
|
||||||
|
is(content.window.content, content.window, 'content'); \
|
||||||
is(content.window.parent, content.window, 'parent'); \
|
is(content.window.parent, content.window, 'parent'); \
|
||||||
is(content.window.frameElement, null, 'frameElement'); \
|
is(content.window.frameElement, null, 'frameElement'); \
|
||||||
var innerIframe = content.document.getElementById('inner-iframe'); \
|
var innerIframe = content.document.getElementById('inner-iframe'); \
|
||||||
var innerWindow = innerIframe.contentWindow; \
|
var innerWindow = innerIframe.contentWindow; \
|
||||||
is(innerWindow.top, content.window, 'inner top'); \
|
is(innerWindow.top, content.window, 'inner top'); \
|
||||||
|
is(innerWindow.content, content.window, 'inner content'); \
|
||||||
is(innerWindow.parent, content.window, 'inner parent'); \
|
is(innerWindow.parent, content.window, 'inner parent'); \
|
||||||
is(innerWindow.frameElement, innerIframe, 'inner frameElement');"
|
is(innerWindow.frameElement, innerIframe, 'inner frameElement');"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user