File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ const metadata = {
26
26
* <b>Note:</b> A disabled <code>ui5-checkbox</code> is completely uninteractive.
27
27
*
28
28
* @type {boolean }
29
+ * @defaultvalue false
29
30
* @public
30
31
*/
31
32
disabled : {
32
33
type : Boolean ,
34
+ defaultValue : false ,
33
35
} ,
34
36
35
37
/**
@@ -39,10 +41,12 @@ const metadata = {
39
41
* but still provides visual feedback upon user interaction.
40
42
*
41
43
* @type {boolean }
44
+ * @defaultvalue false
42
45
* @public
43
46
*/
44
47
readOnly : {
45
48
type : Boolean ,
49
+ defaultValue : false ,
46
50
} ,
47
51
48
52
/**
@@ -53,16 +57,19 @@ const metadata = {
53
57
* pressing the Enter or Space key.
54
58
*
55
59
* @type {boolean }
60
+ * @defaultvalue false
56
61
* @public
57
62
*/
58
63
checked : {
59
64
type : Boolean ,
65
+ defaultValue : false ,
60
66
} ,
61
67
62
68
/**
63
69
* Defines the text of the <code>ui5-checkbox</code>.
64
70
*
65
71
* @type {string }
72
+ * @defaultvalue ""
66
73
* @public
67
74
*/
68
75
text : {
@@ -76,6 +83,7 @@ const metadata = {
76
83
* <b>Note:</b> Available options are <code>Warning</code>, <code>Error</code>, and <code>None</code> (default).
77
84
*
78
85
* @type {string }
86
+ * @defaultvalue None
79
87
* @public
80
88
*/
81
89
valueState : {
@@ -89,10 +97,12 @@ const metadata = {
89
97
* <b>Note:</b> By default, the text truncates when there is not enough space.
90
98
*
91
99
* @type {boolean }
100
+ * @defaultvalue false
92
101
* @public
93
102
*/
94
103
wrap : {
95
104
type : Boolean ,
105
+ defaultValue : false ,
96
106
} ,
97
107
98
108
/**
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ const assert = require('assert');
3
3
describe ( "CheckBox general interaction" , ( ) => {
4
4
browser . url ( "http://localhost:8080/test-resources/sap/ui/webcomponents/main/pages/CheckBox.html" ) ;
5
5
6
+ it ( "tests checked default value is false" , ( ) => {
7
+ const checkBox = browser . findElementDeep ( "#cb1" ) ;
8
+
9
+ assert . strictEqual ( checkBox . getProperty ( "checked" ) , false , "Check if default value for checked is false" ) ;
10
+ } ) ;
11
+
6
12
it ( "tests change event" , ( ) => {
7
13
const checkBox = browser . findElementDeep ( "#cb1" ) ;
8
14
const field = browser . findElementDeep ( "#field" ) ;
@@ -36,4 +42,4 @@ describe("CheckBox general interaction", () => {
36
42
assert . strictEqual ( truncatingCbHeight , CHECKBOX_DEFAULT_HEIGHT , "The size of the checkbox is : " + truncatingCbHeight ) ;
37
43
assert . ok ( wrappingCbHeight > CHECKBOX_DEFAULT_HEIGHT , "The size of the checkbox is more than: " + CHECKBOX_DEFAULT_HEIGHT ) ;
38
44
} ) ;
39
- } ) ;
45
+ } ) ;
You can’t perform that action at this time.
0 commit comments