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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/drag-nested-eventSender-use.html

Issue 1718463002: Gracefully handle nested eventSender.beginDragWithFiles() attempts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <body>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 description("Test that unsupported nested use of eventSender.beginDragWithFiles( ) is handled without crashing.");
7
8 window.jsTestIsAsync = true;
dcheng 2016/02/19 18:16:27 Does the test need to be async?
sof 2016/02/19 18:37:48 Most tests in this directory are keyed off onload,
dcheng 2016/02/19 18:39:21 If the test runs synchronously in onload, making i
sof 2016/02/19 20:03:17 De-async'ified the test; works fine.
9
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 }
14
15 function runTest()
16 {
17 eventSender.beginDragWithFiles(["resources/empty.html"]);
18 eventSender.beginDragWithFiles(["resources/empty.html"]);
19 eventSender.mouseMoveTo(10, 10);
20 eventSender.mouseUp();
21 }
22 window.onload = function () {
23 shouldThrow("runTest()");
24 finishJSTest();
25 };
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698