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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/input-readonly-select.html

Issue 2145323002: Content in disabled input field should not be selectable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated code for WebViewTest.LongPressImageTextArea test failure Created 4 years, 5 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html><body> 2 <html><body>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 4
5 <div id="container"> 5 <div id="container">
6 <input id="input" type="text" value="something"> 6 <input id="input" type="text" value="something">
7 <input id="readonlyInput" type="text" readonly value="something"> 7 <input id="readonlyInput" type="text" readonly value="something">
8 <input id="disabledInput" type="text" disabled value="something"> 8 <input id="disabledInput" type="text" disabled value="something">
9 9
10 <textarea id="textarea">something</textarea> 10 <textarea id="textarea">something</textarea>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 shouldBeTrue('selectEventFiredOnInput'); 58 shouldBeTrue('selectEventFiredOnInput');
59 debug(''); 59 debug('');
60 60
61 debug('double clicking on readonly input'); 61 debug('double clicking on readonly input');
62 doubleClickOn(readonlyInput); 62 doubleClickOn(readonlyInput);
63 shouldBeTrue('selectEventFiredOnReadonlyInput'); 63 shouldBeTrue('selectEventFiredOnReadonlyInput');
64 debug(''); 64 debug('');
65 65
66 debug('double clicking on disabled input'); 66 debug('double clicking on disabled input');
67 doubleClickOn(disabledInput); 67 doubleClickOn(disabledInput);
68 shouldBeTrue('selectEventFiredOnDisabledInput'); 68 shouldBeFalse('selectEventFiredOnDisabledInput');
69 debug(''); 69 debug('');
70 70
71 debug('double clicking on normal textarea'); 71 debug('double clicking on normal textarea');
72 doubleClickOn(textarea); 72 doubleClickOn(textarea);
73 shouldBeTrue('selectEventFiredOnTextarea'); 73 shouldBeTrue('selectEventFiredOnTextarea');
74 debug(''); 74 debug('');
75 75
76 debug('double clicking on readonly textarea'); 76 debug('double clicking on readonly textarea');
77 doubleClickOn(readonlyTextarea); 77 doubleClickOn(readonlyTextarea);
78 shouldBeTrue('selectEventFiredOnReadonlyTextarea'); 78 shouldBeTrue('selectEventFiredOnReadonlyTextarea');
79 debug(''); 79 debug('');
80 80
81 debug('double clicking on disabled textarea'); 81 debug('double clicking on disabled textarea');
82 doubleClickOn(disabledTextarea); 82 doubleClickOn(disabledTextarea);
83 shouldBeTrue('selectEventFiredOnDisabledTextarea'); 83 shouldBeFalse('selectEventFiredOnDisabledTextarea');
84 debug(''); 84 debug('');
85 85
86 container.innerHTML = ""; 86 container.innerHTML = "";
87 </script> 87 </script>
88 88
89 </body></html> 89 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698