xmlui 0.11.4 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.cjs +8836 -0
- package/dist/bin/index.js +8825 -0
- package/dist/lib/{apiInterceptorWorker-QiltRtq1.js → apiInterceptorWorker-dwrAyq6l.js} +126 -151
- package/dist/lib/{index-Cq0EMm3L.js → index-CwYK6iB4.js} +2502 -2675
- package/dist/lib/index.css +1 -1
- package/dist/lib/{initMock-DCigV4Zh.js → initMock-CvmWAkGr.js} +19 -22
- package/dist/lib/language-server-web-worker.js +13 -5
- package/dist/lib/language-server.js +11 -3
- package/dist/lib/{metadata-utils-BiolWMg9.js → metadata-utils-2bsMr4Gd.js} +58 -26
- package/dist/lib/{server-common-DyCHOk-z.js → server-common-DI3W4cob.js} +6297 -5930
- package/dist/lib/syntax-textmate.js +8 -2472
- package/dist/lib/testing.d.ts +1 -0
- package/dist/lib/testing.js +20 -23
- package/dist/lib/{transform-DHf9tQF7.js → transform-CQ_6R-43.js} +159 -126
- package/dist/lib/vite-xmlui-plugin.d.ts +10 -0
- package/dist/lib/vite-xmlui-plugin.js +8316 -0
- package/dist/lib/{xmlui-parser-CHN3mADy.js → xmlui-parser-CW8YmGjO.js} +10 -11
- package/dist/lib/xmlui-parser.js +2 -2
- package/dist/lib/{xmlui-serializer-CYNSHAlP.js → xmlui-serializer-CeCcgdVR.js} +19 -19
- package/dist/lib/xmlui.d.ts +122 -1
- package/dist/lib/xmlui.js +8 -3
- package/dist/metadata/{apiInterceptorWorker-Dql7QGw2.js → apiInterceptorWorker-Wgm2_zjg.js} +124 -149
- package/dist/metadata/{collectedComponentMetadata-CLaDZhmc.js → collectedComponentMetadata-CSFNLstl.js} +3169 -3302
- package/dist/metadata/{initMock-Buqah4JF.js → initMock-CyTd5aE8.js} +19 -22
- package/dist/metadata/xmlui-metadata.css +1 -0
- package/dist/metadata/xmlui-metadata.js +1 -1
- package/dist/metadata/xmlui-metadata.umd.cjs +3 -3
- package/dist/standalone/xmlui-standalone.es.d.ts +171 -2
- package/dist/standalone/xmlui-standalone.umd.js +36 -37
- package/package.json +20 -50
- package/dist/lib/vite-xmlui-plugin/index.js +0 -13985
- package/dist/lib/vite-xmlui-plugin/package.json +0 -3
- package/dist/metadata/style.css +0 -1
- package/dist/scripts/bin/bootstrap.cjs +0 -4
- package/dist/scripts/bin/build-lib.js +0 -126
- package/dist/scripts/bin/build.js +0 -266
- package/dist/scripts/bin/index.js +0 -167
- package/dist/scripts/bin/preview.js +0 -44
- package/dist/scripts/bin/start.js +0 -52
- package/dist/scripts/bin/vite-xmlui-plugin.js +0 -109
- package/dist/scripts/bin/viteConfig.js +0 -144
- package/dist/scripts/package.json +0 -285
- package/dist/scripts/src/abstractions/ActionDefs.js +0 -2
- package/dist/scripts/src/abstractions/AppContextDefs.js +0 -4
- package/dist/scripts/src/abstractions/ComponentDefs.js +0 -2
- package/dist/scripts/src/abstractions/ContainerDefs.js +0 -2
- package/dist/scripts/src/abstractions/ExtensionDefs.js +0 -2
- package/dist/scripts/src/abstractions/FunctionDefs.js +0 -2
- package/dist/scripts/src/abstractions/RendererDefs.js +0 -2
- package/dist/scripts/src/abstractions/ThemingDefs.js +0 -2
- package/dist/scripts/src/abstractions/scripting/BlockScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Compilation.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LogicalThread.js +0 -2
- package/dist/scripts/src/abstractions/scripting/LoopScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/ScriptParserError.js +0 -2
- package/dist/scripts/src/abstractions/scripting/Token.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScope.js +0 -2
- package/dist/scripts/src/abstractions/scripting/TryScopeExp.js +0 -2
- package/dist/scripts/src/abstractions/scripting/modules.js +0 -2
- package/dist/scripts/src/components/APICall/APICall.js +0 -130
- package/dist/scripts/src/components/APICall/APICall.spec.js +0 -910
- package/dist/scripts/src/components/APICall/APICallNative.js +0 -36
- package/dist/scripts/src/components/Accordion/Accordion.js +0 -97
- package/dist/scripts/src/components/Accordion/Accordion.spec.js +0 -969
- package/dist/scripts/src/components/Accordion/AccordionContext.js +0 -20
- package/dist/scripts/src/components/Accordion/AccordionItem.js +0 -35
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +0 -95
- package/dist/scripts/src/components/Accordion/AccordionNative.js +0 -141
- package/dist/scripts/src/components/Animation/AnimationNative.js +0 -263
- package/dist/scripts/src/components/App/App.js +0 -581
- package/dist/scripts/src/components/App/App.spec.js +0 -331
- package/dist/scripts/src/components/App/AppLayoutContext.js +0 -49
- package/dist/scripts/src/components/App/AppNative.js +0 -308
- package/dist/scripts/src/components/App/AppStateContext.js +0 -9
- package/dist/scripts/src/components/App/IndexerContext.js +0 -44
- package/dist/scripts/src/components/App/LinkInfoContext.js +0 -9
- package/dist/scripts/src/components/App/SearchContext.js +0 -35
- package/dist/scripts/src/components/App/Sheet.js +0 -99
- package/dist/scripts/src/components/AppHeader/AppHeader.js +0 -58
- package/dist/scripts/src/components/AppHeader/AppHeader.spec.js +0 -169
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +0 -72
- package/dist/scripts/src/components/AppState/AppState.js +0 -75
- package/dist/scripts/src/components/AppState/AppState.spec.js +0 -292
- package/dist/scripts/src/components/AppState/AppStateNative.js +0 -51
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +0 -109
- package/dist/scripts/src/components/AutoComplete/AutoComplete.spec.js +0 -546
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +0 -19
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +0 -498
- package/dist/scripts/src/components/Avatar/Avatar.js +0 -55
- package/dist/scripts/src/components/Avatar/Avatar.spec.js +0 -1514
- package/dist/scripts/src/components/Avatar/AvatarNative.js +0 -58
- package/dist/scripts/src/components/Backdrop/Backdrop.js +0 -40
- package/dist/scripts/src/components/Backdrop/Backdrop.spec.js +0 -131
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +0 -25
- package/dist/scripts/src/components/Badge/Badge.js +0 -81
- package/dist/scripts/src/components/Badge/Badge.spec.js +0 -2214
- package/dist/scripts/src/components/Badge/BadgeNative.js +0 -46
- package/dist/scripts/src/components/Bookmark/Bookmark.js +0 -48
- package/dist/scripts/src/components/Bookmark/Bookmark.spec.js +0 -230
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +0 -55
- package/dist/scripts/src/components/Breakout/Breakout.js +0 -17
- package/dist/scripts/src/components/Breakout/Breakout.spec.js +0 -56
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +0 -24
- package/dist/scripts/src/components/Button/Button-style.spec.js +0 -274
- package/dist/scripts/src/components/Button/Button.js +0 -171
- package/dist/scripts/src/components/Button/Button.spec.js +0 -425
- package/dist/scripts/src/components/Button/ButtonNative.js +0 -109
- package/dist/scripts/src/components/Card/Card.js +0 -89
- package/dist/scripts/src/components/Card/Card.spec.js +0 -150
- package/dist/scripts/src/components/Card/CardNative.js +0 -41
- package/dist/scripts/src/components/Carousel/Carousel.js +0 -133
- package/dist/scripts/src/components/Carousel/Carousel.spec.js +0 -557
- package/dist/scripts/src/components/Carousel/CarouselContext.js +0 -57
- package/dist/scripts/src/components/Carousel/CarouselItem.js +0 -15
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +0 -40
- package/dist/scripts/src/components/Carousel/CarouselNative.js +0 -195
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +0 -34
- package/dist/scripts/src/components/ChangeListener/ChangeListener.spec.js +0 -169
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +0 -30
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.js +0 -92
- package/dist/scripts/src/components/Charts/AreaChart/AreaChart.spec.js +0 -999
- package/dist/scripts/src/components/Charts/AreaChart/AreaChartNative.js +0 -127
- package/dist/scripts/src/components/Charts/BarChart/BarChart.js +0 -97
- package/dist/scripts/src/components/Charts/BarChart/BarChart.spec.js +0 -597
- package/dist/scripts/src/components/Charts/BarChart/BarChartNative.js +0 -317
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.js +0 -60
- package/dist/scripts/src/components/Charts/DonutChart/DonutChart.spec.js +0 -608
- package/dist/scripts/src/components/Charts/LabelList/LabelList.js +0 -41
- package/dist/scripts/src/components/Charts/LabelList/LabelList.spec.js +0 -539
- package/dist/scripts/src/components/Charts/LabelList/LabelListNative.js +0 -25
- package/dist/scripts/src/components/Charts/Legend/Legend.js +0 -33
- package/dist/scripts/src/components/Charts/Legend/Legend.spec.js +0 -558
- package/dist/scripts/src/components/Charts/Legend/LegendNative.js +0 -64
- package/dist/scripts/src/components/Charts/LineChart/LineChart.js +0 -94
- package/dist/scripts/src/components/Charts/LineChart/LineChart.spec.js +0 -450
- package/dist/scripts/src/components/Charts/LineChart/LineChartNative.js +0 -192
- package/dist/scripts/src/components/Charts/PieChart/PieChart.js +0 -64
- package/dist/scripts/src/components/Charts/PieChart/PieChart.spec.js +0 -584
- package/dist/scripts/src/components/Charts/PieChart/PieChartNative.js +0 -167
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.js +0 -92
- package/dist/scripts/src/components/Charts/RadarChart/RadarChart.spec.js +0 -571
- package/dist/scripts/src/components/Charts/RadarChart/RadarChartNative.js +0 -125
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.js +0 -27
- package/dist/scripts/src/components/Charts/Tooltip/TooltipContent.spec.js +0 -451
- package/dist/scripts/src/components/Charts/utils/ChartProvider.js +0 -65
- package/dist/scripts/src/components/Charts/utils/abstractions.js +0 -26
- package/dist/scripts/src/components/Checkbox/Checkbox.js +0 -81
- package/dist/scripts/src/components/Checkbox/Checkbox.spec.js +0 -900
- package/dist/scripts/src/components/CodeBlock/CodeBlock.js +0 -42
- package/dist/scripts/src/components/CodeBlock/CodeBlock.spec.js +0 -196
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +0 -127
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +0 -273
- package/dist/scripts/src/components/ColorPicker/ColorPicker.js +0 -54
- package/dist/scripts/src/components/ColorPicker/ColorPicker.spec.js +0 -355
- package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +0 -86
- package/dist/scripts/src/components/Column/Column.js +0 -89
- package/dist/scripts/src/components/Column/ColumnNative.js +0 -49
- package/dist/scripts/src/components/Column/TableContext.js +0 -12
- package/dist/scripts/src/components/Column/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/ComponentProvider.js +0 -811
- package/dist/scripts/src/components/ComponentRegistryContext.js +0 -44
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +0 -51
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.spec.js +0 -531
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +0 -31
- package/dist/scripts/src/components/DataSource/DataSource.js +0 -124
- package/dist/scripts/src/components/DateInput/DateInput.js +0 -197
- package/dist/scripts/src/components/DateInput/DateInput.spec.js +0 -1023
- package/dist/scripts/src/components/DateInput/DateInputNative.js +0 -734
- package/dist/scripts/src/components/DatePicker/DatePicker.js +0 -146
- package/dist/scripts/src/components/DatePicker/DatePicker.spec.js +0 -394
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +0 -326
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +0 -196
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.spec.js +0 -331
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +0 -146
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +0 -26
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.spec.js +0 -29
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +0 -71
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.js +0 -101
- package/dist/scripts/src/components/ExpandableItem/ExpandableItem.spec.js +0 -435
- package/dist/scripts/src/components/ExpandableItem/ExpandableItemNative.js +0 -109
- package/dist/scripts/src/components/FileInput/FileInput.js +0 -80
- package/dist/scripts/src/components/FileInput/FileInput.spec.js +0 -285
- package/dist/scripts/src/components/FileInput/FileInputNative.js +0 -161
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +0 -58
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.spec.js +0 -296
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +0 -134
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +0 -65
- package/dist/scripts/src/components/FlowLayout/FlowLayout.spec.js +0 -518
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +0 -153
- package/dist/scripts/src/components/Footer/Footer.js +0 -45
- package/dist/scripts/src/components/Footer/Footer.spec.js +0 -991
- package/dist/scripts/src/components/Footer/FooterNative.js +0 -35
- package/dist/scripts/src/components/Form/Form.js +0 -161
- package/dist/scripts/src/components/Form/Form.spec.js +0 -1719
- package/dist/scripts/src/components/Form/FormContext.js +0 -124
- package/dist/scripts/src/components/Form/FormNative.js +0 -463
- package/dist/scripts/src/components/Form/formActions.js +0 -115
- package/dist/scripts/src/components/FormItem/FormItem.js +0 -231
- package/dist/scripts/src/components/FormItem/FormItem.spec.js +0 -1022
- package/dist/scripts/src/components/FormItem/FormItemNative.js +0 -255
- package/dist/scripts/src/components/FormItem/HelperText.js +0 -27
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +0 -52
- package/dist/scripts/src/components/FormItem/Validations.js +0 -389
- package/dist/scripts/src/components/FormSection/FormSection.js +0 -56
- package/dist/scripts/src/components/Fragment/Fragment.js +0 -24
- package/dist/scripts/src/components/Fragment/Fragment.spec.js +0 -50
- package/dist/scripts/src/components/Heading/H1.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H2.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H3.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H4.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H5.spec.js +0 -66
- package/dist/scripts/src/components/Heading/H6.spec.js +0 -66
- package/dist/scripts/src/components/Heading/Heading.js +0 -396
- package/dist/scripts/src/components/Heading/Heading.spec.js +0 -966
- package/dist/scripts/src/components/Heading/HeadingNative.js +0 -98
- package/dist/scripts/src/components/Heading/abstractions.js +0 -4
- package/dist/scripts/src/components/HoverCard/HoverCard.js +0 -18
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +0 -44
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +0 -1441
- package/dist/scripts/src/components/HtmlTags/HtmlTags.spec.js +0 -69
- package/dist/scripts/src/components/IFrame/IFrame.js +0 -77
- package/dist/scripts/src/components/IFrame/IFrame.spec.js +0 -527
- package/dist/scripts/src/components/IFrame/IFrameNative.js +0 -46
- package/dist/scripts/src/components/Icon/AdmonitionDanger.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionInfo.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionNote.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionTip.js +0 -10
- package/dist/scripts/src/components/Icon/AdmonitionWarning.js +0 -10
- package/dist/scripts/src/components/Icon/ApiIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ArrowDropDown.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowDropUp.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowLeft.js +0 -11
- package/dist/scripts/src/components/Icon/ArrowRight.js +0 -11
- package/dist/scripts/src/components/Icon/Attach.js +0 -10
- package/dist/scripts/src/components/Icon/Binding.js +0 -11
- package/dist/scripts/src/components/Icon/BoardIcon.js +0 -7
- package/dist/scripts/src/components/Icon/BoxIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CheckIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronDownIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronLeft.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronRight.js +0 -7
- package/dist/scripts/src/components/Icon/ChevronUpIcon.js +0 -7
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/CodeSandbox.js +0 -10
- package/dist/scripts/src/components/Icon/CompactListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DarkToLightIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +0 -11
- package/dist/scripts/src/components/Icon/DocFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DocIcon.js +0 -10
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +0 -7
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmailIcon.js +0 -7
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/ErrorIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +0 -7
- package/dist/scripts/src/components/Icon/FilterIcon.js +0 -10
- package/dist/scripts/src/components/Icon/FolderIcon.js +0 -10
- package/dist/scripts/src/components/Icon/GlobeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HomeIcon.js +0 -7
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/Icon.js +0 -42
- package/dist/scripts/src/components/Icon/Icon.spec.js +0 -527
- package/dist/scripts/src/components/Icon/IconNative.js +0 -127
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/Inspect.js +0 -10
- package/dist/scripts/src/components/Icon/LightToDark.js +0 -10
- package/dist/scripts/src/components/Icon/LinkIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/LooseListIcon.js +0 -7
- package/dist/scripts/src/components/Icon/MoonIcon.js +0 -10
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +0 -7
- package/dist/scripts/src/components/Icon/NoSortIcon.js +0 -8
- package/dist/scripts/src/components/Icon/PDFIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PenIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhoneIcon.js +0 -7
- package/dist/scripts/src/components/Icon/PhotoIcon.js +0 -10
- package/dist/scripts/src/components/Icon/PlusIcon.js +0 -7
- package/dist/scripts/src/components/Icon/SearchIcon.js +0 -7
- package/dist/scripts/src/components/Icon/ShareIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +0 -8
- package/dist/scripts/src/components/Icon/StarsIcon.js +0 -10
- package/dist/scripts/src/components/Icon/SunIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TableDeleteColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableDeleteRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertColumnIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TableInsertRowIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrashIcon.js +0 -7
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +0 -10
- package/dist/scripts/src/components/Icon/TxtIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +0 -10
- package/dist/scripts/src/components/Icon/UserIcon.js +0 -7
- package/dist/scripts/src/components/Icon/WarningIcon.js +0 -7
- package/dist/scripts/src/components/Icon/XlsIcon.js +0 -10
- package/dist/scripts/src/components/IconProvider.js +0 -300
- package/dist/scripts/src/components/IconRegistryContext.js +0 -318
- package/dist/scripts/src/components/Image/Image.js +0 -52
- package/dist/scripts/src/components/Image/Image.spec.js +0 -198
- package/dist/scripts/src/components/Image/ImageNative.js +0 -73
- package/dist/scripts/src/components/Input/InputAdornment.js +0 -28
- package/dist/scripts/src/components/Input/InputDivider.js +0 -35
- package/dist/scripts/src/components/Input/InputLabel.js +0 -25
- package/dist/scripts/src/components/Input/PartialInput.js +0 -155
- package/dist/scripts/src/components/Input/index.js +0 -5
- package/dist/scripts/src/components/InspectButton/InspectButton.js +0 -35
- package/dist/scripts/src/components/Items/Items.js +0 -39
- package/dist/scripts/src/components/Items/Items.spec.js +0 -397
- package/dist/scripts/src/components/Items/ItemsNative.js +0 -33
- package/dist/scripts/src/components/Link/Link.js +0 -82
- package/dist/scripts/src/components/Link/Link.spec.js +0 -894
- package/dist/scripts/src/components/Link/LinkNative.js +0 -48
- package/dist/scripts/src/components/List/List.js +0 -130
- package/dist/scripts/src/components/List/List.spec.js +0 -927
- package/dist/scripts/src/components/List/ListNative.js +0 -433
- package/dist/scripts/src/components/List/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Logo/Logo.js +0 -30
- package/dist/scripts/src/components/Logo/LogoNative.js +0 -32
- package/dist/scripts/src/components/Markdown/CodeText.js +0 -38
- package/dist/scripts/src/components/Markdown/Markdown.js +0 -143
- package/dist/scripts/src/components/Markdown/Markdown.spec.js +0 -188
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +0 -476
- package/dist/scripts/src/components/Markdown/parse-binding-expr.js +0 -60
- package/dist/scripts/src/components/Markdown/utils.js +0 -389
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -111
- package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +0 -83
- package/dist/scripts/src/components/ModalDialog/ModalDialog.spec.js +0 -181
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +0 -217
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +0 -60
- package/dist/scripts/src/components/NavGroup/NavGroup.js +0 -70
- package/dist/scripts/src/components/NavGroup/NavGroup.spec.js +0 -304
- package/dist/scripts/src/components/NavGroup/NavGroupContext.js +0 -13
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +0 -133
- package/dist/scripts/src/components/NavLink/NavLink.js +0 -86
- package/dist/scripts/src/components/NavLink/NavLink.spec.js +0 -864
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +0 -73
- package/dist/scripts/src/components/NavPanel/NavPanel.js +0 -53
- package/dist/scripts/src/components/NavPanel/NavPanel.spec.js +0 -864
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +0 -222
- package/dist/scripts/src/components/NestedApp/AppWithCodeView.js +0 -91
- package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +0 -84
- package/dist/scripts/src/components/NestedApp/NestedApp.js +0 -86
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +0 -231
- package/dist/scripts/src/components/NestedApp/Tooltip.js +0 -46
- package/dist/scripts/src/components/NestedApp/defaultProps.js +0 -12
- package/dist/scripts/src/components/NestedApp/utils.js +0 -67
- package/dist/scripts/src/components/NoResult/NoResult.js +0 -46
- package/dist/scripts/src/components/NoResult/NoResult.spec.js +0 -863
- package/dist/scripts/src/components/NoResult/NoResultNative.js +0 -31
- package/dist/scripts/src/components/NumberBox/NumberBox.js +0 -123
- package/dist/scripts/src/components/NumberBox/NumberBox.spec.js +0 -979
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +0 -513
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +0 -109
- package/dist/scripts/src/components/Option/Option.js +0 -44
- package/dist/scripts/src/components/Option/Option.spec.js +0 -474
- package/dist/scripts/src/components/Option/OptionNative.js +0 -29
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +0 -16
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +0 -13
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +0 -22
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.spec.js +0 -80
- package/dist/scripts/src/components/Pages/Pages.js +0 -54
- package/dist/scripts/src/components/Pages/PagesNative.js +0 -57
- package/dist/scripts/src/components/Pagination/Pagination.js +0 -107
- package/dist/scripts/src/components/Pagination/Pagination.spec.js +0 -1008
- package/dist/scripts/src/components/Pagination/PaginationNative.js +0 -157
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +0 -24
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +0 -14
- package/dist/scripts/src/components/ProfileMenu/ProfileMenu.js +0 -20
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +0 -38
- package/dist/scripts/src/components/ProgressBar/ProgressBar.spec.js +0 -166
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +0 -28
- package/dist/scripts/src/components/Queue/Queue.js +0 -85
- package/dist/scripts/src/components/Queue/Queue.spec.js +0 -624
- package/dist/scripts/src/components/Queue/QueueNative.js +0 -342
- package/dist/scripts/src/components/Queue/queueActions.js +0 -87
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +0 -61
- package/dist/scripts/src/components/RadioGroup/RadioGroup.spec.js +0 -490
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +0 -158
- package/dist/scripts/src/components/RadioGroup/RadioItem.js +0 -28
- package/dist/scripts/src/components/RadioGroup/RadioItemNative.js +0 -62
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +0 -24
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +0 -135
- package/dist/scripts/src/components/Redirect/Redirect.js +0 -31
- package/dist/scripts/src/components/Redirect/Redirect.spec.js +0 -527
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.js +0 -60
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBar.spec.js +0 -76
- package/dist/scripts/src/components/ResponsiveBar/ResponsiveBarNative.js +0 -313
- package/dist/scripts/src/components/Select/HiddenOption.js +0 -20
- package/dist/scripts/src/components/Select/OptionContext.js +0 -12
- package/dist/scripts/src/components/Select/Select.js +0 -131
- package/dist/scripts/src/components/Select/Select.spec.js +0 -763
- package/dist/scripts/src/components/Select/SelectContext.js +0 -16
- package/dist/scripts/src/components/Select/SelectNative.js +0 -440
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +0 -25
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +0 -103
- package/dist/scripts/src/components/Slider/Slider.js +0 -115
- package/dist/scripts/src/components/Slider/Slider.spec.js +0 -677
- package/dist/scripts/src/components/Slider/SliderNative.js +0 -237
- package/dist/scripts/src/components/Slot/Slot.js +0 -17
- package/dist/scripts/src/components/Slot/Slot.spec.js +0 -368
- package/dist/scripts/src/components/SlotItem.js +0 -32
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +0 -20
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.spec.js +0 -184
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +0 -10
- package/dist/scripts/src/components/Spinner/Spinner.js +0 -39
- package/dist/scripts/src/components/Spinner/Spinner.spec.js +0 -161
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +0 -48
- package/dist/scripts/src/components/Splitter/HSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/Splitter.js +0 -163
- package/dist/scripts/src/components/Splitter/Splitter.spec.js +0 -856
- package/dist/scripts/src/components/Splitter/SplitterNative.js +0 -205
- package/dist/scripts/src/components/Splitter/VSplitter.spec.js +0 -104
- package/dist/scripts/src/components/Splitter/utils.js +0 -22
- package/dist/scripts/src/components/Stack/CHStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/CVStack.spec.js +0 -86
- package/dist/scripts/src/components/Stack/HStack.spec.js +0 -67
- package/dist/scripts/src/components/Stack/Stack.js +0 -156
- package/dist/scripts/src/components/Stack/Stack.spec.js +0 -654
- package/dist/scripts/src/components/Stack/StackNative.js +0 -45
- package/dist/scripts/src/components/Stack/VStack.spec.js +0 -67
- package/dist/scripts/src/components/StickyBox/StickyBox.js +0 -34
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +0 -42
- package/dist/scripts/src/components/Switch/Switch.js +0 -80
- package/dist/scripts/src/components/Switch/Switch.spec.js +0 -834
- package/dist/scripts/src/components/Table/Table.js +0 -268
- package/dist/scripts/src/components/Table/Table.spec.js +0 -827
- package/dist/scripts/src/components/Table/TableNative.js +0 -670
- package/dist/scripts/src/components/Table/doc-resources/list-component-data.js +0 -53
- package/dist/scripts/src/components/Table/useRowSelection.js +0 -454
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +0 -76
- package/dist/scripts/src/components/TableOfContents/TableOfContents.spec.js +0 -838
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +0 -81
- package/dist/scripts/src/components/Tabs/TabContext.js +0 -58
- package/dist/scripts/src/components/Tabs/TabItem.js +0 -44
- package/dist/scripts/src/components/Tabs/TabItemNative.js +0 -53
- package/dist/scripts/src/components/Tabs/Tabs.js +0 -95
- package/dist/scripts/src/components/Tabs/Tabs.spec.js +0 -1237
- package/dist/scripts/src/components/Tabs/TabsNative.js +0 -137
- package/dist/scripts/src/components/Text/Text.js +0 -181
- package/dist/scripts/src/components/Text/Text.spec.js +0 -1676
- package/dist/scripts/src/components/Text/TextNative.js +0 -244
- package/dist/scripts/src/components/TextArea/TextArea.js +0 -103
- package/dist/scripts/src/components/TextArea/TextArea.spec.js +0 -886
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +0 -196
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +0 -73
- package/dist/scripts/src/components/TextArea/useComposedRef.js +0 -60
- package/dist/scripts/src/components/TextBox/TextBox.js +0 -133
- package/dist/scripts/src/components/TextBox/TextBox.spec.js +0 -758
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +0 -142
- package/dist/scripts/src/components/Theme/NotificationToast.js +0 -64
- package/dist/scripts/src/components/Theme/Theme.js +0 -47
- package/dist/scripts/src/components/Theme/Theme.spec.js +0 -390
- package/dist/scripts/src/components/Theme/ThemeNative.js +0 -162
- package/dist/scripts/src/components/TimeInput/TimeInput.js +0 -149
- package/dist/scripts/src/components/TimeInput/TimeInput.spec.js +0 -1236
- package/dist/scripts/src/components/TimeInput/TimeInputNative.js +0 -650
- package/dist/scripts/src/components/TimeInput/utils.js +0 -197
- package/dist/scripts/src/components/Timer/Timer.js +0 -62
- package/dist/scripts/src/components/Timer/Timer.spec.js +0 -328
- package/dist/scripts/src/components/Timer/TimerNative.js +0 -178
- package/dist/scripts/src/components/Toggle/Toggle.js +0 -172
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +0 -63
- package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.spec.js +0 -414
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.js +0 -51
- package/dist/scripts/src/components/ToneSwitch/ToneSwitch.spec.js +0 -89
- package/dist/scripts/src/components/ToneSwitch/ToneSwitchNative.js +0 -42
- package/dist/scripts/src/components/Tooltip/Tooltip.js +0 -118
- package/dist/scripts/src/components/Tooltip/Tooltip.spec.js +0 -418
- package/dist/scripts/src/components/Tooltip/TooltipNative.js +0 -160
- package/dist/scripts/src/components/Tree/Tree-dynamic.spec.js +0 -2894
- package/dist/scripts/src/components/Tree/Tree-icons.spec.js +0 -206
- package/dist/scripts/src/components/Tree/Tree.spec.js +0 -2839
- package/dist/scripts/src/components/Tree/TreeComponent.js +0 -324
- package/dist/scripts/src/components/Tree/TreeNative.js +0 -1129
- package/dist/scripts/src/components/Tree/testData.js +0 -296
- package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +0 -49
- package/dist/scripts/src/components/TreeDisplay/TreeDisplayNative.js +0 -104
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +0 -64
- package/dist/scripts/src/components/VisuallyHidden.js +0 -21
- package/dist/scripts/src/components/abstractions.js +0 -341
- package/dist/scripts/src/components/chart-color-schemes.js +0 -43
- package/dist/scripts/src/components/collectedComponentMetadata.js +0 -316
- package/dist/scripts/src/components/component-utils.js +0 -29
- package/dist/scripts/src/components/container-helpers.js +0 -26
- package/dist/scripts/src/components/metadata-helpers.js +0 -269
- package/dist/scripts/src/components-core/ApiBoundComponent.js +0 -227
- package/dist/scripts/src/components-core/AppContext.js +0 -16
- package/dist/scripts/src/components-core/ComponentDecorator.js +0 -74
- package/dist/scripts/src/components-core/ComponentViewer.js +0 -69
- package/dist/scripts/src/components-core/CompoundComponent.js +0 -145
- package/dist/scripts/src/components-core/DebugViewProvider.js +0 -43
- package/dist/scripts/src/components-core/EngineError.js +0 -91
- package/dist/scripts/src/components-core/InspectorContext.js +0 -248
- package/dist/scripts/src/components-core/LoaderComponent.js +0 -109
- package/dist/scripts/src/components-core/RestApiProxy.js +0 -468
- package/dist/scripts/src/components-core/StandaloneApp.js +0 -821
- package/dist/scripts/src/components-core/StandaloneExtensionManager.js +0 -44
- package/dist/scripts/src/components-core/TableOfContentsContext.js +0 -168
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +0 -2
- package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +0 -2
- package/dist/scripts/src/components-core/action/APICall.js +0 -284
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +0 -80
- package/dist/scripts/src/components-core/action/FileUploadAction.js +0 -88
- package/dist/scripts/src/components-core/action/NavigateAction.js +0 -20
- package/dist/scripts/src/components-core/action/TimedAction.js +0 -21
- package/dist/scripts/src/components-core/action/actions.js +0 -15
- package/dist/scripts/src/components-core/appContext/date-functions.js +0 -24
- package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
- package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -14
- package/dist/scripts/src/components-core/behaviors/Behavior.js +0 -2
- package/dist/scripts/src/components-core/behaviors/CoreBehaviors.js +0 -201
- package/dist/scripts/src/components-core/component-hooks.js +0 -25
- package/dist/scripts/src/components-core/constants.js +0 -18
- package/dist/scripts/src/components-core/descriptorHelper.js +0 -96
- package/dist/scripts/src/components-core/devtools/InspectorDialog.js +0 -135
- package/dist/scripts/src/components-core/devtools/InspectorDialogVisibilityContext.js +0 -8
- package/dist/scripts/src/components-core/event-handlers.js +0 -46
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -247
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -167
- package/dist/scripts/src/components-core/interception/Backend.js +0 -141
- package/dist/scripts/src/components-core/interception/Errors.js +0 -129
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
- package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
- package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -44
- package/dist/scripts/src/components-core/interception/initMock.js +0 -20
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
- package/dist/scripts/src/components-core/loader/ApiLoader.js +0 -54
- package/dist/scripts/src/components-core/loader/DataLoader.js +0 -330
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +0 -60
- package/dist/scripts/src/components-core/loader/Loader.js +0 -159
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +0 -43
- package/dist/scripts/src/components-core/loader/PageableLoader.js +0 -272
- package/dist/scripts/src/components-core/markup-check.js +0 -279
- package/dist/scripts/src/components-core/parts.js +0 -11
- package/dist/scripts/src/components-core/renderers.js +0 -76
- package/dist/scripts/src/components-core/rendering/AppContent.js +0 -400
- package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -87
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -49
- package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +0 -380
- package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +0 -166
- package/dist/scripts/src/components-core/rendering/Container.js +0 -621
- package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +0 -94
- package/dist/scripts/src/components-core/rendering/ErrorBoundary.js +0 -65
- package/dist/scripts/src/components-core/rendering/InvalidComponent.js +0 -17
- package/dist/scripts/src/components-core/rendering/StandaloneComponent.js +0 -39
- package/dist/scripts/src/components-core/rendering/StateContainer.js +0 -350
- package/dist/scripts/src/components-core/rendering/UnknownComponent.js +0 -15
- package/dist/scripts/src/components-core/rendering/buildProxy.js +0 -58
- package/dist/scripts/src/components-core/rendering/collectFnVarDeps.js +0 -49
- package/dist/scripts/src/components-core/rendering/containers.js +0 -19
- package/dist/scripts/src/components-core/rendering/nodeUtils.js +0 -6
- package/dist/scripts/src/components-core/rendering/reducer.js +0 -160
- package/dist/scripts/src/components-core/rendering/renderChild.js +0 -82
- package/dist/scripts/src/components-core/rendering/valueExtractor.js +0 -216
- package/dist/scripts/src/components-core/reportEngineError.js +0 -62
- package/dist/scripts/src/components-core/script-runner/AttributeValueParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +0 -33
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +0 -117
- package/dist/scripts/src/components-core/script-runner/ScriptingSourceTree.js +0 -45
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +0 -96
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +0 -34
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +0 -613
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +0 -439
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +0 -522
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +0 -761
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +0 -208
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +0 -746
- package/dist/scripts/src/components-core/script-runner/simplify-expression.js +0 -386
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +0 -63
- package/dist/scripts/src/components-core/script-runner/visitors.js +0 -369
- package/dist/scripts/src/components-core/theming/StyleContext.js +0 -133
- package/dist/scripts/src/components-core/theming/StyleRegistry.js +0 -171
- package/dist/scripts/src/components-core/theming/ThemeContext.js +0 -53
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +0 -342
- package/dist/scripts/src/components-core/theming/component-layout-resolver.js +0 -153
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +0 -47
- package/dist/scripts/src/components-core/theming/hvar.js +0 -105
- package/dist/scripts/src/components-core/theming/layout-resolver.js +0 -388
- package/dist/scripts/src/components-core/theming/parse-layout-props.js +0 -136
- package/dist/scripts/src/components-core/theming/themeVars.js +0 -62
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +0 -15
- package/dist/scripts/src/components-core/theming/themes/palette.js +0 -57
- package/dist/scripts/src/components-core/theming/themes/root.js +0 -434
- package/dist/scripts/src/components-core/theming/themes/solid.js +0 -16
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +0 -561
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +0 -57
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +0 -733
- package/dist/scripts/src/components-core/theming/utils.js +0 -31
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +0 -41
- package/dist/scripts/src/components-core/utils/LruCache.js +0 -184
- package/dist/scripts/src/components-core/utils/actionUtils.js +0 -32
- package/dist/scripts/src/components-core/utils/audio-utils.js +0 -83
- package/dist/scripts/src/components-core/utils/base64-utils.js +0 -124
- package/dist/scripts/src/components-core/utils/compound-utils.js +0 -11
- package/dist/scripts/src/components-core/utils/css-utils.js +0 -179
- package/dist/scripts/src/components-core/utils/date-utils.js +0 -186
- package/dist/scripts/src/components-core/utils/extractParam.js +0 -281
- package/dist/scripts/src/components-core/utils/hooks.js +0 -400
- package/dist/scripts/src/components-core/utils/mergeProps.js +0 -45
- package/dist/scripts/src/components-core/utils/misc.js +0 -539
- package/dist/scripts/src/components-core/utils/request-params.js +0 -70
- package/dist/scripts/src/components-core/utils/statementUtils.js +0 -224
- package/dist/scripts/src/components-core/utils/treeUtils.js +0 -226
- package/dist/scripts/src/components-core/xmlui-parser.js +0 -548
- package/dist/scripts/src/index-standalone.js +0 -61
- package/dist/scripts/src/index.js +0 -158
- package/dist/scripts/src/language-server/server-common.js +0 -152
- package/dist/scripts/src/language-server/server-web-worker.js +0 -47
- package/dist/scripts/src/language-server/server.js +0 -42
- package/dist/scripts/src/language-server/services/common/docs-generation.js +0 -73
- package/dist/scripts/src/language-server/services/common/lsp-utils.js +0 -9
- package/dist/scripts/src/language-server/services/common/metadata-utils.js +0 -157
- package/dist/scripts/src/language-server/services/common/syntax-node-utilities.js +0 -127
- package/dist/scripts/src/language-server/services/completion.js +0 -288
- package/dist/scripts/src/language-server/services/diagnostic.js +0 -19
- package/dist/scripts/src/language-server/services/format.js +0 -569
- package/dist/scripts/src/language-server/services/hover.js +0 -164
- package/dist/scripts/src/language-server/xmlui-metadata-generated.js +0 -16276
- package/dist/scripts/src/logging/LoggerContext.js +0 -22
- package/dist/scripts/src/logging/LoggerInitializer.js +0 -14
- package/dist/scripts/src/logging/LoggerService.js +0 -60
- package/dist/scripts/src/logging/xmlui.js +0 -21
- package/dist/scripts/src/parsers/common/GenericToken.js +0 -2
- package/dist/scripts/src/parsers/common/InputStream.js +0 -59
- package/dist/scripts/src/parsers/common/utils.js +0 -19
- package/dist/scripts/src/parsers/scripting/Lexer.js +0 -1097
- package/dist/scripts/src/parsers/scripting/Parser.js +0 -2638
- package/dist/scripts/src/parsers/scripting/ParserError.js +0 -47
- package/dist/scripts/src/parsers/scripting/ScriptingNodeTypes.js +0 -50
- package/dist/scripts/src/parsers/scripting/TokenTrait.js +0 -108
- package/dist/scripts/src/parsers/scripting/TokenType.js +0 -109
- package/dist/scripts/src/parsers/scripting/code-behind-collect.js +0 -101
- package/dist/scripts/src/parsers/scripting/modules.js +0 -105
- package/dist/scripts/src/parsers/scripting/tree-visitor.js +0 -601
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +0 -39
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +0 -623
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +0 -453
- package/dist/scripts/src/parsers/style-parser/errors.js +0 -37
- package/dist/scripts/src/parsers/style-parser/source-tree.js +0 -2
- package/dist/scripts/src/parsers/style-parser/tokens.js +0 -43
- package/dist/scripts/src/parsers/xmlui-parser/CharacterCodes.js +0 -136
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +0 -60
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +0 -172
- package/dist/scripts/src/parsers/xmlui-parser/fileExtensions.js +0 -6
- package/dist/scripts/src/parsers/xmlui-parser/index.js +0 -29
- package/dist/scripts/src/parsers/xmlui-parser/lint.js +0 -165
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +0 -627
- package/dist/scripts/src/parsers/xmlui-parser/scanner.js +0 -415
- package/dist/scripts/src/parsers/xmlui-parser/syntax-kind.js +0 -123
- package/dist/scripts/src/parsers/xmlui-parser/syntax-node.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +0 -1131
- package/dist/scripts/src/parsers/xmlui-parser/utils.js +0 -83
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-serializer.js +0 -582
- package/dist/scripts/src/parsers/xmlui-parser/xmlui-tree.js +0 -2
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/index.js +0 -14
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -25
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/scripts/src/syntax/textMate/index.js +0 -14
- package/dist/scripts/src/syntax/textMate/xmlui-dark.json +0 -631
- package/dist/scripts/src/syntax/textMate/xmlui-light.json +0 -565
- package/dist/scripts/src/syntax/textMate/xmlui.json +0 -564
- package/dist/scripts/src/syntax/textMate/xmlui.tmLanguage.json +0 -341
- package/dist/scripts/src/testing/ComponentDrivers.js +0 -1380
- package/dist/scripts/src/testing/assertions.js +0 -444
- package/dist/scripts/src/testing/component-test-helpers.js +0 -373
- package/dist/scripts/src/testing/drivers/DateInputDriver.js +0 -19
- package/dist/scripts/src/testing/drivers/ModalDialogDriver.js +0 -10
- package/dist/scripts/src/testing/drivers/NumberBoxDriver.js +0 -44
- package/dist/scripts/src/testing/drivers/TextBoxDriver.js +0 -20
- package/dist/scripts/src/testing/drivers/TimeInputDriver.js +0 -22
- package/dist/scripts/src/testing/drivers/TimerDriver.js +0 -64
- package/dist/scripts/src/testing/drivers/TreeDriver.js +0 -13
- package/dist/scripts/src/testing/drivers/index.js +0 -9
- package/dist/scripts/src/testing/fixtures.js +0 -519
- package/dist/scripts/src/testing/index.js +0 -69
- package/dist/scripts/src/testing/infrastructure/TestBed.js +0 -17
- package/dist/scripts/src/testing/infrastructure/main.js +0 -9
- package/dist/scripts/src/testing/infrastructure/public/mockServiceWorker.js +0 -266
- package/dist/scripts/src/testing/themed-app-test-helpers.js +0 -133
|
@@ -1,2214 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const component_test_helpers_1 = require("../../testing/component-test-helpers");
|
|
13
|
-
const fixtures_1 = require("../../testing/fixtures");
|
|
14
|
-
fixtures_1.test.describe("Basic Functionality For All Variants", () => {
|
|
15
|
-
(0, fixtures_1.test)("Component can render", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
16
|
-
yield initTestBed(`<Badge testId="badge" />`);
|
|
17
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badge")).toBeVisible();
|
|
18
|
-
}));
|
|
19
|
-
});
|
|
20
|
-
// =============================================================================
|
|
21
|
-
// BADGE TESTS
|
|
22
|
-
// =============================================================================
|
|
23
|
-
fixtures_1.test.describe("Badge-specific Functionality", () => {
|
|
24
|
-
(0, fixtures_1.test)("colorMap background", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
25
|
-
const EXPECTED_BG_COLOR_IMP = "rgb(255, 0, 0)";
|
|
26
|
-
const EXPECTED_BG_COLOR_REG = "rgb(255, 255, 0)";
|
|
27
|
-
yield initTestBed(`
|
|
28
|
-
<Fragment>
|
|
29
|
-
<variable name="simpleColorMap"
|
|
30
|
-
value="{{ important: '${EXPECTED_BG_COLOR_IMP}', regular: '${EXPECTED_BG_COLOR_REG}' }}" />
|
|
31
|
-
<Badge testId="badgeImp" value="important" colorMap="{simpleColorMap}" />
|
|
32
|
-
<Badge testId="badgeReg" value="regular" colorMap="{simpleColorMap}" />
|
|
33
|
-
</Fragment>
|
|
34
|
-
`);
|
|
35
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeImp")).toHaveCSS("background-color", EXPECTED_BG_COLOR_IMP);
|
|
36
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeReg")).toHaveCSS("background-color", EXPECTED_BG_COLOR_REG);
|
|
37
|
-
}));
|
|
38
|
-
(0, fixtures_1.test)("colorMap background and label", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
39
|
-
const EXPECTED_TEXT_COLOR_IMP = "rgb(255, 0, 0)";
|
|
40
|
-
const EXPECTED_BG_COLOR_IMP = "rgb(0, 255, 0)";
|
|
41
|
-
const EXPECTED_TEXT_COLOR_REG = "rgb(0, 0, 255)";
|
|
42
|
-
const EXPECTED_BG_COLOR_REG = "rgb(255, 255, 0)";
|
|
43
|
-
yield initTestBed(`
|
|
44
|
-
<Fragment>
|
|
45
|
-
<variable name="simpleColorMap"
|
|
46
|
-
value="{{
|
|
47
|
-
important: {label: '${EXPECTED_TEXT_COLOR_IMP}', background: '${EXPECTED_BG_COLOR_IMP}'},
|
|
48
|
-
regular: {label: '${EXPECTED_TEXT_COLOR_REG}', background: '${EXPECTED_BG_COLOR_REG}'} }}"
|
|
49
|
-
/>
|
|
50
|
-
<Badge testId="badgeImp" value="important" colorMap="{simpleColorMap}" />
|
|
51
|
-
<Badge testId="badgeReg" value="regular" colorMap="{simpleColorMap}" />
|
|
52
|
-
</Fragment>
|
|
53
|
-
`);
|
|
54
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeImp")).toHaveCSS("background-color", EXPECTED_BG_COLOR_IMP);
|
|
55
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeImp")).toHaveCSS("color", EXPECTED_TEXT_COLOR_IMP);
|
|
56
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeReg")).toHaveCSS("background-color", EXPECTED_BG_COLOR_REG);
|
|
57
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badgeReg")).toHaveCSS("color", EXPECTED_TEXT_COLOR_REG);
|
|
58
|
-
}));
|
|
59
|
-
});
|
|
60
|
-
// =============================================================================
|
|
61
|
-
// PILL TESTS
|
|
62
|
-
// =============================================================================
|
|
63
|
-
fixtures_1.test.describe("Pill-specific Functionality", () => {
|
|
64
|
-
(0, fixtures_1.test)("Is pill shaped", (_a) => __awaiter(void 0, [_a], void 0, function* ({ page, initTestBed }) {
|
|
65
|
-
yield initTestBed(`<Badge variant="pill" testId="badge" />`);
|
|
66
|
-
const { width, height } = yield (0, component_test_helpers_1.getBounds)(page.getByTestId("badge"));
|
|
67
|
-
const smaller = Math.min(width, height);
|
|
68
|
-
const minRadius = smaller / 2;
|
|
69
|
-
const { borderRadius } = yield (0, component_test_helpers_1.getStyles)(page.getByTestId("badge"), "border-radius");
|
|
70
|
-
const radius = parseInt(borderRadius, 10);
|
|
71
|
-
(0, fixtures_1.expect)(radius).toBeGreaterThanOrEqual(minRadius);
|
|
72
|
-
}));
|
|
73
|
-
(0, fixtures_1.test)("fontSize", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
74
|
-
const EXPECTED_FONT_SIZE = "18px";
|
|
75
|
-
yield initTestBed(`<Badge variant="pill" value="test content" />`, {
|
|
76
|
-
testThemeVars: {
|
|
77
|
-
"fontSize-Badge-pill": EXPECTED_FONT_SIZE,
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
const component = (yield createBadgeDriver()).component;
|
|
81
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("font-size", EXPECTED_FONT_SIZE);
|
|
82
|
-
}));
|
|
83
|
-
(0, fixtures_1.test)("fontWeight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
84
|
-
const EXPECTED_FONT_WEIGHT = "700";
|
|
85
|
-
yield initTestBed(`<Badge variant="pill" value="test content" />`, {
|
|
86
|
-
testThemeVars: {
|
|
87
|
-
"fontWeight-Badge-pill": EXPECTED_FONT_WEIGHT,
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
const component = (yield createBadgeDriver()).component;
|
|
91
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("font-weight", EXPECTED_FONT_WEIGHT);
|
|
92
|
-
}));
|
|
93
|
-
});
|
|
94
|
-
// =============================================================================
|
|
95
|
-
// VISUAL STATE TESTS
|
|
96
|
-
// =============================================================================
|
|
97
|
-
fixtures_1.test.describe("Theme Vars: Badge", () => {
|
|
98
|
-
(0, fixtures_1.test)("backgroundColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
99
|
-
const EXPECTED_BG_COLOR = "rgb(255, 0, 0)";
|
|
100
|
-
yield initTestBed(`<Badge variant="badge" testId="badge" value="test content"/>`, {
|
|
101
|
-
testThemeVars: {
|
|
102
|
-
"backgroundColor-Badge": EXPECTED_BG_COLOR,
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badge")).toHaveCSS("background-color", EXPECTED_BG_COLOR);
|
|
106
|
-
}));
|
|
107
|
-
(0, fixtures_1.test)("textColor", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, page }) {
|
|
108
|
-
const EXPECTED_TEXT_COLOR = "rgb(255, 0, 0)";
|
|
109
|
-
yield initTestBed(`<Badge variant="badge" testId="badge" value="test content"/>`, {
|
|
110
|
-
testThemeVars: {
|
|
111
|
-
"textColor-Badge": EXPECTED_TEXT_COLOR,
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
yield (0, fixtures_1.expect)(page.getByTestId("badge")).toHaveCSS("color", EXPECTED_TEXT_COLOR);
|
|
115
|
-
}));
|
|
116
|
-
(0, fixtures_1.test)("border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
117
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
118
|
-
const EXPECTED_WIDTH = "5px";
|
|
119
|
-
const EXPECTED_STYLE = "dotted";
|
|
120
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
121
|
-
testThemeVars: {
|
|
122
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
123
|
-
},
|
|
124
|
-
});
|
|
125
|
-
const component = (yield createBadgeDriver()).component;
|
|
126
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
127
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
128
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
129
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
130
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
131
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
132
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
133
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
134
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
135
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
136
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
137
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
138
|
-
}));
|
|
139
|
-
(0, fixtures_1.test)("borderLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
140
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
141
|
-
const EXPECTED_WIDTH = "5px";
|
|
142
|
-
const EXPECTED_STYLE = "dotted";
|
|
143
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
144
|
-
testThemeVars: {
|
|
145
|
-
"borderLeft-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
146
|
-
},
|
|
147
|
-
});
|
|
148
|
-
const component = (yield createBadgeDriver()).component;
|
|
149
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
150
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
151
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
152
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
153
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
154
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
155
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
156
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
157
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
158
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
159
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
160
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
161
|
-
}));
|
|
162
|
-
(0, fixtures_1.test)("borderRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
163
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
164
|
-
const EXPECTED_WIDTH = "5px";
|
|
165
|
-
const EXPECTED_STYLE = "dotted";
|
|
166
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
167
|
-
testThemeVars: {
|
|
168
|
-
"borderRight-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
const component = (yield createBadgeDriver()).component;
|
|
172
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
173
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
174
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
175
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
176
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
177
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
178
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
179
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
180
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
181
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
182
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
183
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
184
|
-
}));
|
|
185
|
-
(0, fixtures_1.test)("borderHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
186
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
187
|
-
const EXPECTED_WIDTH = "5px";
|
|
188
|
-
const EXPECTED_STYLE = "dotted";
|
|
189
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
190
|
-
testThemeVars: {
|
|
191
|
-
"borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
const component = (yield createBadgeDriver()).component;
|
|
195
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
196
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
197
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
198
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
199
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
200
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
201
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
202
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
203
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
204
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
205
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
206
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
207
|
-
}));
|
|
208
|
-
(0, fixtures_1.test)("borderHorizontal and borderLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
209
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
210
|
-
const EXPECTED_WIDTH = "5px";
|
|
211
|
-
const EXPECTED_STYLE = "dotted";
|
|
212
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
213
|
-
testThemeVars: {
|
|
214
|
-
"borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
215
|
-
"borderLeft-Badge": "8px double rgb(0, 128, 0)",
|
|
216
|
-
},
|
|
217
|
-
});
|
|
218
|
-
const component = (yield createBadgeDriver()).component;
|
|
219
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
220
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
221
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
222
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
223
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
224
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
225
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
226
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
227
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
228
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)");
|
|
229
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", "8px");
|
|
230
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", "double");
|
|
231
|
-
}));
|
|
232
|
-
(0, fixtures_1.test)("borderHorizontal and borderRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
233
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
234
|
-
const EXPECTED_WIDTH = "5px";
|
|
235
|
-
const EXPECTED_STYLE = "dotted";
|
|
236
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
237
|
-
testThemeVars: {
|
|
238
|
-
"borderHorizontal-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
239
|
-
"borderRight-Badge": "8px double rgb(0, 128, 0)",
|
|
240
|
-
},
|
|
241
|
-
});
|
|
242
|
-
const component = (yield createBadgeDriver()).component;
|
|
243
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
244
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
245
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
246
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)");
|
|
247
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", "8px");
|
|
248
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", "double");
|
|
249
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
250
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
251
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
252
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
253
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
254
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
255
|
-
}));
|
|
256
|
-
(0, fixtures_1.test)("borderTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
257
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
258
|
-
const EXPECTED_WIDTH = "5px";
|
|
259
|
-
const EXPECTED_STYLE = "dotted";
|
|
260
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
261
|
-
testThemeVars: {
|
|
262
|
-
"borderTop-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
|
-
const component = (yield createBadgeDriver()).component;
|
|
266
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
267
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
268
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
269
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
270
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
271
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
272
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
273
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
274
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
275
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
276
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
277
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
278
|
-
}));
|
|
279
|
-
(0, fixtures_1.test)("borderBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
280
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
281
|
-
const EXPECTED_WIDTH = "5px";
|
|
282
|
-
const EXPECTED_STYLE = "dotted";
|
|
283
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
284
|
-
testThemeVars: {
|
|
285
|
-
"borderBottom-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
const component = (yield createBadgeDriver()).component;
|
|
289
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
290
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
291
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
292
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
293
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
294
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
295
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
296
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
297
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
298
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
299
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
300
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
301
|
-
}));
|
|
302
|
-
(0, fixtures_1.test)("borderVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
303
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
304
|
-
const EXPECTED_WIDTH = "5px";
|
|
305
|
-
const EXPECTED_STYLE = "dotted";
|
|
306
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
307
|
-
testThemeVars: {
|
|
308
|
-
"borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
309
|
-
},
|
|
310
|
-
});
|
|
311
|
-
const component = (yield createBadgeDriver()).component;
|
|
312
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
313
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
314
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
315
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
316
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
317
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
318
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
319
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
320
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
321
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
322
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
323
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
324
|
-
}));
|
|
325
|
-
(0, fixtures_1.test)("borderVertical and borderTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
326
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
327
|
-
const EXPECTED_WIDTH = "5px";
|
|
328
|
-
const EXPECTED_STYLE = "dotted";
|
|
329
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
330
|
-
testThemeVars: {
|
|
331
|
-
"borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
332
|
-
"borderTop-Badge": "8px double rgb(0, 128, 0)",
|
|
333
|
-
},
|
|
334
|
-
});
|
|
335
|
-
const component = (yield createBadgeDriver()).component;
|
|
336
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)");
|
|
337
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", "8px");
|
|
338
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", "double");
|
|
339
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
340
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
341
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
342
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
343
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
344
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
345
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
346
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
347
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
348
|
-
}));
|
|
349
|
-
(0, fixtures_1.test)("borderVertical and border-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
350
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
351
|
-
const EXPECTED_WIDTH = "5px";
|
|
352
|
-
const EXPECTED_STYLE = "dotted";
|
|
353
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
354
|
-
testThemeVars: {
|
|
355
|
-
"borderVertical-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
356
|
-
"borderBottom-Badge": "8px double rgb(0, 128, 0)",
|
|
357
|
-
},
|
|
358
|
-
});
|
|
359
|
-
const component = (yield createBadgeDriver()).component;
|
|
360
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
361
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
362
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
363
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
364
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
365
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
366
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)");
|
|
367
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", "8px");
|
|
368
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", "double");
|
|
369
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
370
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
371
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
372
|
-
}));
|
|
373
|
-
(0, fixtures_1.test)("border-color", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
374
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
375
|
-
const EXPECTED_WIDTH = "5px";
|
|
376
|
-
const EXPECTED_STYLE = "dotted";
|
|
377
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
378
|
-
testThemeVars: {
|
|
379
|
-
"borderColor-Badge": EXPECTED_COLOR,
|
|
380
|
-
},
|
|
381
|
-
});
|
|
382
|
-
const component = (yield createBadgeDriver()).component;
|
|
383
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
384
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
385
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
386
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
387
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
388
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
389
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
390
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
391
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
392
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
393
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
394
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
395
|
-
}));
|
|
396
|
-
(0, fixtures_1.test)("border, border-color", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
397
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
398
|
-
const EXPECTED_WIDTH = "5px";
|
|
399
|
-
const EXPECTED_STYLE = "dotted";
|
|
400
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
401
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
402
|
-
testThemeVars: {
|
|
403
|
-
"borderColor-Badge": UPDATED,
|
|
404
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
405
|
-
},
|
|
406
|
-
});
|
|
407
|
-
const component = (yield createBadgeDriver()).component;
|
|
408
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
409
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
410
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
411
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
412
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
413
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
414
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
415
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
416
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
417
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
418
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
419
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
420
|
-
}));
|
|
421
|
-
(0, fixtures_1.test)("border, border-color-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
422
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
423
|
-
const EXPECTED_WIDTH = "5px";
|
|
424
|
-
const EXPECTED_STYLE = "dotted";
|
|
425
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
426
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
427
|
-
testThemeVars: {
|
|
428
|
-
"borderHorizontalColor-Badge": UPDATED,
|
|
429
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
430
|
-
},
|
|
431
|
-
});
|
|
432
|
-
const component = (yield createBadgeDriver()).component;
|
|
433
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
434
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
435
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
436
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
437
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
438
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
439
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
440
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
441
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
442
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
443
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
444
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
445
|
-
}));
|
|
446
|
-
(0, fixtures_1.test)("border, border-color-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
447
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
448
|
-
const EXPECTED_WIDTH = "5px";
|
|
449
|
-
const EXPECTED_STYLE = "dotted";
|
|
450
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
451
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
452
|
-
testThemeVars: {
|
|
453
|
-
"borderLeftColor-Badge": UPDATED,
|
|
454
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
455
|
-
},
|
|
456
|
-
});
|
|
457
|
-
const component = (yield createBadgeDriver()).component;
|
|
458
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
459
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
460
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
461
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
462
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
463
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
464
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
465
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
466
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
467
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
468
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
469
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
470
|
-
}));
|
|
471
|
-
(0, fixtures_1.test)("border, border-color-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
472
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
473
|
-
const EXPECTED_WIDTH = "5px";
|
|
474
|
-
const EXPECTED_STYLE = "dotted";
|
|
475
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
476
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
477
|
-
testThemeVars: {
|
|
478
|
-
"borderRightColor-Badge": UPDATED,
|
|
479
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
480
|
-
},
|
|
481
|
-
});
|
|
482
|
-
const component = (yield createBadgeDriver()).component;
|
|
483
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
484
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
485
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
486
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
487
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
488
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
489
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
490
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
491
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
492
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
493
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
494
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
495
|
-
}));
|
|
496
|
-
(0, fixtures_1.test)("border, border-color-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
497
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
498
|
-
const EXPECTED_WIDTH = "5px";
|
|
499
|
-
const EXPECTED_STYLE = "dotted";
|
|
500
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
501
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
502
|
-
testThemeVars: {
|
|
503
|
-
"borderVerticalColor-Badge": UPDATED,
|
|
504
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
505
|
-
},
|
|
506
|
-
});
|
|
507
|
-
const component = (yield createBadgeDriver()).component;
|
|
508
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
509
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
510
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
511
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
512
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
513
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
514
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
515
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
516
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
517
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
518
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
519
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
520
|
-
}));
|
|
521
|
-
(0, fixtures_1.test)("border, border-color-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
522
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
523
|
-
const EXPECTED_WIDTH = "5px";
|
|
524
|
-
const EXPECTED_STYLE = "dotted";
|
|
525
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
526
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
527
|
-
testThemeVars: {
|
|
528
|
-
"borderTopColor-Badge": UPDATED,
|
|
529
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
530
|
-
},
|
|
531
|
-
});
|
|
532
|
-
const component = (yield createBadgeDriver()).component;
|
|
533
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
534
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
535
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
536
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
537
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
538
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
539
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
540
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
541
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
542
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
543
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
544
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
545
|
-
}));
|
|
546
|
-
(0, fixtures_1.test)("border, border-color-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
547
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
548
|
-
const EXPECTED_WIDTH = "5px";
|
|
549
|
-
const EXPECTED_STYLE = "dotted";
|
|
550
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
551
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
552
|
-
testThemeVars: {
|
|
553
|
-
"borderBottomColor-Badge": UPDATED,
|
|
554
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
555
|
-
},
|
|
556
|
-
});
|
|
557
|
-
const component = (yield createBadgeDriver()).component;
|
|
558
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
559
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
560
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
561
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
562
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
563
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
564
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
565
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
566
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
567
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
568
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
569
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
570
|
-
}));
|
|
571
|
-
(0, fixtures_1.test)("border-style", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
572
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
573
|
-
const EXPECTED_WIDTH = "5px";
|
|
574
|
-
const EXPECTED_STYLE = "dotted";
|
|
575
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
576
|
-
testThemeVars: {
|
|
577
|
-
"borderStyle-Badge": EXPECTED_STYLE,
|
|
578
|
-
},
|
|
579
|
-
});
|
|
580
|
-
const component = (yield createBadgeDriver()).component;
|
|
581
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
582
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
583
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
584
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
585
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
586
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
587
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
588
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
589
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
590
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
591
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
592
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
593
|
-
}));
|
|
594
|
-
(0, fixtures_1.test)("border, border-style", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
595
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
596
|
-
const EXPECTED_WIDTH = "5px";
|
|
597
|
-
const EXPECTED_STYLE = "dotted";
|
|
598
|
-
const UPDATED = "double";
|
|
599
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
600
|
-
testThemeVars: {
|
|
601
|
-
"borderStyle-Badge": UPDATED,
|
|
602
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
603
|
-
},
|
|
604
|
-
});
|
|
605
|
-
const component = (yield createBadgeDriver()).component;
|
|
606
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
607
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
608
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
609
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
610
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
611
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
612
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
613
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
614
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
615
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
616
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
617
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
618
|
-
}));
|
|
619
|
-
(0, fixtures_1.test)("border, border-style-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
620
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
621
|
-
const EXPECTED_WIDTH = "5px";
|
|
622
|
-
const EXPECTED_STYLE = "dotted";
|
|
623
|
-
const UPDATED = "double";
|
|
624
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
625
|
-
testThemeVars: {
|
|
626
|
-
"borderHorizontalStyle-Badge": UPDATED,
|
|
627
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
628
|
-
},
|
|
629
|
-
});
|
|
630
|
-
const component = (yield createBadgeDriver()).component;
|
|
631
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
632
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
633
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
634
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
635
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
636
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
637
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
638
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
639
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
640
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
641
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
642
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
643
|
-
}));
|
|
644
|
-
(0, fixtures_1.test)("border, border-style-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
645
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
646
|
-
const EXPECTED_WIDTH = "5px";
|
|
647
|
-
const EXPECTED_STYLE = "dotted";
|
|
648
|
-
const UPDATED = "double";
|
|
649
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
650
|
-
testThemeVars: {
|
|
651
|
-
"borderLeftStyle-Badge": UPDATED,
|
|
652
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
653
|
-
},
|
|
654
|
-
});
|
|
655
|
-
const component = (yield createBadgeDriver()).component;
|
|
656
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
657
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
658
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
659
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
660
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
661
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
662
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
663
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
664
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
665
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
666
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
667
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
668
|
-
}));
|
|
669
|
-
(0, fixtures_1.test)("border, border-style-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
670
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
671
|
-
const EXPECTED_WIDTH = "5px";
|
|
672
|
-
const EXPECTED_STYLE = "dotted";
|
|
673
|
-
const UPDATED = "double";
|
|
674
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
675
|
-
testThemeVars: {
|
|
676
|
-
"borderRightStyle-Badge": UPDATED,
|
|
677
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
678
|
-
},
|
|
679
|
-
});
|
|
680
|
-
const component = (yield createBadgeDriver()).component;
|
|
681
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
682
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
683
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
684
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
685
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
686
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
687
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
688
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
689
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
690
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
691
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
692
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
693
|
-
}));
|
|
694
|
-
(0, fixtures_1.test)("border, border-style-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
695
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
696
|
-
const EXPECTED_WIDTH = "5px";
|
|
697
|
-
const EXPECTED_STYLE = "dotted";
|
|
698
|
-
const UPDATED = "double";
|
|
699
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
700
|
-
testThemeVars: {
|
|
701
|
-
"borderVerticalStyle-Badge": UPDATED,
|
|
702
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
703
|
-
},
|
|
704
|
-
});
|
|
705
|
-
const component = (yield createBadgeDriver()).component;
|
|
706
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
707
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
708
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
709
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
710
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
711
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
712
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
713
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
714
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
715
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
716
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
717
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
718
|
-
}));
|
|
719
|
-
(0, fixtures_1.test)("border, border-style-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
720
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
721
|
-
const EXPECTED_WIDTH = "5px";
|
|
722
|
-
const EXPECTED_STYLE = "dotted";
|
|
723
|
-
const UPDATED = "double";
|
|
724
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
725
|
-
testThemeVars: {
|
|
726
|
-
"borderTopStyle-Badge": UPDATED,
|
|
727
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
728
|
-
},
|
|
729
|
-
});
|
|
730
|
-
const component = (yield createBadgeDriver()).component;
|
|
731
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
732
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
733
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
734
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
735
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
736
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
737
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
738
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
739
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
740
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
741
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
742
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
743
|
-
}));
|
|
744
|
-
(0, fixtures_1.test)("border, border-style-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
745
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
746
|
-
const EXPECTED_WIDTH = "5px";
|
|
747
|
-
const EXPECTED_STYLE = "dotted";
|
|
748
|
-
const UPDATED = "double";
|
|
749
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
750
|
-
testThemeVars: {
|
|
751
|
-
"borderBottomStyle-Badge": UPDATED,
|
|
752
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
753
|
-
},
|
|
754
|
-
});
|
|
755
|
-
const component = (yield createBadgeDriver()).component;
|
|
756
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
757
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
758
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
759
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
760
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
761
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
762
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
763
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
764
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
765
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
766
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
767
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
768
|
-
}));
|
|
769
|
-
(0, fixtures_1.test)("border-thickness", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
770
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
771
|
-
const EXPECTED_WIDTH = "8px";
|
|
772
|
-
const EXPECTED_STYLE = "dotted";
|
|
773
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
774
|
-
testThemeVars: {
|
|
775
|
-
"borderWidth-Badge": EXPECTED_WIDTH,
|
|
776
|
-
},
|
|
777
|
-
});
|
|
778
|
-
const component = (yield createBadgeDriver()).component;
|
|
779
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
780
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
781
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
782
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
783
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
784
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
785
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
786
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
787
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
788
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
789
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
790
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
791
|
-
}));
|
|
792
|
-
(0, fixtures_1.test)("border, border-thickness", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
793
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
794
|
-
const EXPECTED_WIDTH = "5px";
|
|
795
|
-
const EXPECTED_STYLE = "dotted";
|
|
796
|
-
const UPDATED = "12px";
|
|
797
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
798
|
-
testThemeVars: {
|
|
799
|
-
"borderWidth-Badge": UPDATED,
|
|
800
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
801
|
-
},
|
|
802
|
-
});
|
|
803
|
-
const component = (yield createBadgeDriver()).component;
|
|
804
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
805
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
806
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
807
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
808
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
809
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
810
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
811
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
812
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
813
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
814
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
815
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
816
|
-
}));
|
|
817
|
-
(0, fixtures_1.test)("border, border-thickness-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
818
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
819
|
-
const EXPECTED_WIDTH = "5px";
|
|
820
|
-
const EXPECTED_STYLE = "dotted";
|
|
821
|
-
const UPDATED = "12px";
|
|
822
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
823
|
-
testThemeVars: {
|
|
824
|
-
"borderHorizontalWidth-Badge": UPDATED,
|
|
825
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
826
|
-
},
|
|
827
|
-
});
|
|
828
|
-
const component = (yield createBadgeDriver()).component;
|
|
829
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
830
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
831
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
832
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
833
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
834
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
835
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
836
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
837
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
838
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
839
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
840
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
841
|
-
}));
|
|
842
|
-
(0, fixtures_1.test)("border, border-thickness-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
843
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
844
|
-
const EXPECTED_WIDTH = "5px";
|
|
845
|
-
const EXPECTED_STYLE = "dotted";
|
|
846
|
-
const UPDATED = "12px";
|
|
847
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
848
|
-
testThemeVars: {
|
|
849
|
-
"borderLeftWidth-Badge": UPDATED,
|
|
850
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
851
|
-
},
|
|
852
|
-
});
|
|
853
|
-
const component = (yield createBadgeDriver()).component;
|
|
854
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
855
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
856
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
857
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
858
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
859
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
860
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
861
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
862
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
863
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
864
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
865
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
866
|
-
}));
|
|
867
|
-
(0, fixtures_1.test)("border, border-thickness-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
868
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
869
|
-
const EXPECTED_WIDTH = "5px";
|
|
870
|
-
const EXPECTED_STYLE = "dotted";
|
|
871
|
-
const UPDATED = "12px";
|
|
872
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
873
|
-
testThemeVars: {
|
|
874
|
-
"borderRightWidth-Badge": UPDATED,
|
|
875
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
876
|
-
},
|
|
877
|
-
});
|
|
878
|
-
const component = (yield createBadgeDriver()).component;
|
|
879
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
880
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
881
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
882
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
883
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
884
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
885
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
886
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
887
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
888
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
889
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
890
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
891
|
-
}));
|
|
892
|
-
(0, fixtures_1.test)("border, border-thickness-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
893
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
894
|
-
const EXPECTED_WIDTH = "5px";
|
|
895
|
-
const EXPECTED_STYLE = "dotted";
|
|
896
|
-
const UPDATED = "12px";
|
|
897
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
898
|
-
testThemeVars: {
|
|
899
|
-
"borderVerticalWidth-Badge": UPDATED,
|
|
900
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
901
|
-
},
|
|
902
|
-
});
|
|
903
|
-
const component = (yield createBadgeDriver()).component;
|
|
904
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
905
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
906
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
907
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
908
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
909
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
910
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
911
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
912
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
913
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
914
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
915
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
916
|
-
}));
|
|
917
|
-
(0, fixtures_1.test)("border, border-thickness-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
918
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
919
|
-
const EXPECTED_WIDTH = "5px";
|
|
920
|
-
const EXPECTED_STYLE = "dotted";
|
|
921
|
-
const UPDATED = "12px";
|
|
922
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
923
|
-
testThemeVars: {
|
|
924
|
-
"borderTopWidth-Badge": UPDATED,
|
|
925
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
926
|
-
},
|
|
927
|
-
});
|
|
928
|
-
const component = (yield createBadgeDriver()).component;
|
|
929
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
930
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
931
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
932
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
933
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
934
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
935
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
936
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
937
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
938
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
939
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
940
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
941
|
-
}));
|
|
942
|
-
(0, fixtures_1.test)("border, border-thickness-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
943
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
944
|
-
const EXPECTED_WIDTH = "5px";
|
|
945
|
-
const EXPECTED_STYLE = "dotted";
|
|
946
|
-
const UPDATED = "12px";
|
|
947
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
948
|
-
testThemeVars: {
|
|
949
|
-
"borderBottomWidth-Badge": UPDATED,
|
|
950
|
-
"border-Badge": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
951
|
-
},
|
|
952
|
-
});
|
|
953
|
-
const component = (yield createBadgeDriver()).component;
|
|
954
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
955
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
956
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
957
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
958
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
959
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
960
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
961
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
962
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
963
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
964
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
965
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
966
|
-
}));
|
|
967
|
-
(0, fixtures_1.test)("padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
968
|
-
const EXPECTED = "100px";
|
|
969
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
970
|
-
testThemeVars: {
|
|
971
|
-
"padding-Badge": EXPECTED,
|
|
972
|
-
},
|
|
973
|
-
});
|
|
974
|
-
const component = (yield createBadgeDriver()).component;
|
|
975
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
976
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
977
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
978
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
979
|
-
}));
|
|
980
|
-
(0, fixtures_1.test)("paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
981
|
-
const EXPECTED = "100px";
|
|
982
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
983
|
-
testThemeVars: {
|
|
984
|
-
"paddingHorizontal-Badge": EXPECTED,
|
|
985
|
-
},
|
|
986
|
-
});
|
|
987
|
-
const component = (yield createBadgeDriver()).component;
|
|
988
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
989
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
990
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
991
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
992
|
-
}));
|
|
993
|
-
(0, fixtures_1.test)("paddingLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
994
|
-
const EXPECTED = "100px";
|
|
995
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
996
|
-
testThemeVars: {
|
|
997
|
-
"paddingLeft-Badge": EXPECTED,
|
|
998
|
-
},
|
|
999
|
-
});
|
|
1000
|
-
const component = (yield createBadgeDriver()).component;
|
|
1001
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
1002
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
1003
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
1004
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
1005
|
-
}));
|
|
1006
|
-
(0, fixtures_1.test)("paddingRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1007
|
-
const EXPECTED = "100px";
|
|
1008
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1009
|
-
testThemeVars: {
|
|
1010
|
-
"paddingRight-Badge": EXPECTED,
|
|
1011
|
-
},
|
|
1012
|
-
});
|
|
1013
|
-
const component = (yield createBadgeDriver()).component;
|
|
1014
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
1015
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
1016
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
1017
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
1018
|
-
}));
|
|
1019
|
-
(0, fixtures_1.test)("paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1020
|
-
const EXPECTED = "100px";
|
|
1021
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1022
|
-
testThemeVars: {
|
|
1023
|
-
"paddingVertical-Badge": EXPECTED,
|
|
1024
|
-
},
|
|
1025
|
-
});
|
|
1026
|
-
const component = (yield createBadgeDriver()).component;
|
|
1027
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1028
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
1029
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1030
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
1031
|
-
}));
|
|
1032
|
-
(0, fixtures_1.test)("paddingTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1033
|
-
const EXPECTED = "100px";
|
|
1034
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1035
|
-
testThemeVars: {
|
|
1036
|
-
"paddingTop-Badge": EXPECTED,
|
|
1037
|
-
},
|
|
1038
|
-
});
|
|
1039
|
-
const component = (yield createBadgeDriver()).component;
|
|
1040
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1041
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
1042
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
1043
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
1044
|
-
}));
|
|
1045
|
-
(0, fixtures_1.test)("paddingBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1046
|
-
const EXPECTED = "100px";
|
|
1047
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1048
|
-
testThemeVars: {
|
|
1049
|
-
"paddingBottom-Badge": EXPECTED,
|
|
1050
|
-
},
|
|
1051
|
-
});
|
|
1052
|
-
const component = (yield createBadgeDriver()).component;
|
|
1053
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
1054
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
1055
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1056
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
1057
|
-
}));
|
|
1058
|
-
(0, fixtures_1.test)("padding, paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1059
|
-
const EXPECTED = "100px";
|
|
1060
|
-
const UPDATED = "48px";
|
|
1061
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1062
|
-
testThemeVars: {
|
|
1063
|
-
"padding-Badge": EXPECTED,
|
|
1064
|
-
"paddingHorizontal-Badge": UPDATED,
|
|
1065
|
-
},
|
|
1066
|
-
});
|
|
1067
|
-
const component = (yield createBadgeDriver()).component;
|
|
1068
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1069
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
|
|
1070
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1071
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
|
|
1072
|
-
}));
|
|
1073
|
-
(0, fixtures_1.test)("padding, paddingLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1074
|
-
const EXPECTED = "100px";
|
|
1075
|
-
const UPDATED = "48px";
|
|
1076
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1077
|
-
testThemeVars: {
|
|
1078
|
-
"padding-Badge": EXPECTED,
|
|
1079
|
-
"paddingLeft-Badge": UPDATED,
|
|
1080
|
-
},
|
|
1081
|
-
});
|
|
1082
|
-
const component = (yield createBadgeDriver()).component;
|
|
1083
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1084
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
1085
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1086
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
|
|
1087
|
-
}));
|
|
1088
|
-
(0, fixtures_1.test)("padding, paddingRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1089
|
-
const EXPECTED = "100px";
|
|
1090
|
-
const UPDATED = "48px";
|
|
1091
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1092
|
-
testThemeVars: {
|
|
1093
|
-
"padding-Badge": EXPECTED,
|
|
1094
|
-
"paddingRight-Badge": UPDATED,
|
|
1095
|
-
},
|
|
1096
|
-
});
|
|
1097
|
-
const component = (yield createBadgeDriver()).component;
|
|
1098
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1099
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
|
|
1100
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1101
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
1102
|
-
}));
|
|
1103
|
-
(0, fixtures_1.test)("padding, paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1104
|
-
const EXPECTED = "100px";
|
|
1105
|
-
const UPDATED = "48px";
|
|
1106
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1107
|
-
testThemeVars: {
|
|
1108
|
-
"padding-Badge": EXPECTED,
|
|
1109
|
-
"paddingVertical-Badge": UPDATED,
|
|
1110
|
-
},
|
|
1111
|
-
});
|
|
1112
|
-
const component = (yield createBadgeDriver()).component;
|
|
1113
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
|
|
1114
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
1115
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
|
|
1116
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
1117
|
-
}));
|
|
1118
|
-
(0, fixtures_1.test)("padding, paddingTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1119
|
-
const EXPECTED = "100px";
|
|
1120
|
-
const UPDATED = "48px";
|
|
1121
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1122
|
-
testThemeVars: {
|
|
1123
|
-
"padding-Badge": EXPECTED,
|
|
1124
|
-
"paddingTop-Badge": UPDATED,
|
|
1125
|
-
},
|
|
1126
|
-
});
|
|
1127
|
-
const component = (yield createBadgeDriver()).component;
|
|
1128
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
|
|
1129
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
1130
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
1131
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
1132
|
-
}));
|
|
1133
|
-
(0, fixtures_1.test)("padding, paddingBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1134
|
-
const EXPECTED = "100px";
|
|
1135
|
-
const UPDATED = "48px";
|
|
1136
|
-
yield initTestBed(`<Badge variant="badge" value="test content"/>`, {
|
|
1137
|
-
testThemeVars: {
|
|
1138
|
-
"padding-Badge": EXPECTED,
|
|
1139
|
-
"paddingBottom-Badge": UPDATED,
|
|
1140
|
-
},
|
|
1141
|
-
});
|
|
1142
|
-
const component = (yield createBadgeDriver()).component;
|
|
1143
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
1144
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
1145
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
|
|
1146
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
1147
|
-
}));
|
|
1148
|
-
});
|
|
1149
|
-
fixtures_1.test.describe("Theme Vars: Pill", () => {
|
|
1150
|
-
(0, fixtures_1.test)("pill: padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1151
|
-
const EXPECTED_PADDING = "12px";
|
|
1152
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1153
|
-
testThemeVars: {
|
|
1154
|
-
"padding-Badge-pill": EXPECTED_PADDING,
|
|
1155
|
-
},
|
|
1156
|
-
});
|
|
1157
|
-
const component = (yield createBadgeDriver()).component;
|
|
1158
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding", EXPECTED_PADDING);
|
|
1159
|
-
}));
|
|
1160
|
-
(0, fixtures_1.test)("pill: paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1161
|
-
const EXPECTED_PADDING_HORIZONTAL = "6px";
|
|
1162
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1163
|
-
testThemeVars: {
|
|
1164
|
-
"paddingHorizontal-Badge-pill": EXPECTED_PADDING_HORIZONTAL,
|
|
1165
|
-
},
|
|
1166
|
-
});
|
|
1167
|
-
const component = (yield createBadgeDriver()).component;
|
|
1168
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED_PADDING_HORIZONTAL);
|
|
1169
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED_PADDING_HORIZONTAL);
|
|
1170
|
-
}));
|
|
1171
|
-
(0, fixtures_1.test)("pill: paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1172
|
-
const EXPECTED_PADDING_VERTICAL = "8px";
|
|
1173
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1174
|
-
testThemeVars: {
|
|
1175
|
-
"paddingVertical-Badge-pill": EXPECTED_PADDING_VERTICAL,
|
|
1176
|
-
},
|
|
1177
|
-
});
|
|
1178
|
-
const component = (yield createBadgeDriver()).component;
|
|
1179
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED_PADDING_VERTICAL);
|
|
1180
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED_PADDING_VERTICAL);
|
|
1181
|
-
}));
|
|
1182
|
-
(0, fixtures_1.test)("border", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1183
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1184
|
-
const EXPECTED_WIDTH = "5px";
|
|
1185
|
-
const EXPECTED_STYLE = "dotted";
|
|
1186
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1187
|
-
testThemeVars: {
|
|
1188
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1189
|
-
},
|
|
1190
|
-
});
|
|
1191
|
-
const component = (yield createBadgeDriver()).component;
|
|
1192
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1193
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1194
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1195
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1196
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1197
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1198
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1199
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1200
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1201
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1202
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1203
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1204
|
-
}));
|
|
1205
|
-
(0, fixtures_1.test)("borderLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1206
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1207
|
-
const EXPECTED_WIDTH = "5px";
|
|
1208
|
-
const EXPECTED_STYLE = "dotted";
|
|
1209
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1210
|
-
testThemeVars: {
|
|
1211
|
-
"borderLeft-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1212
|
-
},
|
|
1213
|
-
});
|
|
1214
|
-
const component = (yield createBadgeDriver()).component;
|
|
1215
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1216
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1217
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1218
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1219
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1220
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1221
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1222
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1223
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1224
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1225
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1226
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1227
|
-
}));
|
|
1228
|
-
(0, fixtures_1.test)("borderRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1229
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1230
|
-
const EXPECTED_WIDTH = "5px";
|
|
1231
|
-
const EXPECTED_STYLE = "dotted";
|
|
1232
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1233
|
-
testThemeVars: {
|
|
1234
|
-
"borderRight-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1235
|
-
},
|
|
1236
|
-
});
|
|
1237
|
-
const component = (yield createBadgeDriver()).component;
|
|
1238
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1239
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1240
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1241
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1242
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1243
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1244
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1245
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1246
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1247
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1248
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1249
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1250
|
-
}));
|
|
1251
|
-
(0, fixtures_1.test)("borderHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1252
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1253
|
-
const EXPECTED_WIDTH = "5px";
|
|
1254
|
-
const EXPECTED_STYLE = "dotted";
|
|
1255
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1256
|
-
testThemeVars: {
|
|
1257
|
-
"borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1258
|
-
},
|
|
1259
|
-
});
|
|
1260
|
-
const component = (yield createBadgeDriver()).component;
|
|
1261
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1262
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1263
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1264
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1265
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1266
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1267
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1268
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1269
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1270
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1271
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1272
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1273
|
-
}));
|
|
1274
|
-
(0, fixtures_1.test)("borderHorizontal and borderLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1275
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1276
|
-
const EXPECTED_WIDTH = "5px";
|
|
1277
|
-
const EXPECTED_STYLE = "dotted";
|
|
1278
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1279
|
-
testThemeVars: {
|
|
1280
|
-
"borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1281
|
-
"borderLeft-Badge-pill": "8px double rgb(0, 128, 0)",
|
|
1282
|
-
},
|
|
1283
|
-
});
|
|
1284
|
-
const component = (yield createBadgeDriver()).component;
|
|
1285
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1286
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1287
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1288
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1289
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1290
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1291
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1292
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1293
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1294
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", "rgb(0, 128, 0)");
|
|
1295
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", "8px");
|
|
1296
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", "double");
|
|
1297
|
-
}));
|
|
1298
|
-
(0, fixtures_1.test)("borderHorizontal and borderRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1299
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1300
|
-
const EXPECTED_WIDTH = "5px";
|
|
1301
|
-
const EXPECTED_STYLE = "dotted";
|
|
1302
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1303
|
-
testThemeVars: {
|
|
1304
|
-
"borderHorizontal-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1305
|
-
"borderRight-Badge-pill": "8px double rgb(0, 128, 0)",
|
|
1306
|
-
},
|
|
1307
|
-
});
|
|
1308
|
-
const component = (yield createBadgeDriver()).component;
|
|
1309
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1310
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1311
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1312
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", "rgb(0, 128, 0)");
|
|
1313
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", "8px");
|
|
1314
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", "double");
|
|
1315
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1316
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1317
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1318
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1319
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1320
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1321
|
-
}));
|
|
1322
|
-
(0, fixtures_1.test)("borderTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1323
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1324
|
-
const EXPECTED_WIDTH = "5px";
|
|
1325
|
-
const EXPECTED_STYLE = "dotted";
|
|
1326
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1327
|
-
testThemeVars: {
|
|
1328
|
-
"borderTop-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1329
|
-
},
|
|
1330
|
-
});
|
|
1331
|
-
const component = (yield createBadgeDriver()).component;
|
|
1332
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1333
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1334
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1335
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1336
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1337
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1338
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1339
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1340
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1341
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1342
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1343
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1344
|
-
}));
|
|
1345
|
-
(0, fixtures_1.test)("borderBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1346
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1347
|
-
const EXPECTED_WIDTH = "5px";
|
|
1348
|
-
const EXPECTED_STYLE = "dotted";
|
|
1349
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1350
|
-
testThemeVars: {
|
|
1351
|
-
"borderBottom-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1352
|
-
},
|
|
1353
|
-
});
|
|
1354
|
-
const component = (yield createBadgeDriver()).component;
|
|
1355
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1356
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1357
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1358
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1359
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1360
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1361
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1362
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1363
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1364
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1365
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1366
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1367
|
-
}));
|
|
1368
|
-
(0, fixtures_1.test)("borderVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1369
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1370
|
-
const EXPECTED_WIDTH = "5px";
|
|
1371
|
-
const EXPECTED_STYLE = "dotted";
|
|
1372
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1373
|
-
testThemeVars: {
|
|
1374
|
-
"borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1375
|
-
},
|
|
1376
|
-
});
|
|
1377
|
-
const component = (yield createBadgeDriver()).component;
|
|
1378
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1379
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1380
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1381
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1382
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1383
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1384
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1385
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1386
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1387
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1388
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1389
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1390
|
-
}));
|
|
1391
|
-
(0, fixtures_1.test)("borderVertical and borderTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1392
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1393
|
-
const EXPECTED_WIDTH = "5px";
|
|
1394
|
-
const EXPECTED_STYLE = "dotted";
|
|
1395
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1396
|
-
testThemeVars: {
|
|
1397
|
-
"borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1398
|
-
"borderTop-Badge-pill": "8px double rgb(0, 128, 0)",
|
|
1399
|
-
},
|
|
1400
|
-
});
|
|
1401
|
-
const component = (yield createBadgeDriver()).component;
|
|
1402
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", "rgb(0, 128, 0)");
|
|
1403
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", "8px");
|
|
1404
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", "double");
|
|
1405
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1406
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1407
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1408
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1409
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1410
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1411
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1412
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1413
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1414
|
-
}));
|
|
1415
|
-
(0, fixtures_1.test)("borderVertical and border-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1416
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1417
|
-
const EXPECTED_WIDTH = "5px";
|
|
1418
|
-
const EXPECTED_STYLE = "dotted";
|
|
1419
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1420
|
-
testThemeVars: {
|
|
1421
|
-
"borderVertical-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1422
|
-
"borderBottom-Badge-pill": "8px double rgb(0, 128, 0)",
|
|
1423
|
-
},
|
|
1424
|
-
});
|
|
1425
|
-
const component = (yield createBadgeDriver()).component;
|
|
1426
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1427
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1428
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1429
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1430
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1431
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1432
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", "rgb(0, 128, 0)");
|
|
1433
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", "8px");
|
|
1434
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", "double");
|
|
1435
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1436
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1437
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1438
|
-
}));
|
|
1439
|
-
(0, fixtures_1.test)("border-color", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1440
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1441
|
-
const EXPECTED_WIDTH = "5px";
|
|
1442
|
-
const EXPECTED_STYLE = "dotted";
|
|
1443
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1444
|
-
testThemeVars: {
|
|
1445
|
-
"borderColor-Badge-pill": EXPECTED_COLOR,
|
|
1446
|
-
},
|
|
1447
|
-
});
|
|
1448
|
-
const component = (yield createBadgeDriver()).component;
|
|
1449
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1450
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1451
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1452
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1453
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1454
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1455
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1456
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1457
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1458
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1459
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1460
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1461
|
-
}));
|
|
1462
|
-
(0, fixtures_1.test)("border, border-color", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1463
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1464
|
-
const EXPECTED_WIDTH = "5px";
|
|
1465
|
-
const EXPECTED_STYLE = "dotted";
|
|
1466
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1467
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1468
|
-
testThemeVars: {
|
|
1469
|
-
"borderColor-Badge-pill": UPDATED,
|
|
1470
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1471
|
-
},
|
|
1472
|
-
});
|
|
1473
|
-
const component = (yield createBadgeDriver()).component;
|
|
1474
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
1475
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1476
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1477
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
1478
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1479
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1480
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
1481
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1482
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1483
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
1484
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1485
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1486
|
-
}));
|
|
1487
|
-
(0, fixtures_1.test)("border, border-color-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1488
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1489
|
-
const EXPECTED_WIDTH = "5px";
|
|
1490
|
-
const EXPECTED_STYLE = "dotted";
|
|
1491
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1492
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1493
|
-
testThemeVars: {
|
|
1494
|
-
"borderHorizontalColor-Badge-pill": UPDATED,
|
|
1495
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1496
|
-
},
|
|
1497
|
-
});
|
|
1498
|
-
const component = (yield createBadgeDriver()).component;
|
|
1499
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1500
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1501
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1502
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
1503
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1504
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1505
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1506
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1507
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1508
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
1509
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1510
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1511
|
-
}));
|
|
1512
|
-
(0, fixtures_1.test)("border, border-color-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1513
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1514
|
-
const EXPECTED_WIDTH = "5px";
|
|
1515
|
-
const EXPECTED_STYLE = "dotted";
|
|
1516
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1517
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1518
|
-
testThemeVars: {
|
|
1519
|
-
"borderLeftColor-Badge-pill": UPDATED,
|
|
1520
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1521
|
-
},
|
|
1522
|
-
});
|
|
1523
|
-
const component = (yield createBadgeDriver()).component;
|
|
1524
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1525
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1526
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1527
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1528
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1529
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1530
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1531
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1532
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1533
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", UPDATED);
|
|
1534
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1535
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1536
|
-
}));
|
|
1537
|
-
(0, fixtures_1.test)("border, border-color-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1538
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1539
|
-
const EXPECTED_WIDTH = "5px";
|
|
1540
|
-
const EXPECTED_STYLE = "dotted";
|
|
1541
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1542
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1543
|
-
testThemeVars: {
|
|
1544
|
-
"borderRightColor-Badge-pill": UPDATED,
|
|
1545
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1546
|
-
},
|
|
1547
|
-
});
|
|
1548
|
-
const component = (yield createBadgeDriver()).component;
|
|
1549
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1550
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1551
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1552
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", UPDATED);
|
|
1553
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1554
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1555
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1556
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1557
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1558
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1559
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1560
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1561
|
-
}));
|
|
1562
|
-
(0, fixtures_1.test)("border, border-color-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1563
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1564
|
-
const EXPECTED_WIDTH = "5px";
|
|
1565
|
-
const EXPECTED_STYLE = "dotted";
|
|
1566
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1567
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1568
|
-
testThemeVars: {
|
|
1569
|
-
"borderVerticalColor-Badge-pill": UPDATED,
|
|
1570
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1571
|
-
},
|
|
1572
|
-
});
|
|
1573
|
-
const component = (yield createBadgeDriver()).component;
|
|
1574
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
1575
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1576
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1577
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1578
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1579
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1580
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
1581
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1582
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1583
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1584
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1585
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1586
|
-
}));
|
|
1587
|
-
(0, fixtures_1.test)("border, border-color-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1588
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1589
|
-
const EXPECTED_WIDTH = "5px";
|
|
1590
|
-
const EXPECTED_STYLE = "dotted";
|
|
1591
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1592
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1593
|
-
testThemeVars: {
|
|
1594
|
-
"borderTopColor-Badge-pill": UPDATED,
|
|
1595
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1596
|
-
},
|
|
1597
|
-
});
|
|
1598
|
-
const component = (yield createBadgeDriver()).component;
|
|
1599
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", UPDATED);
|
|
1600
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1601
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1602
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1603
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1604
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1605
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1606
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1607
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1608
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1609
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1610
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1611
|
-
}));
|
|
1612
|
-
(0, fixtures_1.test)("border, border-color-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1613
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1614
|
-
const EXPECTED_WIDTH = "5px";
|
|
1615
|
-
const EXPECTED_STYLE = "dotted";
|
|
1616
|
-
const UPDATED = "rgb(0, 128, 0)";
|
|
1617
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1618
|
-
testThemeVars: {
|
|
1619
|
-
"borderBottomColor-Badge-pill": UPDATED,
|
|
1620
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1621
|
-
},
|
|
1622
|
-
});
|
|
1623
|
-
const component = (yield createBadgeDriver()).component;
|
|
1624
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1625
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1626
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1627
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1628
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1629
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1630
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", UPDATED);
|
|
1631
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1632
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1633
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1634
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1635
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1636
|
-
}));
|
|
1637
|
-
(0, fixtures_1.test)("border-style", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1638
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1639
|
-
const EXPECTED_WIDTH = "5px";
|
|
1640
|
-
const EXPECTED_STYLE = "dotted";
|
|
1641
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1642
|
-
testThemeVars: {
|
|
1643
|
-
"borderStyle-Badge-pill": EXPECTED_STYLE,
|
|
1644
|
-
},
|
|
1645
|
-
});
|
|
1646
|
-
const component = (yield createBadgeDriver()).component;
|
|
1647
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1648
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1649
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1650
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1651
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1652
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1653
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1654
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1655
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1656
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1657
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1658
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1659
|
-
}));
|
|
1660
|
-
(0, fixtures_1.test)("border, border-style", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1661
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1662
|
-
const EXPECTED_WIDTH = "5px";
|
|
1663
|
-
const EXPECTED_STYLE = "dotted";
|
|
1664
|
-
const UPDATED = "double";
|
|
1665
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1666
|
-
testThemeVars: {
|
|
1667
|
-
"borderStyle-Badge-pill": UPDATED,
|
|
1668
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1669
|
-
},
|
|
1670
|
-
});
|
|
1671
|
-
const component = (yield createBadgeDriver()).component;
|
|
1672
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1673
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1674
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
1675
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1676
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1677
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
1678
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1679
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1680
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
1681
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1682
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1683
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
1684
|
-
}));
|
|
1685
|
-
(0, fixtures_1.test)("border, border-style-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1686
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1687
|
-
const EXPECTED_WIDTH = "5px";
|
|
1688
|
-
const EXPECTED_STYLE = "dotted";
|
|
1689
|
-
const UPDATED = "double";
|
|
1690
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1691
|
-
testThemeVars: {
|
|
1692
|
-
"borderHorizontalStyle-Badge-pill": UPDATED,
|
|
1693
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1694
|
-
},
|
|
1695
|
-
});
|
|
1696
|
-
const component = (yield createBadgeDriver()).component;
|
|
1697
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1698
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1699
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1700
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1701
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1702
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
1703
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1704
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1705
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1706
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1707
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1708
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
1709
|
-
}));
|
|
1710
|
-
(0, fixtures_1.test)("border, border-style-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1711
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1712
|
-
const EXPECTED_WIDTH = "5px";
|
|
1713
|
-
const EXPECTED_STYLE = "dotted";
|
|
1714
|
-
const UPDATED = "double";
|
|
1715
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1716
|
-
testThemeVars: {
|
|
1717
|
-
"borderLeftStyle-Badge-pill": UPDATED,
|
|
1718
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1719
|
-
},
|
|
1720
|
-
});
|
|
1721
|
-
const component = (yield createBadgeDriver()).component;
|
|
1722
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1723
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1724
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1725
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1726
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1727
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1728
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1729
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1730
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1731
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1732
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1733
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", UPDATED);
|
|
1734
|
-
}));
|
|
1735
|
-
(0, fixtures_1.test)("border, border-style-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1736
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1737
|
-
const EXPECTED_WIDTH = "5px";
|
|
1738
|
-
const EXPECTED_STYLE = "dotted";
|
|
1739
|
-
const UPDATED = "double";
|
|
1740
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1741
|
-
testThemeVars: {
|
|
1742
|
-
"borderRightStyle-Badge-pill": UPDATED,
|
|
1743
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1744
|
-
},
|
|
1745
|
-
});
|
|
1746
|
-
const component = (yield createBadgeDriver()).component;
|
|
1747
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1748
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1749
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1750
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1751
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1752
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", UPDATED);
|
|
1753
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1754
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1755
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1756
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1757
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1758
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1759
|
-
}));
|
|
1760
|
-
(0, fixtures_1.test)("border, border-style-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1761
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1762
|
-
const EXPECTED_WIDTH = "5px";
|
|
1763
|
-
const EXPECTED_STYLE = "dotted";
|
|
1764
|
-
const UPDATED = "double";
|
|
1765
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1766
|
-
testThemeVars: {
|
|
1767
|
-
"borderVerticalStyle-Badge-pill": UPDATED,
|
|
1768
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1769
|
-
},
|
|
1770
|
-
});
|
|
1771
|
-
const component = (yield createBadgeDriver()).component;
|
|
1772
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1773
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1774
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
1775
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1776
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1777
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1778
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1779
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1780
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
1781
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1782
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1783
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1784
|
-
}));
|
|
1785
|
-
(0, fixtures_1.test)("border, border-style-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1786
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1787
|
-
const EXPECTED_WIDTH = "5px";
|
|
1788
|
-
const EXPECTED_STYLE = "dotted";
|
|
1789
|
-
const UPDATED = "double";
|
|
1790
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1791
|
-
testThemeVars: {
|
|
1792
|
-
"borderTopStyle-Badge-pill": UPDATED,
|
|
1793
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1794
|
-
},
|
|
1795
|
-
});
|
|
1796
|
-
const component = (yield createBadgeDriver()).component;
|
|
1797
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1798
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1799
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", UPDATED);
|
|
1800
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1801
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1802
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1803
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1804
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1805
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1806
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1807
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1808
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1809
|
-
}));
|
|
1810
|
-
(0, fixtures_1.test)("border, border-style-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1811
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1812
|
-
const EXPECTED_WIDTH = "5px";
|
|
1813
|
-
const EXPECTED_STYLE = "dotted";
|
|
1814
|
-
const UPDATED = "double";
|
|
1815
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1816
|
-
testThemeVars: {
|
|
1817
|
-
"borderBottomStyle-Badge-pill": UPDATED,
|
|
1818
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1819
|
-
},
|
|
1820
|
-
});
|
|
1821
|
-
const component = (yield createBadgeDriver()).component;
|
|
1822
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1823
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1824
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1825
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1826
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1827
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1828
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1829
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1830
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", UPDATED);
|
|
1831
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1832
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1833
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1834
|
-
}));
|
|
1835
|
-
(0, fixtures_1.test)("border-thickness", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1836
|
-
const EXPECTED_COLOR = "rgb(0, 128, 0)";
|
|
1837
|
-
const EXPECTED_WIDTH = "8px";
|
|
1838
|
-
const EXPECTED_STYLE = "dotted";
|
|
1839
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1840
|
-
testThemeVars: {
|
|
1841
|
-
"borderWidth-Badge-pill": EXPECTED_WIDTH,
|
|
1842
|
-
},
|
|
1843
|
-
});
|
|
1844
|
-
const component = (yield createBadgeDriver()).component;
|
|
1845
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1846
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1847
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1848
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1849
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1850
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1851
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1852
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1853
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1854
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1855
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1856
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1857
|
-
}));
|
|
1858
|
-
(0, fixtures_1.test)("border, border-thickness", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1859
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1860
|
-
const EXPECTED_WIDTH = "5px";
|
|
1861
|
-
const EXPECTED_STYLE = "dotted";
|
|
1862
|
-
const UPDATED = "12px";
|
|
1863
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1864
|
-
testThemeVars: {
|
|
1865
|
-
"borderWidth-Badge-pill": UPDATED,
|
|
1866
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1867
|
-
},
|
|
1868
|
-
});
|
|
1869
|
-
const component = (yield createBadgeDriver()).component;
|
|
1870
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1871
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
1872
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1873
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1874
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
1875
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1876
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1877
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
1878
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1879
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1880
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
1881
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1882
|
-
}));
|
|
1883
|
-
(0, fixtures_1.test)("border, border-thickness-horizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1884
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1885
|
-
const EXPECTED_WIDTH = "5px";
|
|
1886
|
-
const EXPECTED_STYLE = "dotted";
|
|
1887
|
-
const UPDATED = "12px";
|
|
1888
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1889
|
-
testThemeVars: {
|
|
1890
|
-
"borderHorizontalWidth-Badge-pill": UPDATED,
|
|
1891
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1892
|
-
},
|
|
1893
|
-
});
|
|
1894
|
-
const component = (yield createBadgeDriver()).component;
|
|
1895
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1896
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1897
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1898
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1899
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
1900
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1901
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1902
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1903
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1904
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1905
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
1906
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1907
|
-
}));
|
|
1908
|
-
(0, fixtures_1.test)("border, border-thickness-left", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1909
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1910
|
-
const EXPECTED_WIDTH = "5px";
|
|
1911
|
-
const EXPECTED_STYLE = "dotted";
|
|
1912
|
-
const UPDATED = "12px";
|
|
1913
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1914
|
-
testThemeVars: {
|
|
1915
|
-
"borderLeftWidth-Badge-pill": UPDATED,
|
|
1916
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1917
|
-
},
|
|
1918
|
-
});
|
|
1919
|
-
const component = (yield createBadgeDriver()).component;
|
|
1920
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1921
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1922
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1923
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1924
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1925
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1926
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1927
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1928
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1929
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1930
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", UPDATED);
|
|
1931
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1932
|
-
}));
|
|
1933
|
-
(0, fixtures_1.test)("border, border-thickness-right", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1934
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1935
|
-
const EXPECTED_WIDTH = "5px";
|
|
1936
|
-
const EXPECTED_STYLE = "dotted";
|
|
1937
|
-
const UPDATED = "12px";
|
|
1938
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1939
|
-
testThemeVars: {
|
|
1940
|
-
"borderRightWidth-Badge-pill": UPDATED,
|
|
1941
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1942
|
-
},
|
|
1943
|
-
});
|
|
1944
|
-
const component = (yield createBadgeDriver()).component;
|
|
1945
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1946
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
1947
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1948
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1949
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", UPDATED);
|
|
1950
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1951
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1952
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
1953
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1954
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1955
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1956
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1957
|
-
}));
|
|
1958
|
-
(0, fixtures_1.test)("border, border-thickness-vertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1959
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1960
|
-
const EXPECTED_WIDTH = "5px";
|
|
1961
|
-
const EXPECTED_STYLE = "dotted";
|
|
1962
|
-
const UPDATED = "12px";
|
|
1963
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1964
|
-
testThemeVars: {
|
|
1965
|
-
"borderVerticalWidth-Badge-pill": UPDATED,
|
|
1966
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1967
|
-
},
|
|
1968
|
-
});
|
|
1969
|
-
const component = (yield createBadgeDriver()).component;
|
|
1970
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1971
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
1972
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1973
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1974
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
1975
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
1976
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
1977
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
1978
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
1979
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
1980
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
1981
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
1982
|
-
}));
|
|
1983
|
-
(0, fixtures_1.test)("border, border-thickness-top", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
1984
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
1985
|
-
const EXPECTED_WIDTH = "5px";
|
|
1986
|
-
const EXPECTED_STYLE = "dotted";
|
|
1987
|
-
const UPDATED = "12px";
|
|
1988
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
1989
|
-
testThemeVars: {
|
|
1990
|
-
"borderTopWidth-Badge-pill": UPDATED,
|
|
1991
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
1992
|
-
},
|
|
1993
|
-
});
|
|
1994
|
-
const component = (yield createBadgeDriver()).component;
|
|
1995
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
1996
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", UPDATED);
|
|
1997
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
1998
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
1999
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
2000
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
2001
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
2002
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", EXPECTED_WIDTH);
|
|
2003
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
2004
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
2005
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
2006
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
2007
|
-
}));
|
|
2008
|
-
(0, fixtures_1.test)("border, border-thickness-bottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2009
|
-
const EXPECTED_COLOR = "rgb(255, 0, 0)";
|
|
2010
|
-
const EXPECTED_WIDTH = "5px";
|
|
2011
|
-
const EXPECTED_STYLE = "dotted";
|
|
2012
|
-
const UPDATED = "12px";
|
|
2013
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2014
|
-
testThemeVars: {
|
|
2015
|
-
"borderBottomWidth-Badge-pill": UPDATED,
|
|
2016
|
-
"border-Badge-pill": `${EXPECTED_STYLE} ${EXPECTED_COLOR} ${EXPECTED_WIDTH}`,
|
|
2017
|
-
},
|
|
2018
|
-
});
|
|
2019
|
-
const component = (yield createBadgeDriver()).component;
|
|
2020
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-color", EXPECTED_COLOR);
|
|
2021
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-width", EXPECTED_WIDTH);
|
|
2022
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-top-style", EXPECTED_STYLE);
|
|
2023
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-color", EXPECTED_COLOR);
|
|
2024
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-width", EXPECTED_WIDTH);
|
|
2025
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-right-style", EXPECTED_STYLE);
|
|
2026
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-color", EXPECTED_COLOR);
|
|
2027
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-width", UPDATED);
|
|
2028
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-bottom-style", EXPECTED_STYLE);
|
|
2029
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-color", EXPECTED_COLOR);
|
|
2030
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-width", EXPECTED_WIDTH);
|
|
2031
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("border-left-style", EXPECTED_STYLE);
|
|
2032
|
-
}));
|
|
2033
|
-
(0, fixtures_1.test)("padding", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2034
|
-
const EXPECTED = "100px";
|
|
2035
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2036
|
-
testThemeVars: {
|
|
2037
|
-
"padding-Badge-pill": EXPECTED,
|
|
2038
|
-
},
|
|
2039
|
-
});
|
|
2040
|
-
const component = (yield createBadgeDriver()).component;
|
|
2041
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2042
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2043
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2044
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2045
|
-
}));
|
|
2046
|
-
(0, fixtures_1.test)("paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2047
|
-
const EXPECTED = "100px";
|
|
2048
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2049
|
-
testThemeVars: {
|
|
2050
|
-
"paddingHorizontal-Badge-pill": EXPECTED,
|
|
2051
|
-
},
|
|
2052
|
-
});
|
|
2053
|
-
const component = (yield createBadgeDriver()).component;
|
|
2054
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
2055
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2056
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
2057
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2058
|
-
}));
|
|
2059
|
-
(0, fixtures_1.test)("paddingLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2060
|
-
const EXPECTED = "100px";
|
|
2061
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2062
|
-
testThemeVars: {
|
|
2063
|
-
"paddingLeft-Badge-pill": EXPECTED,
|
|
2064
|
-
},
|
|
2065
|
-
});
|
|
2066
|
-
const component = (yield createBadgeDriver()).component;
|
|
2067
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
2068
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
2069
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
2070
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2071
|
-
}));
|
|
2072
|
-
(0, fixtures_1.test)("paddingRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2073
|
-
const EXPECTED = "100px";
|
|
2074
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2075
|
-
testThemeVars: {
|
|
2076
|
-
"paddingRight-Badge-pill": EXPECTED,
|
|
2077
|
-
},
|
|
2078
|
-
});
|
|
2079
|
-
const component = (yield createBadgeDriver()).component;
|
|
2080
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
2081
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2082
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
2083
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
2084
|
-
}));
|
|
2085
|
-
(0, fixtures_1.test)("paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2086
|
-
const EXPECTED = "100px";
|
|
2087
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2088
|
-
testThemeVars: {
|
|
2089
|
-
"paddingVertical-Badge-pill": EXPECTED,
|
|
2090
|
-
},
|
|
2091
|
-
});
|
|
2092
|
-
const component = (yield createBadgeDriver()).component;
|
|
2093
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2094
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
2095
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2096
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
2097
|
-
}));
|
|
2098
|
-
(0, fixtures_1.test)("paddingTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2099
|
-
const EXPECTED = "100px";
|
|
2100
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2101
|
-
testThemeVars: {
|
|
2102
|
-
"paddingTop-Badge-pill": EXPECTED,
|
|
2103
|
-
},
|
|
2104
|
-
});
|
|
2105
|
-
const component = (yield createBadgeDriver()).component;
|
|
2106
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2107
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
2108
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-bottom", EXPECTED);
|
|
2109
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
2110
|
-
}));
|
|
2111
|
-
(0, fixtures_1.test)("paddingBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2112
|
-
const EXPECTED = "100px";
|
|
2113
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2114
|
-
testThemeVars: {
|
|
2115
|
-
"paddingBottom-Badge-pill": EXPECTED,
|
|
2116
|
-
},
|
|
2117
|
-
});
|
|
2118
|
-
const component = (yield createBadgeDriver()).component;
|
|
2119
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-top", EXPECTED);
|
|
2120
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-right", EXPECTED);
|
|
2121
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2122
|
-
yield (0, fixtures_1.expect)(component).not.toHaveCSS("padding-left", EXPECTED);
|
|
2123
|
-
}));
|
|
2124
|
-
(0, fixtures_1.test)("padding, paddingHorizontal", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2125
|
-
const EXPECTED = "100px";
|
|
2126
|
-
const UPDATED = "48px";
|
|
2127
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2128
|
-
testThemeVars: {
|
|
2129
|
-
"padding-Badge-pill": EXPECTED,
|
|
2130
|
-
"paddingHorizontal-Badge-pill": UPDATED,
|
|
2131
|
-
},
|
|
2132
|
-
});
|
|
2133
|
-
const component = (yield createBadgeDriver()).component;
|
|
2134
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2135
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
|
|
2136
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2137
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
|
|
2138
|
-
}));
|
|
2139
|
-
(0, fixtures_1.test)("padding, paddingLeft", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2140
|
-
const EXPECTED = "100px";
|
|
2141
|
-
const UPDATED = "48px";
|
|
2142
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2143
|
-
testThemeVars: {
|
|
2144
|
-
"padding-Badge-pill": EXPECTED,
|
|
2145
|
-
"paddingLeft-Badge-pill": UPDATED,
|
|
2146
|
-
},
|
|
2147
|
-
});
|
|
2148
|
-
const component = (yield createBadgeDriver()).component;
|
|
2149
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2150
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2151
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2152
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", UPDATED);
|
|
2153
|
-
}));
|
|
2154
|
-
(0, fixtures_1.test)("padding, paddingRight", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2155
|
-
const EXPECTED = "100px";
|
|
2156
|
-
const UPDATED = "48px";
|
|
2157
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2158
|
-
testThemeVars: {
|
|
2159
|
-
"padding-Badge-pill": EXPECTED,
|
|
2160
|
-
"paddingRight-Badge-pill": UPDATED,
|
|
2161
|
-
},
|
|
2162
|
-
});
|
|
2163
|
-
const component = (yield createBadgeDriver()).component;
|
|
2164
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2165
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", UPDATED);
|
|
2166
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2167
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2168
|
-
}));
|
|
2169
|
-
(0, fixtures_1.test)("padding, paddingVertical", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2170
|
-
const EXPECTED = "100px";
|
|
2171
|
-
const UPDATED = "48px";
|
|
2172
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2173
|
-
testThemeVars: {
|
|
2174
|
-
"padding-Badge-pill": EXPECTED,
|
|
2175
|
-
"paddingVertical-Badge-pill": UPDATED,
|
|
2176
|
-
},
|
|
2177
|
-
});
|
|
2178
|
-
const component = (yield createBadgeDriver()).component;
|
|
2179
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
|
|
2180
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2181
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
|
|
2182
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2183
|
-
}));
|
|
2184
|
-
(0, fixtures_1.test)("padding, paddingTop", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2185
|
-
const EXPECTED = "100px";
|
|
2186
|
-
const UPDATED = "48px";
|
|
2187
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2188
|
-
testThemeVars: {
|
|
2189
|
-
"padding-Badge-pill": EXPECTED,
|
|
2190
|
-
"paddingTop-Badge-pill": UPDATED,
|
|
2191
|
-
},
|
|
2192
|
-
});
|
|
2193
|
-
const component = (yield createBadgeDriver()).component;
|
|
2194
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", UPDATED);
|
|
2195
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2196
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", EXPECTED);
|
|
2197
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2198
|
-
}));
|
|
2199
|
-
(0, fixtures_1.test)("padding, paddingBottom", (_a) => __awaiter(void 0, [_a], void 0, function* ({ initTestBed, createBadgeDriver }) {
|
|
2200
|
-
const EXPECTED = "100px";
|
|
2201
|
-
const UPDATED = "48px";
|
|
2202
|
-
yield initTestBed(`<Badge variant="pill" value="test content"/>`, {
|
|
2203
|
-
testThemeVars: {
|
|
2204
|
-
"padding-Badge-pill": EXPECTED,
|
|
2205
|
-
"paddingBottom-Badge-pill": UPDATED,
|
|
2206
|
-
},
|
|
2207
|
-
});
|
|
2208
|
-
const component = (yield createBadgeDriver()).component;
|
|
2209
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-top", EXPECTED);
|
|
2210
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-right", EXPECTED);
|
|
2211
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-bottom", UPDATED);
|
|
2212
|
-
yield (0, fixtures_1.expect)(component).toHaveCSS("padding-left", EXPECTED);
|
|
2213
|
-
}));
|
|
2214
|
-
});
|