summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/drag-opacity-crash.html
blob: 84ece9a0689d77eaefc95520e532a8bbe9ee6767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML>
<html>
<style>
    #crasher {
        width: 200px;
        height: 200px;
        background-color: tomato;
    }
</style>
Test for crbug.com/354373: This test passes if it does not crash.<br/>
<div id="crasher" draggable="true"></div>
<script>
    onload = function() {
        document.getElementById('crasher').addEventListener('dragstart', function() {
            this.style.opacity = '0.5';
        });
        eventSender.mouseMoveTo(75, 75);
        eventSender.mouseDown();
        eventSender.mouseMoveTo(500, 400);
        eventSender.mouseUp();

        if (window.testRunner)
            testRunner.dumpAsText();
    }
</script>
</html>