web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.5 KiB

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.findByPlaceholderText = exports.findAllByPlaceholderText = exports.getAllByPlaceholderText = exports.getByPlaceholderText = exports.queryAllByPlaceholderText = exports.queryByPlaceholderText = void 0;
  6. var _queryHelpers = require("../query-helpers");
  7. var _helpers = require("../helpers");
  8. var _allUtils = require("./all-utils");
  9. function queryAllByPlaceholderText(...args) {
  10. (0, _helpers.checkContainerType)(...args);
  11. return (0, _allUtils.queryAllByAttribute)('placeholder', ...args);
  12. }
  13. const getMultipleError = (c, text) => `Found multiple elements with the placeholder text of: ${text}`;
  14. const getMissingError = (c, text) => `Unable to find an element with the placeholder text of: ${text}`;
  15. const queryAllByPlaceholderTextWithSuggestions = (0, _queryHelpers.wrapAllByQueryWithSuggestion)(queryAllByPlaceholderText, queryAllByPlaceholderText.name, 'queryAll');
  16. exports.queryAllByPlaceholderText = queryAllByPlaceholderTextWithSuggestions;
  17. const [queryByPlaceholderText, getAllByPlaceholderText, getByPlaceholderText, findAllByPlaceholderText, findByPlaceholderText] = (0, _allUtils.buildQueries)(queryAllByPlaceholderText, getMultipleError, getMissingError);
  18. exports.findByPlaceholderText = findByPlaceholderText;
  19. exports.findAllByPlaceholderText = findAllByPlaceholderText;
  20. exports.getByPlaceholderText = getByPlaceholderText;
  21. exports.getAllByPlaceholderText = getAllByPlaceholderText;
  22. exports.queryByPlaceholderText = queryByPlaceholderText;