browser_gcli_intro.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_intro.js");
  22. }
  23. // var helpers = require('./helpers');
  24. exports.testIntroStatus = function (options) {
  25. return helpers.audit(options, [
  26. {
  27. skipRemainingIf: function commandIntroMissing() {
  28. return options.requisition.system.commands.get("intro") == null;
  29. },
  30. setup: "intro",
  31. check: {
  32. typed: "intro",
  33. markup: "VVVVV",
  34. status: "VALID",
  35. hints: ""
  36. }
  37. },
  38. {
  39. setup: "intro foo",
  40. check: {
  41. typed: "intro foo",
  42. markup: "VVVVVVEEE",
  43. status: "ERROR",
  44. hints: ""
  45. }
  46. },
  47. {
  48. setup: "intro",
  49. check: {
  50. typed: "intro",
  51. markup: "VVVVV",
  52. status: "VALID",
  53. hints: ""
  54. },
  55. exec: {
  56. output: [
  57. /command\s*line/,
  58. /help/,
  59. /F1/,
  60. /Escape/
  61. ]
  62. }
  63. }
  64. ]);
  65. };