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

Unified Diff: LayoutTests/fast/events/resize-events.html

Issue 14766010: Clarify the size of a document view (a.k.a layout size) that causes FrameView to emit the resize ev… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add new test: fast/events/resize-events-count.html Created 7 years, 7 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
Index: LayoutTests/fast/events/resize-events.html
diff --git a/LayoutTests/fast/events/resize-events.html b/LayoutTests/fast/events/resize-events.html
index 3e005a9846950949fcebe1a42acdb5ecc229d820..be5395dd8e80d590a969e1042cd27f7d844b29f4 100644
--- a/LayoutTests/fast/events/resize-events.html
+++ b/LayoutTests/fast/events/resize-events.html
@@ -14,7 +14,11 @@
</head>
<body>
<div>
- Test how many resize events are emitted during page load and dynamic content generation.
+ Following actions must not emit resize event.
+ - page load
+ - dynamic content generation
+ - page scaling
+ - changing fixed layout size
Do not resize the page. It invalidates the test.
<p style="text-indent: 10px" id=result1>
@@ -36,7 +40,17 @@
if (++blockcount < 10)
setTimeout(addBlock, 20);
else
- finish();
+ scalePage();
+ }
+ function scalePage() {
+ if (window.internals)
+ window.internals.setPageScaleFactor(3, 0, 0);
+ setTimeout(changeFixedLayoutSize, 20);
+ }
+ function changeFixedLayoutSize() {
+ if (window.testRunner)
+ testRunner.setFixedLayoutSize(1600, 1600);
+ setTimeout(finish, 20);
}
function finish() {
var result;
« no previous file with comments | « no previous file | LayoutTests/fast/events/resize-events-count.html » ('j') | LayoutTests/fast/events/resize-events-count.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698