| Index: LayoutTests/plugins/change-widget-and-click-crash.html
|
| diff --git a/LayoutTests/plugins/change-widget-and-click-crash.html b/LayoutTests/plugins/change-widget-and-click-crash.html
|
| index 7196af78fd2c5f5230b5e1fe1df8383fd2e11d8c..eaaf536d824fea9f1c3e8cf1365a9bd67ec47895 100644
|
| --- a/LayoutTests/plugins/change-widget-and-click-crash.html
|
| +++ b/LayoutTests/plugins/change-widget-and-click-crash.html
|
| @@ -1,35 +1,35 @@
|
| -<html>
|
| -<script>
|
| -function clickElement(element) {
|
| - if (window.eventSender) {
|
| - var centerX = element.offsetLeft + element.offsetWidth / 2;
|
| - var centerY = element.offsetTop + element.offsetHeight / 2;
|
| - eventSender.mouseMoveTo(centerX, centerY);
|
| - eventSender.mouseDown();
|
| - }
|
| -}
|
| -
|
| -function crash() {
|
| - var x = document.getElementById('x');
|
| - x.setAttribute('data', x.data);
|
| - clickElement(x);
|
| - document.body.innerHTML = "PASS";
|
| -
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| -}
|
| -
|
| -function load() {
|
| - if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| - }
|
| - setTimeout(crash, 0);
|
| -}
|
| -</script>
|
| -<body onload="load()">
|
| - <object id="x" data="x" border="1" type="application/x-webkit-test-netscape">
|
| - <param name="wmode" value="transparent">
|
| - </object>
|
| -</body>
|
| -</html>
|
| +<html>
|
| +<script>
|
| +function clickElement(element) {
|
| + if (window.eventSender) {
|
| + var centerX = element.offsetLeft + element.offsetWidth / 2;
|
| + var centerY = element.offsetTop + element.offsetHeight / 2;
|
| + eventSender.mouseMoveTo(centerX, centerY);
|
| + eventSender.mouseDown();
|
| + }
|
| +}
|
| +
|
| +function crash() {
|
| + var x = document.getElementById('x');
|
| + x.setAttribute('data', x.data);
|
| + clickElement(x);
|
| + document.body.innerHTML = "PASS";
|
| +
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}
|
| +
|
| +function load() {
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
| + setTimeout(crash, 0);
|
| +}
|
| +</script>
|
| +<body onload="load()">
|
| + <object id="x" data="x" border="1" type="application/x-webkit-test-netscape">
|
| + <param name="wmode" value="transparent">
|
| + </object>
|
| +</body>
|
| +</html>
|
|
|