browser_cmd_folder.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Any copyright is dedicated to the Public Domain.
  2. * http://creativecommons.org/publicdomain/zero/1.0/ */
  3. // Tests that the folder commands works as they should
  4. const TEST_URI = "data:text/html;charset=utf-8,cmd-folder";
  5. function test() {
  6. helpers.addTabWithToolbar(TEST_URI, function (options) {
  7. return helpers.audit(options, [
  8. {
  9. setup: "folder",
  10. check: {
  11. input: "folder",
  12. hints: " open",
  13. markup: "IIIIII",
  14. status: "ERROR"
  15. },
  16. },
  17. {
  18. setup: "folder open",
  19. check: {
  20. input: "folder open",
  21. hints: " [path]",
  22. markup: "VVVVVVVVVVV",
  23. status: "VALID"
  24. }
  25. },
  26. {
  27. setup: "folder open ~",
  28. check: {
  29. input: "folder open ~",
  30. hints: "",
  31. markup: "VVVVVVVVVVVVV",
  32. status: "VALID"
  33. }
  34. },
  35. {
  36. setup: "folder openprofile",
  37. check: {
  38. input: "folder openprofile",
  39. hints: "",
  40. markup: "VVVVVVVVVVVVVVVVVV",
  41. status: "VALID"
  42. }
  43. },
  44. {
  45. setup: "folder openprofile WRONG",
  46. check: {
  47. input: "folder openprofile WRONG",
  48. hints: "",
  49. markup: "VVVVVVVVVVVVVVVVVVVEEEEE",
  50. status: "ERROR"
  51. }
  52. }
  53. ]);
  54. }).then(finish, helpers.handleError);
  55. }