browser_gcli_tooltip.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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_tooltip.js");
  22. }
  23. // var assert = require('../testharness/assert');
  24. // var helpers = require('./helpers');
  25. exports.testActivate = function (options) {
  26. return helpers.audit(options, [
  27. {
  28. setup: " ",
  29. check: {
  30. input: " ",
  31. hints: "",
  32. markup: "V",
  33. cursor: 1,
  34. current: "__command",
  35. status: "ERROR",
  36. message: "",
  37. unassigned: [ ],
  38. outputState: "false:default",
  39. tooltipState: "false:default"
  40. }
  41. },
  42. {
  43. setup: "tsb ",
  44. check: {
  45. input: "tsb ",
  46. hints: "false",
  47. markup: "VVVV",
  48. cursor: 4,
  49. current: "toggle",
  50. status: "VALID",
  51. options: [ "false", "true" ],
  52. message: "",
  53. predictions: [ "false", "true" ],
  54. unassigned: [ ],
  55. outputState: "false:default",
  56. tooltipState: "true:importantFieldFlag"
  57. }
  58. },
  59. {
  60. setup: "tsb t",
  61. check: {
  62. input: "tsb t",
  63. hints: "rue",
  64. markup: "VVVVI",
  65. cursor: 5,
  66. current: "toggle",
  67. status: "ERROR",
  68. options: [ "true" ],
  69. message: "",
  70. predictions: [ "true" ],
  71. unassigned: [ ],
  72. outputState: "false:default",
  73. tooltipState: "true:importantFieldFlag"
  74. }
  75. },
  76. {
  77. setup: "tsb tt",
  78. check: {
  79. input: "tsb tt",
  80. hints: " -> true",
  81. markup: "VVVVII",
  82. cursor: 6,
  83. current: "toggle",
  84. status: "ERROR",
  85. options: [ "true" ],
  86. message: "",
  87. predictions: [ "true" ],
  88. unassigned: [ ],
  89. outputState: "false:default",
  90. tooltipState: "true:importantFieldFlag"
  91. }
  92. },
  93. {
  94. setup: "wxqy",
  95. check: {
  96. input: "wxqy",
  97. hints: "",
  98. markup: "EEEE",
  99. cursor: 4,
  100. current: "__command",
  101. status: "ERROR",
  102. options: [ ],
  103. message: "Can't use 'wxqy'.",
  104. predictions: [ ],
  105. unassigned: [ ],
  106. outputState: "false:default",
  107. tooltipState: "true:isError"
  108. }
  109. },
  110. {
  111. setup: "",
  112. check: {
  113. input: "",
  114. hints: "",
  115. markup: "",
  116. cursor: 0,
  117. current: "__command",
  118. status: "ERROR",
  119. message: "",
  120. unassigned: [ ],
  121. outputState: "false:default",
  122. tooltipState: "false:default"
  123. }
  124. }
  125. ]);
  126. };