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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html

Issue 1424593002: Update layout tests to use internals.visualViewport APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo delete test that depends on "inert-visual-viewport" flag Created 5 years, 2 months 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 | third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html b/third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html
index d9bd6829cf164e887b029770fb5e065405e1a83d..a9c3e55ec80bd57f0473ee4271cd75fb3ce56280 100644
--- a/third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html
+++ b/third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom.html
@@ -40,11 +40,12 @@ if (window.eventSender) {
eventSender.gesturePinchBegin('touchpad', 150, 100);
eventSender.gesturePinchUpdate('touchpad', 150, 100, 2.0);
eventSender.gesturePinchEnd('touchpad', 150, 100);
- shouldBe('window.innerWidth', '400');
- shouldBe('window.innerHeight', '300');
- shouldBe('window.scrollX', '75');
- shouldBe('window.scrollY', '50');
-
shouldBeFalse('gotWheelEvent');
+ if (window.internals) {
+ shouldBe('internals.visualViewportWidth()', '400');
+ shouldBe('internals.visualViewportHeight()', '300');
+ shouldBe('internals.visualViewportScrollX()', '75');
+ shouldBe('internals.visualViewportScrollY()', '50');
+ }
}
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/gesture-pinch-zoom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698