Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <script src="../../../resources/testharness.js"></script> | |
| 3 <script src="../../../resources/testharnessreport.js"></script> | |
| 4 <input id="input"></input> | |
| 5 <script> | |
| 6 test(function() { | |
| 7 var input = document.getElementById('input'); | |
| 8 input.focus(); | |
| 9 assert_false(document.queryCommandEnabled('SelectAll')); | |
| 10 | |
| 11 input.value = 'x'; | |
| 12 input.focus(); | |
| 13 assert_true(document.queryCommandEnabled('SelectAll')); | |
| 14 }, 'SelectAll is not enabled if input is empty'); | |
| 15 </script> | |
| OLD | NEW |