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

Side by Side Diff: LayoutTests/fast/events/resize-events-count.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: use js-test-pre.js Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 div.block { height: 400px; border: 1px solid black; margin:10px; }
6 </style>
7 </head>
8 <body>
9 <div>
10 Test how many resize events are emitted during window resize.
11 </div>
12 <div id=expandingblock>
13 </div>
14 <pre id="console"></pre>
15 <script src="../js/resources/js-test-pre.js"></script>
16 <script>
17 var resizeEventCount = 0;
18 window.onresize = function() {
19 resizeEventCount++;
20 }
21
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 testRunner.waitUntilDone();
25 }
26 function resizeWindow() {
27 window.resizeBy(10, 10);
28 setTimeout(finish, 20);
29 }
30 function finish() {
31 // one resize event must be emitted.
32 shouldBe("resizeEventCount", "1");
33 if (window.testRunner)
34 testRunner.notifyDone();
35 }
36 window.onload = resizeWindow;
37 </script>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/resize-events.html ('k') | LayoutTests/fast/events/resize-events-count-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698