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

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

Issue 2787893004: Fixing select all for contenteditable (Closed)
Patch Set: yosin's comments Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <div id="div" contenteditable="true"></div> 4 <div id="div" contenteditable="true"></div>
5 <script> 5 <script>
6 test(function() { 6 test(function() {
7 var div = document.getElementById('div'); 7 var div = document.getElementById('div');
8 div.focus(); 8 div.focus();
9 assert_true(document.queryCommandEnabled('SelectAll')); 9 assert_false(document.queryCommandEnabled('SelectAll'));
10 10
11 div.appendChild(document.createTextNode('x')); 11 div.appendChild(document.createTextNode('x'));
12 div.focus(); 12 div.focus();
13 assert_true(document.queryCommandEnabled('SelectAll')); 13 assert_true(document.queryCommandEnabled('SelectAll'));
14 }, 'SelectAll is always enabled for contenteditable'); 14 }, 'SelectAll is not enabled if contenteditable is empty');
15 </script> 15 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698