Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: LayoutTests/fast/html/navigation-transition.html

Issue 654953002: Navigation transitions (web to native app): Get names and rects of transition elements (Step 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review fix Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/html/navigation-transition-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/navigation-transition.html
diff --git a/LayoutTests/fast/html/navigation-transition.html b/LayoutTests/fast/html/navigation-transition.html
index b6e93f0cefbf01e8773bcf255e9b3be581a0fe58..f3404167d7fde50237c26d10606e6ad335932f78 100644
--- a/LayoutTests/fast/html/navigation-transition.html
+++ b/LayoutTests/fast/html/navigation-transition.html
@@ -4,7 +4,7 @@
<script src="../../resources/js-test.js"></script>
<script>
-description('Tests for the HTML markup serializer used for transition elements');
+description('Tests for the HTML markup serializer used for transition elements and transition element names and rects');
jsTestIsAsync = true;
window.onload = function() {
@@ -41,6 +41,22 @@ window.onload = function() {
shouldBe('preHidingBottomElementRect.top', 'postHidingBottomElementRect.top');
shouldBe('preHidingBottomElementRect.left', 'postHidingBottomElementRect.left');
+ transitionElementIds = internals.getTransitionElementIds();
+ shouldBeEqualToString('transitionElementIds[0]', 'transitionElement');
+ shouldBeEqualToString('transitionElementIds[1]', 'boxTransitionElement');
+
+ transitionElementRects = internals.getTransitionElementRects();
+ transitionElementBounds = internals.boundsInRootViewSpace(transitionElement);
+ boxTransitionElementBounds = internals.boundsInRootViewSpace(sourceElement);
+ shouldBeTrue('transitionElementRects[0].left == transitionElementBounds.left');
+ shouldBeTrue('transitionElementRects[0].top == transitionElementBounds.top');
+ shouldBeTrue('transitionElementRects[0].width == transitionElementBounds.width');
+ shouldBeTrue('transitionElementRects[0].height == transitionElementBounds.height');
+ shouldBeTrue('transitionElementRects[1].left == boxTransitionElementBounds.left');
+ shouldBeTrue('transitionElementRects[1].top == boxTransitionElementBounds.top');
+ shouldBeTrue('transitionElementRects[1].width == boxTransitionElementBounds.width');
+ shouldBeTrue('transitionElementRects[1].height == boxTransitionElementBounds.height');
+
finishJSTest();
}
}
« no previous file with comments | « no previous file | LayoutTests/fast/html/navigation-transition-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698