Torne (Richard Coles) | 926b001 | 2013-03-28 15:32:48 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script> |
| 5 | window.onload = function() { |
| 6 | document.getElementById("myinput").focus(); |
| 7 | }; |
| 8 | |
| 9 | function keyDown(event) |
| 10 | { |
| 11 | var output = document.getElementById("console"); |
| 12 | var text = "shiftKey = "+event.shiftKey+ ", altKey = "+event.altKey+ ", which = "+ event.which; |
| 13 | |
| 14 | if (event.shiftKey == true && event.altKey == true && event.which == 18) { |
| 15 | text = text + "<br>TEST : <b>PASSED</b>" |
| 16 | } else { |
| 17 | text = text + "<br>TEST : <b>FAILED</b>" |
| 18 | } |
| 19 | output.innerHTML = text; |
| 20 | } |
| 21 | |
| 22 | </script> |
| 23 | </head> |
| 24 | <body> |
| 25 | <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=111112">bug 111112</a>: |
| 26 | Shift + Alt key press</p> |
| 27 | |
| 28 | <p>Try press Shift then alt key. |
| 29 | The test passes if the shiftKey, altKey values of JsKeyEvent are true and keycode/which is 18.<p> |
| 30 | |
| 31 | <input type="text" id="myinput" onkeydown="keyDown(event)"> |
| 32 | <br><br> |
| 33 | <div id="console"></div> |
| 34 | </body> |
| 35 | </html> |