OLD | NEW |
---|---|
(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> | |
OLD | NEW |