Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/doubleclick-crash.html

Issue 1477123002: Rewrite doubleclick-crash.html layouttest with w3c testharness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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. -->

Powered by Google App Engine
This is Rietveld 408576698