browser_gcli_keyboard3.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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_keyboard3.js");
  22. }
  23. // var helpers = require('./helpers');
  24. exports.testDecr = function (options) {
  25. return helpers.audit(options, [
  26. /*
  27. // See notes at top of testIncr in testKeyboard2.js
  28. {
  29. setup: 'tsu -70<DOWN>',
  30. check: { input: 'tsu -5' }
  31. },
  32. {
  33. setup: 'tsu -7<DOWN>',
  34. check: { input: 'tsu -5' }
  35. },
  36. {
  37. setup: 'tsu -6<DOWN>',
  38. check: { input: 'tsu -5' }
  39. },
  40. */
  41. {
  42. setup: "tsu -5<DOWN>",
  43. check: { input: "tsu -5" }
  44. },
  45. {
  46. setup: "tsu -4<DOWN>",
  47. check: { input: "tsu -5" }
  48. },
  49. {
  50. setup: "tsu -3<DOWN>",
  51. check: { input: "tsu -5" }
  52. },
  53. {
  54. setup: "tsu -2<DOWN>",
  55. check: { input: "tsu -3" }
  56. },
  57. {
  58. setup: "tsu -1<DOWN>",
  59. check: { input: "tsu -3" }
  60. },
  61. {
  62. setup: "tsu 0<DOWN>",
  63. check: { input: "tsu -3" }
  64. },
  65. {
  66. setup: "tsu 1<DOWN>",
  67. check: { input: "tsu 0" }
  68. },
  69. {
  70. setup: "tsu 2<DOWN>",
  71. check: { input: "tsu 0" }
  72. },
  73. {
  74. setup: "tsu 3<DOWN>",
  75. check: { input: "tsu 0" }
  76. },
  77. {
  78. setup: "tsu 4<DOWN>",
  79. check: { input: "tsu 3" }
  80. },
  81. {
  82. setup: "tsu 5<DOWN>",
  83. check: { input: "tsu 3" }
  84. },
  85. {
  86. setup: "tsu 6<DOWN>",
  87. check: { input: "tsu 3" }
  88. },
  89. {
  90. setup: "tsu 7<DOWN>",
  91. check: { input: "tsu 6" }
  92. },
  93. {
  94. setup: "tsu 8<DOWN>",
  95. check: { input: "tsu 6" }
  96. },
  97. {
  98. setup: "tsu 9<DOWN>",
  99. check: { input: "tsu 6" }
  100. },
  101. {
  102. setup: "tsu 10<DOWN>",
  103. check: { input: "tsu 9" }
  104. }
  105. /*
  106. // See notes at top of testIncr
  107. {
  108. setup: 'tsu 100<DOWN>',
  109. check: { input: 'tsu 9' }
  110. }
  111. */
  112. ]);
  113. };