Index: third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html b/third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html |
index c0983369e44453a2e6fcded76b4b57b49a9a6cc9..d9ec4c39c3664d8e2f67e0917753f38cfb499aec 100644 |
--- a/third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html |
+++ b/third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html |
@@ -1,13 +1,14 @@ |
<body> |
-<script src="../../../resources/js-test.js"></script> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
<applet code=""><input><embed type="application/x-blink-test-plugin" width="200"></embed></applet> |
<script> |
-description('There was a bug that HTMLTextFormControlElement::setSelectionRange crashed. This test requires ASAN or something.'); |
-jsTestIsAsync = true; |
+var t = async_test('There was a bug that HTMLTextFormControlElement::setSelectionRange crashed. This test requires ASAN or something.'); |
document.body.onload = function() { |
- document.getElementsByTagName('input')[0].focus(); |
- testPassed('if not crash.'); |
- finishJSTest(); |
+ t.step(function() { |
yhirano
2016/11/08 06:25:54
Can you tell me why this |t.step| is needed?
hiroshige
2016/11/08 06:38:37
Removing t.step() also works.
|
+ document.getElementsByTagName('input')[0].focus(); |
+ }, 'passed if not crash.'); |
+ t.done(); |
}; |
</script> |
</body> |