bootstrap/js/tests/unit
GeoSot 584600bda3
Manipulator: Add JSON parse support (#35077)
Support parsing JSON from each component's main element using the `data-bs-config` attribute.

The `bs-config` attribute will be reserved and omitted during `getDataAttributes` parsing.

With this commit, every component, will create its config object, using:

* defaults
* data-bs-config
* the rest of data attributes
* configuration object given during instance initialization

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: Mark Otto <markdotto@gmail.com>
2022-04-21 21:41:43 +03:00
..
dom Manipulator: Add JSON parse support (#35077) 2022-04-21 21:41:43 +03:00
util Manipulator: Add JSON parse support (#35077) 2022-04-21 21:41:43 +03:00
.eslintrc.json Move a few ESLint rules where they are needed. 2021-08-30 15:51:44 +03:00
alert.spec.js tests: revisit all tests using Promise.reject instead of throwing an error (#35765) 2022-02-19 16:08:16 +02:00
base-component.spec.js tests: remove extra spaces, unneeded arrays and add missing newlines 2021-12-01 14:30:49 +02:00
button.spec.js tests: tweak Jasmine's matchers usage 2021-12-01 14:30:49 +02:00
carousel.spec.js Carousel: change class check as it can only exist if carousel is sliding 2022-03-10 15:22:14 +02:00
collapse.spec.js tests: revisit all tests using Promise.reject instead of throwing an error (#35765) 2022-02-19 16:08:16 +02:00
dropdown.spec.js No propagating escape event in an open dropdown. 2022-03-19 01:43:43 +02:00
jquery.spec.js tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659) 2022-01-30 14:30:04 +02:00
modal.spec.js Modal: refactor listeners to reduce some code noise (#35902) 2022-03-01 17:08:12 +02:00
offcanvas.spec.js v5.2.0 design refresh, plus responsive offcanvas classes (#35736) 2022-04-17 22:17:50 -07:00
popover.spec.js Make event name helper and use it on tooltip & popover to reduce dist sizes (#35856) 2022-02-19 15:10:47 +02:00
scrollspy.spec.js Revamp Scrollspy using Intersection observer (#33421) 2022-04-13 10:29:13 -07:00
tab.spec.js Revamp tabs & follow ARIA 1.1 practices (#33079) 2022-04-06 16:36:08 -07:00
toast.spec.js tests: revisit all tests using Promise.reject instead of throwing an error (#35765) 2022-02-19 16:08:16 +02:00
tooltip.spec.js Manipulator: Add JSON parse support (#35077) 2022-04-21 21:41:43 +03:00