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

Unified Diff: ManualTests/resize-events.html

Issue 9812042: Revert 106232 - .: Manual test of number of resize events emitted during page generation. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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 | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ManualTests/resize-events.html
===================================================================
--- ManualTests/resize-events.html (revision 111645)
+++ ManualTests/resize-events.html (working copy)
@@ -1,48 +0,0 @@
-<html>
-<head>
- <style>
- div.block { height: 100px; border: 1px solid black; margin:10px; }
- </style>
- <script>
- var resizecount = 0;
- var loaded = false;
- window.onresize = function() {
- resizecount++;
- document.getElementById('count1').innerHTML = resizecount;
- }
- </script>
-</head>
-<body>
- <div>
- Test how many resize events are emitted during page load and dynamic content generation.
-
- Do not resize the page. It invalidates the test.
- <p style="text-indent: 10px" id=result1>
- Resize events (should be 0 or 1): <span id=count1>0</span>
- </div>
- <div id=expandingblock>
- </div>
- <script>
- var blockcount = 0;
- function addBlock() {
- var el = document.createElement('div');
- el.setAttribute('class','block');
- document.getElementById('expandingblock').appendChild(el);
- if (++blockcount < 30)
- setTimeout(addBlock, 20);
- else
- finish();
- }
- function finish() {
- var result;
- // 0 or 1 resize events are acceptable.
- if (resizecount < 2)
- result = '<p style="color: green">PASS';
- else
- result = '<p style="color: red">FAIL';
- var resultElement = document.getElementById('result1')
- resultElement.innerHTML += result;
- }
- onload = addBlock;
- </script>
-</body>
« no previous file with comments | « no previous file | Source/WebCore/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698