From 049991792da2227508aaeef253a40408451893bd Mon Sep 17 00:00:00 2001 From: "slightlyoff@chromium.org" Date: Thu, 19 Nov 2009 03:54:51 +0000 Subject: Updates test to use new document location for overlay nodes. BUG=none TEST=none TBR=iyengar Review URL: http://codereview.chromium.org/405029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32489 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/test/data/CFInstall_overlay.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chrome_frame/test/data') diff --git a/chrome_frame/test/data/CFInstall_overlay.html b/chrome_frame/test/data/CFInstall_overlay.html index 1d17422..0478b2f 100644 --- a/chrome_frame/test/data/CFInstall_overlay.html +++ b/chrome_frame/test/data/CFInstall_overlay.html @@ -39,16 +39,16 @@ return; } - var lc = document.body.lastChild; + var fc = document.body.firstChild; - if (lc.nodeType != 1 || !lc.firstChild && - lc.firstChild != byId('chromeFrameOverlayUnderlay')) { + if (fc.nodeType != 1 || !fc.firstChild && + fc.firstChild != byId('chromeFrameOverlayUnderlay')) { onFailure(testName, 1, 'underlay placed incorrectly'); return; } - if (lc.nodeType != 1 || !lc.firstChild && - lc.firstChild.nextSibling != byId('chromeFrameOverlayContent')) { + if (fc.nodeType != 1 || !fc.firstChild && + fc.nextSibling != byId('chromeFrameOverlayContent')) { onFailure(testName, 1, 'prompt placed incorrectly'); return; } -- cgit v1.1