browser_gcli_keyboard4.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. * Copyright 2012, Mozilla Foundation and contributors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. "use strict";
  17. // THIS FILE IS GENERATED FROM SOURCE IN THE GCLI PROJECT
  18. // PLEASE TALK TO SOMEONE IN DEVELOPER TOOLS BEFORE EDITING IT
  19. const exports = {};
  20. function test() {
  21. helpers.runTestModule(exports, "browser_gcli_keyboard4.js");
  22. }
  23. // var helpers = require('./helpers');
  24. exports.testIncrFloat = function (options) {
  25. return helpers.audit(options, [
  26. /*
  27. // See notes at top of testIncr
  28. {
  29. setup: 'tsf -70<UP>',
  30. check: { input: 'tsf -6.5' }
  31. },
  32. */
  33. {
  34. setup: "tsf -6.5<UP>",
  35. check: { input: "tsf -6" }
  36. },
  37. {
  38. setup: "tsf -6<UP>",
  39. check: { input: "tsf -4.5" }
  40. },
  41. {
  42. setup: "tsf -4.5<UP>",
  43. check: { input: "tsf -3" }
  44. },
  45. {
  46. setup: "tsf -4<UP>",
  47. check: { input: "tsf -3" }
  48. },
  49. {
  50. setup: "tsf -3<UP>",
  51. check: { input: "tsf -1.5" }
  52. },
  53. {
  54. setup: "tsf -1.5<UP>",
  55. check: { input: "tsf 0" }
  56. },
  57. {
  58. setup: "tsf 0<UP>",
  59. check: { input: "tsf 1.5" }
  60. },
  61. {
  62. setup: "tsf 1.5<UP>",
  63. check: { input: "tsf 3" }
  64. },
  65. {
  66. setup: "tsf 2<UP>",
  67. check: { input: "tsf 3" }
  68. },
  69. {
  70. setup: "tsf 3<UP>",
  71. check: { input: "tsf 4.5" }
  72. },
  73. {
  74. setup: "tsf 5<UP>",
  75. check: { input: "tsf 6" }
  76. }
  77. /*
  78. // See notes at top of testIncr
  79. {
  80. setup: 'tsf 100<UP>',
  81. check: { input: 'tsf -6.5' }
  82. }
  83. */
  84. ]);
  85. };
  86. exports.testDecrFloat = function (options) {
  87. return helpers.audit(options, [
  88. /*
  89. // See notes at top of testIncr
  90. {
  91. setup: 'tsf -70<DOWN>',
  92. check: { input: 'tsf 11.5' }
  93. },
  94. */
  95. {
  96. setup: "tsf -6.5<DOWN>",
  97. check: { input: "tsf -6.5" }
  98. },
  99. {
  100. setup: "tsf -6<DOWN>",
  101. check: { input: "tsf -6.5" }
  102. },
  103. {
  104. setup: "tsf -4.5<DOWN>",
  105. check: { input: "tsf -6" }
  106. },
  107. {
  108. setup: "tsf -4<DOWN>",
  109. check: { input: "tsf -4.5" }
  110. },
  111. {
  112. setup: "tsf -3<DOWN>",
  113. check: { input: "tsf -4.5" }
  114. },
  115. {
  116. setup: "tsf -1.5<DOWN>",
  117. check: { input: "tsf -3" }
  118. },
  119. {
  120. setup: "tsf 0<DOWN>",
  121. check: { input: "tsf -1.5" }
  122. },
  123. {
  124. setup: "tsf 1.5<DOWN>",
  125. check: { input: "tsf 0" }
  126. },
  127. {
  128. setup: "tsf 2<DOWN>",
  129. check: { input: "tsf 1.5" }
  130. },
  131. {
  132. setup: "tsf 3<DOWN>",
  133. check: { input: "tsf 1.5" }
  134. },
  135. {
  136. setup: "tsf 5<DOWN>",
  137. check: { input: "tsf 4.5" }
  138. }
  139. /*
  140. // See notes at top of testIncr
  141. {
  142. setup: 'tsf 100<DOWN>',
  143. check: { input: 'tsf 11.5' }
  144. }
  145. */
  146. ]);
  147. };
  148. exports.testIncrSelection = function (options) {
  149. /*
  150. // Bug 829516: GCLI up/down navigation over selection is sometimes bizarre
  151. return helpers.audit(options, [
  152. {
  153. setup: 'tselarr <DOWN>',
  154. check: { hints: '2' },
  155. exec: {}
  156. },
  157. {
  158. setup: 'tselarr <DOWN><DOWN>',
  159. check: { hints: '3' },
  160. exec: {}
  161. },
  162. {
  163. setup: 'tselarr <DOWN><DOWN><DOWN>',
  164. check: { hints: '1' },
  165. exec: {}
  166. }
  167. ]);
  168. */
  169. };
  170. exports.testDecrSelection = function (options) {
  171. /*
  172. // Bug 829516: GCLI up/down navigation over selection is sometimes bizarre
  173. return helpers.audit(options, [
  174. {
  175. setup: 'tselarr <UP>',
  176. check: { hints: '3' }
  177. }
  178. ]);
  179. */
  180. };