File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
components/modal/test/basic Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ gulp.task('e2e.build', function() {
397
397
var platforms = [
398
398
'android' ,
399
399
'ios' ,
400
- 'wp '
400
+ 'windows '
401
401
] ;
402
402
403
403
// Get each test folder with gulp.src
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class E2EPage {
23
23
console . log ( 'tablet' , platform . is ( 'tablet' ) ) ;
24
24
console . log ( 'ios' , platform . is ( 'ios' ) ) ;
25
25
console . log ( 'android' , platform . is ( 'android' ) ) ;
26
- console . log ( 'windows phone' , platform . is ( 'windowsphone ' ) ) ;
26
+ console . log ( 'windows phone' , platform . is ( 'windows ' ) ) ;
27
27
28
28
platform . ready ( ) . then ( ( ) => {
29
29
console . log ( 'platform.ready' ) ;
Original file line number Diff line number Diff line change @@ -213,9 +213,9 @@ export function run() {
213
213
expect ( config . get ( 'mode' ) ) . toEqual ( 'ios' ) ;
214
214
} ) ;
215
215
216
- it ( 'should get md mode for windowsphone platform' , ( ) => {
216
+ it ( 'should get md mode for windows platform' , ( ) => {
217
217
let config = new Config ( ) ;
218
- let platform = new Platform ( [ 'mobile' , 'windowsphone ' ] ) ;
218
+ let platform = new Platform ( [ 'mobile' , 'windows ' ] ) ;
219
219
config . setPlatform ( platform ) ;
220
220
221
221
expect ( config . get ( 'mode' ) ) . toEqual ( 'md' ) ;
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ Platform.register({
137
137
138
138
139
139
Platform . register ( {
140
- name : 'windowsphone ' ,
140
+ name : 'windows ' ,
141
141
superset : 'mobile' ,
142
142
subsets : [
143
143
'phablet' ,
@@ -150,7 +150,7 @@ Platform.register({
150
150
hoverCSS : false
151
151
} ,
152
152
isMatch ( p : Platform ) : boolean {
153
- return p . isPlatform ( 'windowsphone ' , 'windows phone ' ) ;
153
+ return p . isPlatform ( 'windows ' , 'windows' ) ;
154
154
} ,
155
155
versionParser ( p : Platform ) : any {
156
156
return p . matchUserAgentVersion ( / W i n d o w s P h o n e ( \d + ) .( \d + ) ? / ) ;
You can’t perform that action at this time.
0 commit comments