blob: e563923eb870f00172a67dfe523c9b07275a7e4b [file] [log] [blame]
<html>
<head>
<script type="text/javascript">
function test() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
var element = document.documentElement;
var showAlert = function() {
alert('Click OK button.');
};
if (element.addEventListener)
element.addEventListener('dragenter', showAlert, false);
else
element.attachEvent('ondragenter', showAlert);
}
</script>
</head>
<body onload="test()">
<p>Do the following and see if Webkit crashes.</p>
<ul>
<li>Drag the image</li>
<li>Click the OK button on the alert box</li>
</ul>
<img id="dragimage" src="resources/drag-image.png" width="32px" height="32px">
</body>
</html>