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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html

Issue 2101393002: Make visualViewport.scrollTop/Left readonly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/dom/viewport/verify-viewport-dimensions.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html b/third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html
index 56f8182d3615019e78263e52bb2ef7cce420e80c..b80ad596acabaaa33bd3146bb877144103176232 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/viewport/scroll-resize-events-fired.html
@@ -19,25 +19,6 @@
var t = async_test('verify that the scroll and resize events get fired on window.visualViewport');
- function verifySetViewportOffsets() {
- // Set viewport offset.
- window.visualViewport.scrollTop = 20;
- requestAnimationFrame(function() {
- t.step(function() {
- assert_equals(numCallsScroll, 2, "scroll listener called for scrollTop");
- assert_equals(numCallsResize, 1, "resize listener not called for scrollTop");
- });
- window.visualViewport.scrollLeft = 0;
- requestAnimationFrame(function() {
- t.step(function() {
- assert_equals(numCallsScroll, 3, "scroll listener called for scrollLeft");
- assert_equals(numCallsResize, 1, "resize listener not called for scrollLeft");
- });
- t.done();
- });
- });
- }
-
window.onload = t.step_func(function() {
// Turn off smooth scrolling.
internals.settings.setScrollAnimatorEnabled(false);
@@ -72,7 +53,7 @@
assert_equals(numCallsScroll, 1, "scroll listener called for offset change");
assert_equals(numCallsResize, 1, "resize listener not called for offset change");
});
- verifySetViewportOffsets();
+ t.done();
});
});
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/viewport/verify-viewport-dimensions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698