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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/text/text-set-selection-crash.html

Issue 2269043002: Reland of Remove EventSender from HTMLStyleElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deflake Created 4 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/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>

Powered by Google App Engine
This is Rietveld 408576698