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

Side by Side Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-noscroll-body-propagated.html

Issue 54473004: Make js-test-post a noop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add mac NeedsRebaselines Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
5 <script src="../../../js/resources/js-test-pre.js"></script> 5 <script src="../../../js/resources/js-test-pre.js"></script>
6 <script src="resources/gesture-helpers.js"></script> 6 <script src="resources/gesture-helpers.js"></script>
7 <style type="text/css"> 7 <style type="text/css">
8 #touchtarget { 8 #touchtarget {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Wait for layout. 116 // Wait for layout.
117 checkScrollOffset(); 117 checkScrollOffset();
118 118
119 // In this test we do not expect any scroll events to 119 // In this test we do not expect any scroll events to
120 // be received by the event listener, so we signal 120 // be received by the event listener, so we signal
121 // the end of the test by calling this function instead 121 // the end of the test by calling this function instead
122 // of relying on recordScroll() to do it. 122 // of relying on recordScroll() to do it.
123 finishTest(); 123 finishTest();
124 } 124 }
125 125
126 window.jsTestIsAsync = true;
126 if (window.testRunner) 127 if (window.testRunner)
127 testRunner.waitUntilDone(); 128 testRunner.waitUntilDone();
128 129
129 function runTest() 130 function runTest()
130 { 131 {
131 buildPage(); 132 buildPage();
132 if (window.eventSender) { 133 if (window.eventSender) {
133 description('This tests that a page cannot be scrolled vertically with t ouch if its body has style overflow-y:hidden ' + 134 description('This tests that a page cannot be scrolled vertically with t ouch if its body has style overflow-y:hidden ' +
134 'and the scroll event is propogated from a scrollable child div.'); 135 'and the scroll event is propogated from a scrollable child div.');
135 136
136 if (checkTestDependencies()) 137 if (checkTestDependencies())
137 firstGestureScroll(); 138 firstGestureScroll();
138 else 139 else
139 exitIfNecessary(); 140 exitIfNecessary();
140 } else { 141 } else {
141 debug("This test requires DumpRenderTree. Touch scroll the red rect to log."); 142 debug("This test requires DumpRenderTree. Touch scroll the red rect to log.");
142 } 143 }
143 } 144 }
144 145
145 function finishTest() 146 function finishTest()
146 { 147 {
147 if (window.eventSender) { 148 if (window.eventSender) {
148 if (gesturesOccurred == expectedGesturesTotal) { 149 if (gesturesOccurred == expectedGesturesTotal) {
149 shouldBe('scrollEventsOccurred', expectedScrollEventsOccurred); 150 shouldBe('scrollEventsOccurred', expectedScrollEventsOccurred);
150 successfullyParsed = true; 151 successfullyParsed = true;
151 isSuccessfullyParsed(); 152 finishJSTest();
152 if (window.testRunner)
153 testRunner.notifyDone();
154 } 153 }
155 } 154 }
156 } 155 }
157 </script> 156 </script>
158 </body> 157 </body>
159 </html> 158 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698