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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/range/range-drag.html

Issue 2703013002: Ignore the |readonly| attribute in <input type=range> (Closed)
Patch Set: Created 3 years, 10 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/LayoutTests/fast/forms/range/range-drag-expected.txt » ('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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description">Test for dragging operations of &lt;input type=range&gt;</p> 7 <p id="description">Test for dragging operations of &lt;input type=range&gt;</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 dragMouse(); 44 dragMouse();
45 shouldBe('input.value', '"100"'); 45 shouldBe('input.value', '"100"');
46 shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter + 1 '); 46 shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter + 1 ');
47 47
48 debug('readOnly=true'); 48 debug('readOnly=true');
49 input.disabled = false; 49 input.disabled = false;
50 input.readOnly = true; 50 input.readOnly = true;
51 input.valueAsNumber = 50; 51 input.valueAsNumber = 50;
52 lastChangeEventCounter = changeEventCounter; 52 lastChangeEventCounter = changeEventCounter;
53 dragMouse(); 53 dragMouse();
54 shouldBe('input.value', '"50"'); 54 shouldBe('input.value', '"100"');
55 shouldBe('lastChangeEventCounter', 'changeEventCounter'); 55 shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter + 1 ');
56 56
57 debug('disabled=true'); 57 debug('disabled=true');
58 input.readOnly = false; 58 input.readOnly = false;
59 input.disabled = true; 59 input.disabled = true;
60 input.valueAsNumber = 50; 60 input.valueAsNumber = 50;
61 lastChangeEventCounter = changeEventCounter; 61 lastChangeEventCounter = changeEventCounter;
62 dragMouse(); 62 dragMouse();
63 shouldBe('input.value', '"50"'); 63 shouldBe('input.value', '"50"');
64 shouldBe('lastChangeEventCounter', 'changeEventCounter'); 64 shouldBe('lastChangeEventCounter', 'changeEventCounter');
65 } 65 }
(...skipping 12 matching lines...) Expand all
78 78
79 debug('Tests for range dragging from edge'); 79 debug('Tests for range dragging from edge');
80 var input = document.getElementById('range2'); 80 var input = document.getElementById('range2');
81 input.onchange = handleChange; 81 input.onchange = handleChange;
82 input.focus(); 82 input.focus();
83 testInput(true); 83 testInput(true);
84 debug(''); 84 debug('');
85 </script> 85 </script>
86 </body> 86 </body>
87 </html> 87 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/range/range-drag-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698