| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 | 2 |
| 3 /* | 3 /* |
| 4 Distributed under both the W3C Test Suite License [1] and the W3C | 4 Distributed under both the W3C Test Suite License [1] and the W3C |
| 5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the |
| 6 policies and contribution forms [3]. | 6 policies and contribution forms [3]. |
| 7 | 7 |
| 8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license |
| 9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license |
| 10 [3] http://www.w3.org/2004/10/27-testcases | 10 [3] http://www.w3.org/2004/10/27-testcases |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 145 } |
| 146 | 146 |
| 147 //FIXME This call of initKeyboardEvent works for WebKit-only. | 147 //FIXME This call of initKeyboardEvent works for WebKit-only. |
| 148 //See https://bugs.webkit.org/show_bug.cgi?id=16735 | 148 //See https://bugs.webkit.org/show_bug.cgi?id=16735 |
| 149 // and https://bugs.webkit.org/show_bug.cgi?id=13368. Add check for browser here | 149 // and https://bugs.webkit.org/show_bug.cgi?id=13368. Add check for browser here |
| 150 function fireKeyboardEvent(doc, element, key) { | 150 function fireKeyboardEvent(doc, element, key) { |
| 151 var event = doc.createEvent('KeyboardEvent'); | 151 var event = doc.createEvent('KeyboardEvent'); |
| 152 event.initKeyboardEvent("keydown", true, true, doc.defaultView, key, 0, fals
e, false, false, false); | 152 event.initKeyboardEvent("keydown", true, true, doc.defaultView, key, 0, fals
e, false, false, false); |
| 153 element.dispatchEvent(event); | 153 element.dispatchEvent(event); |
| 154 } | 154 } |
| OLD | NEW |