browser_cmd_qsa.js 786 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Any copyright is dedicated to the Public Domain.
  2. * http://creativecommons.org/publicdomain/zero/1.0/ */
  3. "use strict";
  4. // Tests that the qsa commands work as they should.
  5. const TEST_URI = "data:text/html;charset=utf-8,<body></body>";
  6. function test() {
  7. helpers.addTabWithToolbar(TEST_URI, function (options) {
  8. return helpers.audit(options, [
  9. {
  10. setup: "qsa",
  11. check: {
  12. input: "qsa",
  13. hints: " [query]",
  14. markup: "VVV",
  15. status: "VALID"
  16. }
  17. },
  18. {
  19. setup: "qsa body",
  20. check: {
  21. input: "qsa body",
  22. hints: "",
  23. markup: "VVVVVVVV",
  24. status: "VALID"
  25. }
  26. }
  27. ]);
  28. }).then(finish, helpers.handleError);
  29. }