browser_gcli_pref1.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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_pref1.js");
  22. }
  23. // var helpers = require('./helpers');
  24. exports.testPrefShowStatus = function (options) {
  25. return helpers.audit(options, [
  26. {
  27. skipRemainingIf: options.requisition.system.commands.get("pref") == null,
  28. setup: "pref s",
  29. check: {
  30. typed: "pref s",
  31. hints: "et",
  32. markup: "IIIIVI",
  33. status: "ERROR"
  34. }
  35. },
  36. {
  37. setup: "pref show",
  38. check: {
  39. typed: "pref show",
  40. hints: " <setting>",
  41. markup: "VVVVVVVVV",
  42. status: "ERROR"
  43. }
  44. },
  45. {
  46. setup: "pref show ",
  47. check: {
  48. typed: "pref show ",
  49. hints: "eagerHelper",
  50. markup: "VVVVVVVVVV",
  51. status: "ERROR"
  52. }
  53. },
  54. {
  55. setup: "pref show tempTBo",
  56. check: {
  57. typed: "pref show tempTBo",
  58. hints: "ol",
  59. markup: "VVVVVVVVVVIIIIIII",
  60. status: "ERROR"
  61. }
  62. },
  63. {
  64. setup: "pref show tempTBool",
  65. check: {
  66. typed: "pref show tempTBool",
  67. markup: "VVVVVVVVVVVVVVVVVVV",
  68. status: "VALID",
  69. hints: ""
  70. }
  71. },
  72. {
  73. setup: "pref show tempTBool 4",
  74. check: {
  75. typed: "pref show tempTBool 4",
  76. markup: "VVVVVVVVVVVVVVVVVVVVE",
  77. status: "ERROR",
  78. hints: ""
  79. }
  80. },
  81. {
  82. setup: "pref show tempNumber 4",
  83. check: {
  84. typed: "pref show tempNumber 4",
  85. markup: "VVVVVVVVVVVVVVVVVVVVVE",
  86. status: "ERROR",
  87. hints: ""
  88. }
  89. }
  90. ]);
  91. };
  92. exports.testPrefSetStatus = function (options) {
  93. return helpers.audit(options, [
  94. {
  95. skipRemainingIf: options.requisition.system.commands.get("pref") == null,
  96. setup: "pref s",
  97. check: {
  98. typed: "pref s",
  99. hints: "et",
  100. markup: "IIIIVI",
  101. status: "ERROR"
  102. }
  103. },
  104. {
  105. setup: "pref set",
  106. check: {
  107. typed: "pref set",
  108. hints: " <setting> <value>",
  109. markup: "VVVVVVVV",
  110. status: "ERROR"
  111. }
  112. },
  113. {
  114. setup: "pref xxx",
  115. check: {
  116. typed: "pref xxx",
  117. markup: "IIIIVIII",
  118. status: "ERROR"
  119. }
  120. },
  121. {
  122. setup: "pref set ",
  123. check: {
  124. typed: "pref set ",
  125. hints: "eagerHelper <value>",
  126. markup: "VVVVVVVVV",
  127. status: "ERROR"
  128. }
  129. },
  130. {
  131. setup: "pref set tempTBo",
  132. check: {
  133. typed: "pref set tempTBo",
  134. hints: "ol <value>",
  135. markup: "VVVVVVVVVIIIIIII",
  136. status: "ERROR"
  137. }
  138. },
  139. {
  140. skipIf: options.isRemote,
  141. setup: "pref set tempTBool 4",
  142. check: {
  143. typed: "pref set tempTBool 4",
  144. markup: "VVVVVVVVVVVVVVVVVVVE",
  145. status: "ERROR",
  146. hints: ""
  147. }
  148. },
  149. {
  150. setup: "pref set tempNumber 4",
  151. check: {
  152. typed: "pref set tempNumber 4",
  153. markup: "VVVVVVVVVVVVVVVVVVVVV",
  154. status: "VALID",
  155. hints: ""
  156. }
  157. }
  158. ]);
  159. };