Bug 771273 - Part 5: Add test for window.content. r=bz

This commit is contained in:
Justin Lebar 2012-07-23 13:47:34 -04:00
parent c5d51c56b6
commit 1abc43da9a

View File

@ -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');"