-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
148 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,78 @@ | ||
const { testKendoComponent } = require("./utility"); | ||
|
||
// AppBar | ||
testKendoComponent("appbar", "k-appbar", []); | ||
testKendoComponent("appbar", "k-appbar", [], []); | ||
|
||
//TODO: Add more components here | ||
// Avatar | ||
testKendoComponent("avatar", "k-avatar", [], []); | ||
|
||
// Badge | ||
testKendoComponent( | ||
"badge", | ||
"k-badge", | ||
["k-icon-wrap"], | ||
[ | ||
// Expected | ||
"kendo-badge-padding-x", // Variable is used by another variable. | ||
"kendo-badge-padding-y", // Variable is used by another variable. | ||
"kendo-badge-font-size", // Variable is used by another variable. | ||
"kendo-badge-line-height", // Variable is used by another variable. | ||
"kendo-badge-min-width", // Variable is used by another variable. | ||
|
||
// Unexpected | ||
"kendo-badge-border-radius", // Variable customizations does not work. | ||
] | ||
); | ||
|
||
// Avatar | ||
testKendoComponent("bottom-navigation", "k-bottom-nav", ["k-icon-wrap"], []); | ||
|
||
// Button | ||
testKendoComponent( | ||
"button", | ||
"k-button", | ||
["k-badge", "k-icon-wrap"], | ||
[ | ||
// Expected | ||
"kendo-button-padding-x", // Variable is used by another variable. | ||
"kendo-button-padding-y", // Variable is used by another variable. | ||
"kendo-button-font-size", // Variable is used by another variable. | ||
"kendo-button-line-height", // Variable is used by another variable. | ||
"kendo-button-calc-size", // Variable is used by another variable. | ||
"kendo-button-inner-calc-size", // Variable is used by another variable. | ||
|
||
// Unexpected | ||
"kendo-button-focus-bg", // Variable customizations does not work. | ||
"kendo-button-focus-text", // Variable customizations does not work. | ||
"kendo-button-focus-border", // Variable customizations does not work. | ||
"kendo-button-focus-gradient", // Variable customizations does not work. | ||
] | ||
); | ||
|
||
// Captcha | ||
testKendoComponent( | ||
"captcha", | ||
"k-captcha", | ||
[ | ||
"k-input", | ||
"k-button", | ||
"k-icon-wrap", | ||
// "k-textbox", - Fails as textbox has no selector. | ||
"k-slider", | ||
], | ||
[ | ||
// Expected | ||
"kendo-captcha-spacer", // Variable is used by another variable. | ||
] | ||
); | ||
|
||
// Drawer | ||
testKendoComponent( | ||
"drawer", | ||
"k-drawer", | ||
["k-list", "k-toolbar", "k-overlay"], | ||
[ | ||
// Expected | ||
"kendo-drawer-item-level-count", // Variable is customized properly. | ||
] | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters