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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.html

Issue 1407053004: Add a comment to fast/forms/select/optgroup-clicking.html about a failure on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/select/optgroup-clicking-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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body onload="test()"> 3 <body onload="test()">
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script> 5 <script src="../resources/common.js"></script>
6 6
7 <form id="form"> 7 <form id="form">
8 <select size="10" id="listbox"> 8 <select size="10" id="listbox">
9 <optgroup label="Enabled" id="listbox_optgroup_enabled"> 9 <optgroup label="Enabled" id="listbox_optgroup_enabled">
10 <option value="listbox_e1" id="listbox_option_enabled">One</option> 10 <option value="listbox_e1" id="listbox_option_enabled">One</option>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 window.jsTestIsAsync = true; 47 window.jsTestIsAsync = true;
48 48
49 function test() 49 function test()
50 { 50 {
51 if (!window.testRunner) { 51 if (!window.testRunner) {
52 debug("This test needs testRunner."); 52 debug("This test needs testRunner.");
53 return; 53 return;
54 } 54 }
55 55
56 testRunner.dumpAsText();
57
58 debug("\nClick enabled option"); 56 debug("\nClick enabled option");
59 $("listbox").selectedIndex = 2; 57 $("listbox").selectedIndex = 2;
60 mouseMoveToIndexInListbox(1 + 1, 'listbox'); // +1 for optgroup 58 mouseMoveToIndexInListbox(1 + 1, 'listbox'); // +1 for optgroup
61 eventSender.mouseDown(); 59 eventSender.mouseDown();
62 eventSender.mouseUp(); 60 eventSender.mouseUp();
63 shouldBe('$("listbox").selectedIndex', '1'); 61 shouldBe('$("listbox").selectedIndex', '1');
64 62
65 debug("\nClick on optgroup, should not deselect selectedIndex"); 63 debug("\nClick on optgroup, should not deselect selectedIndex");
66 mouseMoveToIndexInListbox(0, 'listbox'); // Select on optgroup 64 mouseMoveToIndexInListbox(0, 'listbox'); // Select on optgroup
67 eventSender.mouseDown(); 65 eventSender.mouseDown();
68 eventSender.mouseUp(); 66 eventSender.mouseUp();
69 shouldBe('$("listbox").selectedIndex', '1'); 67 shouldBe('$("listbox").selectedIndex', '1');
70 68
71 debug("\nClick disabled option - doesn't change selectedIndex"); 69 debug("\nClick disabled option - doesn't change selectedIndex");
72 mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's 70 mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's
73 eventSender.mouseDown(); 71 eventSender.mouseDown();
74 eventSender.mouseUp(); 72 eventSender.mouseUp();
75 shouldBe('$("listbox").selectedIndex', '1'); 73 shouldBe('$("listbox").selectedIndex', '1');
76 74
77 debug("\nMenu list with arrow key"); 75 debug("\nMenu list with arrow key. The test is expected to fail on OSX becau se of a key binding difference.");
78 $("menulist").selectedIndex = 3; 76 $("menulist").selectedIndex = 3;
79 $("menulist").focus(); 77 $("menulist").focus();
80 eventSender.keyDown("downArrow"); 78 eventSender.keyDown("downArrow");
81 eventSender.keyDown("\n"); 79 eventSender.keyDown("\n");
82 shouldBe('$("menulist").selectedIndex', '8'); 80 shouldBe('$("menulist").selectedIndex', '8');
83 81
84 finishJSTest(); 82 finishJSTest();
85 } 83 }
86 </script> 84 </script>
87 </body> 85 </body>
88 </html> 86 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698