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

Side by Side Diff: LayoutTests/editing/deleting/delete-last-character.html

Issue 13532011: Stop inserting placeholders for TextArea and Input elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Levi's nit Created 7 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 function deleteAndCheckShadowTreeDivIsEmpty(id)
9 {
10 var elem = document.getElementById(id);
11 elem.focus();
12 elem.setSelectionRange(elem.value.length, elem.value.length);
13 document.execCommand("Delete");
14 if (internals.shadowRoot(elem).firstChild.innerHTML == '')
15 return true;
16 else
17 return false;
18 }
19 </script>
20 </head>
21 <body><input id="input" value="A" /><textarea id="textarea">B</textarea>
22 <script>
23 document.write((deleteAndCheckShadowTreeDivIsEmpty("input") && deleteAndCheckSha dowTreeDivIsEmpty("textarea")) ? 'PASS' : 'FAIL' );
24 </script></body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698