Index: third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html |
diff --git a/third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html b/third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html |
index 250b4950bb8b4905d64b1d6e96e60ca218c8ea2f..038cc9523a6107e9e4e3301ba63e23d8c59cf0cd 100644 |
--- a/third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html |
+++ b/third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html |
@@ -1,52 +1,27 @@ |
-<html> |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
<head> |
-<script> |
-if (window.testRunner) |
- testRunner.dumpEditingCallbacks(); |
-</script> |
- |
<style> |
body { margin: 0; padding: 0 } |
</style> |
<script type="text/javascript"> |
-function step4() |
-{ |
- eventSender.mouseUp(); |
- testRunner.notifyDone(); |
-} |
- |
-function step3() |
-{ |
+test(function() { |
+ if (!window.eventSender) |
+ return; |
+ eventSender.mouseMoveTo(50, 10); |
eventSender.mouseDown(); |
- window.setTimeout(step4, 1); |
-} |
- |
-function step2() |
-{ |
eventSender.mouseUp(); |
- window.setTimeout(step3, 100); |
-} |
- |
-function step1() |
-{ |
eventSender.mouseDown(); |
- window.setTimeout(step2, 1); |
-} |
- |
-function step0() |
-{ |
- eventSender.mouseMoveTo(50, 10); |
- window.setTimeout(step1, 1); |
-} |
- |
-onload = step0; |
-testRunner.waitUntilDone(); |
+ eventSender.mouseUp(); |
+}) |
</script> |
</head> |
<body> |
<pre> |
Test. |
Test. |
+<div id="log"></div> |
</body> |
</html> |
<!-- http://bugzilla.opendarwin.org/show_bug.cgi?id=3739 - only testing for crashing, not the actual results. --> |