Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / text / text-update-datalist-while-focused.html
blobbe6241124d4be4100e5a65f88c4adabd1a9f0929
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../../resources/js-test.js"></script>
5 <input list="d" id="input1">
6 <datalist id="d">
7 </datalist>
8 <script>
9 description('We should restore selection after datalist availability change.');
10 var input1 = document.querySelector('#input1');
11 input1.focus();
12 document.querySelector('datalist').innerHTML = '<option value="a"></option>';
13 document.execCommand('inserttext', false, 'abc');
14 shouldBeEqualToString('input1.value', 'abc');
15 </script>
16 </body>
17 </html>