| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>Simulate drag&drop through gpuBenchmarking.pointerActionSequence()</title
> |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <p>Steps:<br/> |
| 7 1. Select "12345678" in the first box;<br/> |
| 8 2. Drag "12345678" to the second box;<br/> |
| 9 If a "PASS" result appears the test passes, otherwise it fails. |
| 10 </p> |
| 11 <input id="input_drag" value="12345678"> |
| 12 <input id="input_drop"> |
| 13 <script> |
| 14 async_test(t => { |
| 15 const input_drag = document.getElementById('input_drag'); |
| 16 const input_drop = document.getElementById('input_drop'); |
| 17 input_drop.addEventListener('input', t.step_func(e => { |
| 18 assert_equals(input_drag.value, ''); |
| 19 assert_equals(input_drop.value, '12345678'); |
| 20 t.done(); |
| 21 })); |
| 22 }); |
| 23 </script> |
| OLD | NEW |