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

Side by Side Diff: LayoutTests/fast/files/file-list-test.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 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <input type="file" multiple onchange="onInputFileChange(this.files)"> 7 <input type="file" multiple onchange="onInputFileChange(this.files)">
8 <div id="description"></div> 8 <div id="description"></div>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
(...skipping 14 matching lines...) Expand all
25 shouldBeTrue("files.item(0) === files.item(4294967296)"); 25 shouldBeTrue("files.item(0) === files.item(4294967296)");
26 shouldBeTrue("files.item(1) === files.item(4294967297)"); 26 shouldBeTrue("files.item(1) === files.item(4294967297)");
27 shouldBeTrue("files.item(2) === files.item(4294967298)"); 27 shouldBeTrue("files.item(2) === files.item(4294967298)");
28 shouldBeTrue("files.item(-1) === files.item(4294967295)"); 28 shouldBeTrue("files.item(-1) === files.item(4294967295)");
29 shouldBeTrue("files.item(-4294967295) === files.item(1)"); 29 shouldBeTrue("files.item(-4294967295) === files.item(1)");
30 shouldBeTrue("files.item(-4294967296) === files.item(0)"); 30 shouldBeTrue("files.item(-4294967296) === files.item(0)");
31 shouldBeTrue("files.item(null) === files.item(0)"); 31 shouldBeTrue("files.item(null) === files.item(0)");
32 shouldBeTrue("files.item(undefined) === files.item(0)"); 32 shouldBeTrue("files.item(undefined) === files.item(0)");
33 } 33 }
34 34
35 // Mouse events only work after an initial layout
36 document.body.offsetLeft;
37 eventSender.beginDragWithFiles(["resources/UTF8.txt", "resources/UTF8-2.txt"]); 35 eventSender.beginDragWithFiles(["resources/UTF8.txt", "resources/UTF8-2.txt"]);
38 eventSender.mouseMoveTo(10, 10); 36 eventSender.mouseMoveTo(10, 10);
39 eventSender.mouseUp(); 37 eventSender.mouseUp();
40 38
41 </script> 39 </script>
42 </body> 40 </body>
43 <script src="../js/resources/js-test-post.js"></script> 41 <script src="../js/resources/js-test-post.js"></script>
44 </html> 42 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/apply-blob-url-to-xhr.html ('k') | LayoutTests/fast/files/file-reader-abort.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698