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

Side by Side Diff: LayoutTests/fast/files/file-reader-abort.html

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <input type="file" name="file" id="file" onchange="onInputFileChange()"> 4 <input type="file" name="file" id="file" onchange="onInputFileChange()">
5 <pre id='console'></pre> 5 <pre id='console'></pre>
6 6
7 <script> 7 <script>
8 function log(message) 8 function log(message)
9 { 9 {
10 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n")); 10 document.getElementById('console').appendChild(document.createTextNode(messa ge + "\n"));
(...skipping 22 matching lines...) Expand all
33 reader.onabort = function() { 33 reader.onabort = function() {
34 log("Received abort event"); 34 log("Received abort event");
35 }; 35 };
36 reader.onerror = function(event) { 36 reader.onerror = function(event) {
37 log("Received error event: " + event.target.error.code); 37 log("Received error event: " + event.target.error.code);
38 }; 38 };
39 } 39 }
40 40
41 function runTests() 41 function runTests()
42 { 42 {
43 // Mouse events only work after an initial layout
44 document.body.offsetLeft;
45 eventSender.beginDragWithFiles(['resources/UTF8.txt']); 43 eventSender.beginDragWithFiles(['resources/UTF8.txt']);
46 eventSender.mouseMoveTo(10, 10); 44 eventSender.mouseMoveTo(10, 10);
47 eventSender.mouseUp(); 45 eventSender.mouseUp();
48 } 46 }
49 47
50 if (window.eventSender) { 48 if (window.eventSender) {
51 testRunner.dumpAsText(); 49 testRunner.dumpAsText();
52 testRunner.waitUntilDone(); 50 testRunner.waitUntilDone();
53 window.onload = runTests; 51 window.onload = runTests;
54 } 52 }
55 </script> 53 </script>
56 </body> 54 </body>
57 </html> 55 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/file-list-test.html ('k') | LayoutTests/fast/files/file-reader-event-listener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698