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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled.html

Issue 1422573006: Disabled FIELDSET elements should not be focusable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for fast/events/tabindex-focus-blur-all.html Created 5 years, 1 month 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/fieldset/fieldset-disabled-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 <style type="text/css"> 5 <style type="text/css">
6 input { 6 input {
7 background:rgb(255,255,100); 7 background:rgb(255,255,100);
8 } 8 }
9 input:disabled { 9 input:disabled {
10 background:rgb(255,0,0); 10 background:rgb(255,0,0);
(...skipping 13 matching lines...) Expand all
24 <fieldset disabled> 24 <fieldset disabled>
25 <legend><input type="text" id="parserGeneratedInput5"></legend> 25 <legend><input type="text" id="parserGeneratedInput5"></legend>
26 <legend><input type="text" id="parserGeneratedInput6"></legend> 26 <legend><input type="text" id="parserGeneratedInput6"></legend>
27 <input type="text" id="parserGeneratedInput7"> 27 <input type="text" id="parserGeneratedInput7">
28 <input type="text" id="parserGeneratedInput8" disabled> 28 <input type="text" id="parserGeneratedInput8" disabled>
29 </fieldset> 29 </fieldset>
30 <fieldset disabled> 30 <fieldset disabled>
31 <input type="text" id="parserGeneratedInput9"> 31 <input type="text" id="parserGeneratedInput9">
32 </fieldset> 32 </fieldset>
33 </form> 33 </form>
34 34 <fieldset tabindex=0 disabled id="fieldset-tabindex"></fieldset>
35 <script> 35 <script>
36 description('Tests for HTMLFieldSetElement.disabled behavior.'); 36 description('Tests for HTMLFieldSetElement.disabled behavior.');
37 37
38 debug('\nVerifying parser generated fieldsets.'); 38 debug('\nVerifying parser generated fieldsets.');
39 var parserGeneratedInput1 = document.getElementById("parserGeneratedInput1"); 39 var parserGeneratedInput1 = document.getElementById("parserGeneratedInput1");
40 var parserGeneratedInput2 = document.getElementById("parserGeneratedInput2"); 40 var parserGeneratedInput2 = document.getElementById("parserGeneratedInput2");
41 var parserGeneratedInput3 = document.getElementById("parserGeneratedInput3"); 41 var parserGeneratedInput3 = document.getElementById("parserGeneratedInput3");
42 var parserGeneratedInput4 = document.getElementById("parserGeneratedInput4"); 42 var parserGeneratedInput4 = document.getElementById("parserGeneratedInput4");
43 var parserGeneratedInput5 = document.getElementById("parserGeneratedInput5"); 43 var parserGeneratedInput5 = document.getElementById("parserGeneratedInput5");
44 var parserGeneratedInput6 = document.getElementById("parserGeneratedInput6"); 44 var parserGeneratedInput6 = document.getElementById("parserGeneratedInput6");
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 insertedLegendTextInput.focus(); 284 insertedLegendTextInput.focus();
285 document.execCommand('insertText', false, 'K'); 285 document.execCommand('insertText', false, 'K');
286 firstLegendTextInput.focus(); 286 firstLegendTextInput.focus();
287 document.execCommand('insertText', false, 'K'); 287 document.execCommand('insertText', false, 'K');
288 secondLegendTextInput.focus() 288 secondLegendTextInput.focus()
289 document.execCommand('insertText', false, 'K'); 289 document.execCommand('insertText', false, 'K');
290 shouldBe('insertedLegendTextInput.value', '"JJJK"'); 290 shouldBe('insertedLegendTextInput.value', '"JJJK"');
291 shouldBe('firstLegendTextInput.value', '"IIK"'); 291 shouldBe('firstLegendTextInput.value', '"IIK"');
292 shouldBe('secondLegendTextInput.value', '"K"'); 292 shouldBe('secondLegendTextInput.value', '"K"');
293 293
294 var disabledFieldsetWithTabindex = document.getElementById('fieldset-tabindex');
295 document.activeElement.blur();
296 shouldBe('disabledFieldsetWithTabindex.focus(); document.activeElement', 'docume nt.body');
297
294 document.body.removeChild(document.getElementsByTagName('form')[0]); 298 document.body.removeChild(document.getElementsByTagName('form')[0]);
295 document.body.removeChild(fieldSet); 299 document.body.removeChild(fieldSet);
296 document.body.removeChild(outerFieldSet); 300 document.body.removeChild(outerFieldSet);
297 document.body.removeChild(legendFieldSet); 301 document.body.removeChild(legendFieldSet);
302 document.body.removeChild(disabledFieldsetWithTabindex);
298 var successfullyParsed = true; 303 var successfullyParsed = true;
299 </script> 304 </script>
300 305
301 </body> 306 </body>
302 </html> 307 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/fieldset/fieldset-disabled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698