diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebCore/manual-tests/drag-enter-alert.html | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/manual-tests/drag-enter-alert.html')
-rw-r--r-- | WebCore/manual-tests/drag-enter-alert.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/WebCore/manual-tests/drag-enter-alert.html b/WebCore/manual-tests/drag-enter-alert.html new file mode 100644 index 0000000..e563923 --- /dev/null +++ b/WebCore/manual-tests/drag-enter-alert.html @@ -0,0 +1,29 @@ +<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> |