@@ -8,7 +8,7 @@ describe("localized filters", function() {
8
8
expect ( binding ( 'input | date:"medium"' ) ) . toBe ( '03/06/1977 18:07:23' ) ;
9
9
expect ( binding ( 'input | date:"longDate"' ) ) . toBe ( "3 de junio de 1977" ) ;
10
10
expect ( binding ( 'input | number' ) ) . toBe ( '234.234.443.432' ) ;
11
- expect ( binding ( 'input | currency' ) ) . toBe ( '€ 234 .234.443.432,00' ) ;
11
+ expect ( binding ( 'input | currency' ) ) . toBe ( '€\u00a0234 .234.443.432,00' ) ;
12
12
} ) ;
13
13
} ) ;
14
14
@@ -20,8 +20,8 @@ describe("localized filters", function() {
20
20
it ( 'should check filters for cs locale' , function ( ) {
21
21
expect ( binding ( 'input | date:"medium"' ) ) . toBe ( '3.6.1977 18:07:23' ) ;
22
22
expect ( binding ( 'input | date:"longDate"' ) ) . toBe ( "3. června 1977" ) ;
23
- expect ( binding ( 'input | number' ) ) . toBe ( '234 234 443 432 ' ) ;
24
- expect ( binding ( 'input | currency' ) ) . toBe ( '234 234 443 432 ,00 K \u010d' ) ;
23
+ expect ( binding ( 'input | number' ) ) . toBe ( '234\u00a0234\u00a0443\u00a0432 ' ) ;
24
+ expect ( binding ( 'input | currency' ) ) . toBe ( '234\u00a0234\u00a0443\u00a0432 ,00\u00a0K \u010d' ) ;
25
25
} ) ;
26
26
} ) ;
27
27
@@ -34,7 +34,7 @@ describe("localized filters", function() {
34
34
expect ( binding ( 'input | date:"medium"' ) ) . toBe ( '03.06.1977 18:07:23' ) ;
35
35
expect ( binding ( 'input | date:"longDate"' ) ) . toBe ( "3. Juni 1977" ) ;
36
36
expect ( binding ( 'input | number' ) ) . toBe ( '234.234.443.432' ) ;
37
- expect ( binding ( 'input | currency' ) ) . toBe ( '234.234.443.432,00 €' ) ;
37
+ expect ( binding ( 'input | currency' ) ) . toBe ( '234.234.443.432,00\u00a0 €' ) ;
38
38
} ) ;
39
39
} ) ;
40
40
@@ -53,42 +53,42 @@ describe("localized filters", function() {
53
53
54
54
describe ( 'ng:pluralize for en locale' , function ( ) {
55
55
it ( 'should show pluralized strings' , function ( ) {
56
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have one email!' ) ;
56
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have one email!' ) ;
57
57
58
58
input ( 'plInput' ) . enter ( '0' ) ;
59
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have no email!' ) ;
59
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have no email!' ) ;
60
60
61
61
input ( 'plInput' ) . enter ( '3' ) ;
62
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have 3 emails!' ) ;
62
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'You have 3 emails!' ) ;
63
63
} ) ;
64
64
65
65
it ( 'should show pluralized strings with offsets' , function ( ) {
66
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian is viewing!' ) ;
66
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian is viewing!' ) ;
67
67
68
68
input ( 'plInput2' ) . enter ( '0' ) ;
69
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Nobody is viewing!' ) ;
69
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Nobody is viewing!' ) ;
70
70
71
71
input ( 'plInput2' ) . enter ( '2' ) ;
72
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian and Di are viewing!' ) ;
72
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian and Di are viewing!' ) ;
73
73
74
74
input ( 'plInput2' ) . enter ( '3' ) ;
75
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) .
75
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) .
76
76
toBe ( 'Shanjian, Di and one other person are viewing!' ) ;
77
77
78
78
input ( 'plInput2' ) . enter ( '4' ) ;
79
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) .
79
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) .
80
80
toBe ( 'Shanjian, Di and 2 other people are viewing!' ) ;
81
81
} ) ;
82
82
83
83
it ( 'should show pluralized strings with correct data-binding' , function ( ) {
84
84
input ( 'plInput2' ) . enter ( '2' ) ;
85
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian and Di are viewing!' ) ;
85
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian and Di are viewing!' ) ;
86
86
87
87
input ( 'person1' ) . enter ( 'Igor' ) ;
88
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Igor and Di are viewing!' ) ;
88
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Igor and Di are viewing!' ) ;
89
89
90
90
input ( 'person2' ) . enter ( 'Vojta' ) ;
91
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Igor and Vojta are viewing!' ) ;
91
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Igor and Vojta are viewing!' ) ;
92
92
} ) ;
93
93
} )
94
94
} ) ;
@@ -101,26 +101,26 @@ describe("localized filters", function() {
101
101
it ( 'should check filters for sk locale' , function ( ) {
102
102
expect ( binding ( 'input | date:"medium"' ) ) . toBe ( '3.6.1977 18:07:23' ) ;
103
103
expect ( binding ( 'input | date:"longDate"' ) ) . toBe ( "3. júna 1977" ) ;
104
- expect ( binding ( 'input | number' ) ) . toBe ( '234 234 443 432 ' ) ;
105
- expect ( binding ( 'input | currency' ) ) . toBe ( '234 234 443 432 ,00 Sk ' ) ;
104
+ expect ( binding ( 'input | number' ) ) . toBe ( '234\u00a0234\u00a0443\u00a0432 ' ) ;
105
+ expect ( binding ( 'input | currency' ) ) . toBe ( '234\u00a0234\u00a0443\u00a0432 ,00\u00a0Sk ' ) ;
106
106
} ) ;
107
107
108
108
109
109
describe ( 'ng:pluralize for sk locale' , function ( ) {
110
110
it ( 'should show pluralized strings' , function ( ) {
111
- expect ( element ( '. ng-pluralize' ) . html ( ) ) . toBe ( 'Mas jeden email!' ) ;
111
+ expect ( element ( 'ng-pluralize' ) . html ( ) ) . toBe ( 'Mas jeden email!' ) ;
112
112
113
113
input ( 'plInput' ) . enter ( '0' ) ;
114
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 0 emailov!' ) ;
114
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 0 emailov!' ) ;
115
115
116
116
input ( 'plInput' ) . enter ( '3' ) ;
117
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 3 emaily!' ) ;
117
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 3 emaily!' ) ;
118
118
119
119
input ( 'plInput' ) . enter ( '4' ) ;
120
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 4 emaily!' ) ;
120
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 4 emaily!' ) ;
121
121
122
122
input ( 'plInput' ) . enter ( '6' ) ;
123
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 6 emailov!' ) ;
123
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( 'Mas 6 emailov!' ) ;
124
124
} ) ;
125
125
126
126
it ( 'should show pluralized strings with offsets' , function ( ) {
@@ -147,38 +147,38 @@ describe("localized filters", function() {
147
147
148
148
describe ( 'ng:pluralize for zh locale' , function ( ) {
149
149
it ( 'should show pluralized strings' , function ( ) {
150
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( '1人在浏览该文件!' ) ;
150
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( '1人在浏览该文件!' ) ;
151
151
152
152
input ( 'plInput' ) . enter ( '0' ) ;
153
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( '0人在浏览该文件!' ) ;
153
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( '0人在浏览该文件!' ) ;
154
154
155
155
input ( 'plInput' ) . enter ( '3' ) ;
156
- expect ( element ( '. ng-pluralize:first' ) . html ( ) ) . toBe ( '3人在浏览该文件!' ) ;
156
+ expect ( element ( 'ng-pluralize:first' ) . html ( ) ) . toBe ( '3人在浏览该文件!' ) ;
157
157
} ) ;
158
158
159
159
it ( 'should show pluralized strings with offsets' , function ( ) {
160
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 在浏览该文件!' ) ;
160
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 在浏览该文件!' ) ;
161
161
162
162
input ( 'plInput2' ) . enter ( '0' ) ;
163
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( '没有人在浏览该文件!' ) ;
163
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( '没有人在浏览该文件!' ) ;
164
164
165
165
input ( 'plInput2' ) . enter ( '2' ) ;
166
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 和 Di 在浏览该文件!' ) ;
166
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 和 Di 在浏览该文件!' ) ;
167
167
168
168
input ( 'plInput2' ) . enter ( '3' ) ;
169
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) .
169
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) .
170
170
toBe ( 'Shanjian, Di 还有其他1 人在浏览该文件!' ) ;
171
171
} ) ;
172
172
173
173
it ( 'should show pluralized strings with correct data-binding' , function ( ) {
174
174
input ( 'plInput2' ) . enter ( '2' ) ;
175
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 和 Di 在浏览该文件!' ) ;
175
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( 'Shanjian 和 Di 在浏览该文件!' ) ;
176
176
177
177
input ( 'person1' ) . enter ( '彭迪' ) ;
178
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( '彭迪 和 Di 在浏览该文件!' ) ;
178
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( '彭迪 和 Di 在浏览该文件!' ) ;
179
179
180
180
input ( 'person2' ) . enter ( '一哥' ) ;
181
- expect ( element ( '. ng-pluralize:last' ) . html ( ) ) . toBe ( '彭迪 和 一哥 在浏览该文件!' ) ;
181
+ expect ( element ( 'ng-pluralize:last' ) . html ( ) ) . toBe ( '彭迪 和 一哥 在浏览该文件!' ) ;
182
182
} ) ;
183
183
} )
184
184
} ) ;
0 commit comments