| Index: LayoutTests/fast/html/navigation-transition.html
|
| diff --git a/LayoutTests/fast/html/navigation-transition.html b/LayoutTests/fast/html/navigation-transition.html
|
| index 1220df12e44cb3023bfc459edce70d1d574c4e6c..1dfea03b9c4411b91adb032119faa331fe523589 100644
|
| --- a/LayoutTests/fast/html/navigation-transition.html
|
| +++ b/LayoutTests/fast/html/navigation-transition.html
|
| @@ -9,19 +9,38 @@ jsTestIsAsync = true;
|
|
|
| window.onload = function() {
|
| if (window.internals) {
|
| - var serializedHTML = internals.serializeNavigationMarkup(document);
|
| + var serializedHTML = internals.serializeNavigationMarkup();
|
| var testiframe = document.getElementById('testiframe');
|
| testiframe.contentDocument.write(serializedHTML);
|
|
|
| + transitionElement = document.getElementById('transitionElement');
|
| sourceElement = document.getElementById('boxTransitionElement');
|
| destElement = testiframe.contentDocument.getElementById('boxTransitionElement');
|
|
|
| sourceElementRect = sourceElement.getBoundingClientRect();
|
| +
|
| + bottomElement = document.getElementById('bottomElement');
|
| +
|
| + preHidingBottomElementRect = bottomElement.getBoundingClientRect();
|
| + preHidingTransitionElementVisibility = window.getComputedStyle(transitionElement).visibility;
|
| +
|
| + internals.hideAllTransitionElements();
|
| +
|
| + postHidingTransitionElementVisibility = window.getComputedStyle(transitionElement).visibility;
|
| + postHidingBottomElementRect = bottomElement.getBoundingClientRect();
|
| +
|
| shouldBe('sourceElementRect.top', 'destElement.offsetTop');
|
| shouldBe('sourceElementRect.left', 'destElement.offsetLeft');
|
| shouldBe('sourceElementRect.height', 'destElement.offsetHeight');
|
| shouldBe('sourceElementRect.width', 'destElement.offsetWidth');
|
|
|
| + shouldBeTrue('preHidingTransitionElementVisibility == "visible"');
|
| + shouldBeTrue('postHidingTransitionElementVisibility == "hidden"');
|
| +
|
| + // Hiding transition elements should not shift any other elements on the page.
|
| + shouldBe('preHidingBottomElementRect.top', 'postHidingBottomElementRect.top');
|
| + shouldBe('preHidingBottomElementRect.left', 'postHidingBottomElementRect.left');
|
| +
|
| finishJSTest();
|
| }
|
| }
|
| @@ -70,11 +89,13 @@ body {
|
| </style>
|
|
|
| <div id="wrappingElement">
|
| - <div id="transitionElement">This text should appear twice.</div>
|
| + <div id="transitionElement">Header</div>
|
|
|
| <div id="boxTransitionElement">
|
| <img id="blueBox" src="resources/images/blue.png">
|
| </div>
|
| +
|
| + <div id="bottomElement">Footer</div>
|
| </div>
|
|
|
| <iframe id="testiframe"></iframe>
|
|
|