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

Side by Side Diff: LayoutTests/editing/selection/5779984-1.html

Issue 17225002: Make user-select:none not to affect editability (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-06-19T18:10:01 Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <div id="description">This tests setting the WebkitUserSelect property on a CSSS tyleDeclaration.</div>
2 <div contenteditable="true" id="test">This text should not be selectable.</div>
3
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
7 div = document.getElementById("test");
8 text = div.firstChild;
9 if (div.style.WebkitUserSelect == undefined)
10 document.write("FAILURE: CSSStyleDeclaration::WebkitUserSelect was undefined .<br>");
11 div.style.WebkitUserSelect = "none";
12 s = window.getSelection();
13 s.setBaseAndExtent(text, 1, text, 2);
14 if (s.type != "None")
15 document.write("FAILURE: Setting -webkit-user-select to none did not have th e expected effect. Setting the selection did not fail.<br>");
16
17 document.write("This test passed if you see no failure messages.")
18 </script>
OLDNEW
« no previous file with comments | « LayoutTests/editing/selection/4866671-expected.txt ('k') | LayoutTests/editing/selection/5779984-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698