aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-10-06 15:49:58 +0200
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:02:59 -0400
commit44eb0ccba9435079f41e526368bfb13654371f8d (patch)
treed803c994fdc3a900617d039ecc1948555a7da2dd
parent2bf307313b9e40900193267bc2fb779b9ab24b5c (diff)
downloadjquery-ui-44eb0ccba9435079f41e526368bfb13654371f8d.tar.gz
jquery-ui-44eb0ccba9435079f41e526368bfb13654371f8d.zip
Checkboxradio: Fix label option tests by trimming DOM text
IE8 is inconsistent in outputting space through .html() and .text() methods, but since it renders it correctly, we can just ignore it.
-rw-r--r--tests/unit/checkboxradio/options.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/unit/checkboxradio/options.js b/tests/unit/checkboxradio/options.js
index 734bb2e17..1614994c4 100644
--- a/tests/unit/checkboxradio/options.js
+++ b/tests/unit/checkboxradio/options.js
@@ -120,8 +120,8 @@ test( "label - default", function() {
widget = checkbox.checkboxradio( "widget" );
strictEqual( checkbox.checkboxradio( "option", "label" ),
"checkbox label", "When no value passed on create text from dom is used for option" );
- strictEqual( widget.text(),
- " checkbox label", "When no value passed on create text from dom is used in dom" );
+ strictEqual( $.trim( widget.text() ),
+ "checkbox label", "When no value passed on create text from dom is used in dom" );
} );
test( "label - explicit value", function() {
expect( 5 );
@@ -134,8 +134,8 @@ test( "label - explicit value", function() {
strictEqual( checkbox.checkboxradio( "option", "label" ),
"foo", "When value is passed on create value is used for option" );
- strictEqual( widget.text(),
- " foo", "When value is passed on create value is used in dom" );
+ strictEqual( $.trim( widget.text() ),
+ "foo", "When value is passed on create value is used in dom" );
strictEqual( icon.length, 1,
"Icon is preserved when label is set on init when wrapped in label" );
strictEqual( iconSpace.length, 1,
@@ -159,8 +159,8 @@ test( "label - explicit null value", function() {
widget = checkbox.checkboxradio( "widget" );
strictEqual( checkbox.checkboxradio( "option", "label" ),
"checkbox label", "When null is passed on create text from dom is used for option" );
- strictEqual( widget.text(),
- " checkbox label", "When null is passed on create text from dom is used in dom" );
+ strictEqual( $.trim( widget.text() ),
+ "checkbox label", "When null is passed on create text from dom is used in dom" );
} );
@@ -175,14 +175,14 @@ test( "label", function() {
checkbox.checkboxradio( "option", "label", "bar" );
strictEqual( checkbox.checkboxradio( "option", "label" ),
"bar", "When value is passed value is used for option" );
- strictEqual( widget.text(),
- " bar", "When value is passed value is used in dom" );
+ strictEqual( $.trim( widget.text() ),
+ "bar", "When value is passed value is used in dom" );
checkbox.checkboxradio( "option", "label", null );
strictEqual( checkbox.checkboxradio( "option", "label" ),
"bar", "When null is passed text from dom is used for option" );
- strictEqual( widget.text(),
- " bar", "When null is passed text from dom is used in dom" );
+ strictEqual( $.trim( widget.text() ),
+ "bar", "When null is passed text from dom is used in dom" );
} );
tomated/noid/stable23-update-ca-cert-bundle'>automated/noid/stable23-update-ca-cert-bundle Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Log/Manage.php
blob: f67f0d969f6339050686312d71d37917ab1b723c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185