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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/select_all/select_all_input.html

Issue 2712603007: Select All present even all selectable text has been selected (Closed)
Patch Set: yosin's nits Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698