OLD | NEW |
---|---|
1 <body> | 1 <body> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/testharness.js"></script> |
3 <script src="../../../resources/testharnessreport.js"></script> | |
3 <applet code=""><input><embed type="application/x-blink-test-plugin" width="200" ></embed></applet> | 4 <applet code=""><input><embed type="application/x-blink-test-plugin" width="200" ></embed></applet> |
4 <script> | 5 <script> |
5 description('There was a bug that HTMLTextFormControlElement::setSelectionRange crashed. This test requires ASAN or something.'); | 6 var t = async_test('There was a bug that HTMLTextFormControlElement::setSelectio nRange crashed. This test requires ASAN or something.'); |
6 jsTestIsAsync = true; | |
7 document.body.onload = function() { | 7 document.body.onload = function() { |
8 document.getElementsByTagName('input')[0].focus(); | 8 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.
| |
9 testPassed('if not crash.'); | 9 document.getElementsByTagName('input')[0].focus(); |
10 finishJSTest(); | 10 }, 'passed if not crash.'); |
11 t.done(); | |
11 }; | 12 }; |
12 </script> | 13 </script> |
13 </body> | 14 </body> |
OLD | NEW |