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; |