browser_gcli_keyboard2.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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_keyboard2.js");
  22. }
  23. // var helpers = require('./helpers');
  24. exports.testIncr = function (options) {
  25. return helpers.audit(options, [
  26. /*
  27. // We currently refuse to increment/decrement things with a non-valid
  28. // status which makes sense for many cases, and is a decent default.
  29. // However in theory we could do better, these tests are there for then
  30. {
  31. setup: 'tsu -70<UP>',
  32. check: { input: 'tsu -5' }
  33. },
  34. {
  35. setup: 'tsu -7<UP>',
  36. check: { input: 'tsu -5' }
  37. },
  38. {
  39. setup: 'tsu -6<UP>',
  40. check: { input: 'tsu -5' }
  41. },
  42. */
  43. {
  44. setup: "tsu -5<UP>",
  45. check: { input: "tsu -3" }
  46. },
  47. {
  48. setup: "tsu -4<UP>",
  49. check: { input: "tsu -3" }
  50. },
  51. {
  52. setup: "tsu -3<UP>",
  53. check: { input: "tsu 0" }
  54. },
  55. {
  56. setup: "tsu -2<UP>",
  57. check: { input: "tsu 0" }
  58. },
  59. {
  60. setup: "tsu -1<UP>",
  61. check: { input: "tsu 0" }
  62. },
  63. {
  64. setup: "tsu 0<UP>",
  65. check: { input: "tsu 3" }
  66. },
  67. {
  68. setup: "tsu 1<UP>",
  69. check: { input: "tsu 3" }
  70. },
  71. {
  72. setup: "tsu 2<UP>",
  73. check: { input: "tsu 3" }
  74. },
  75. {
  76. setup: "tsu 3<UP>",
  77. check: { input: "tsu 6" }
  78. },
  79. {
  80. setup: "tsu 4<UP>",
  81. check: { input: "tsu 6" }
  82. },
  83. {
  84. setup: "tsu 5<UP>",
  85. check: { input: "tsu 6" }
  86. },
  87. {
  88. setup: "tsu 6<UP>",
  89. check: { input: "tsu 9" }
  90. },
  91. {
  92. setup: "tsu 7<UP>",
  93. check: { input: "tsu 9" }
  94. },
  95. {
  96. setup: "tsu 8<UP>",
  97. check: { input: "tsu 9" }
  98. },
  99. {
  100. setup: "tsu 9<UP>",
  101. check: { input: "tsu 10" }
  102. },
  103. {
  104. setup: "tsu 10<UP>",
  105. check: { input: "tsu 10" }
  106. }
  107. /*
  108. // See notes above
  109. {
  110. setup: 'tsu 100<UP>',
  111. check: { input: 'tsu 10' }
  112. }
  113. */
  114. ]);
  115. };