Skip to content

Commit 8df8420

Browse files
committed
feat(windows): change windowsphone platform to windows
fixes snapshot too references #5565
1 parent c43a1a2 commit 8df8420

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ gulp.task('e2e.build', function() {
397397
var platforms = [
398398
'android',
399399
'ios',
400-
'wp'
400+
'windows'
401401
];
402402

403403
// Get each test folder with gulp.src

ionic/components/modal/test/basic/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class E2EPage {
2323
console.log('tablet', platform.is('tablet'));
2424
console.log('ios', platform.is('ios'));
2525
console.log('android', platform.is('android'));
26-
console.log('windows phone', platform.is('windowsphone'));
26+
console.log('windows phone', platform.is('windows'));
2727

2828
platform.ready().then(() => {
2929
console.log('platform.ready');

ionic/config/test/config.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ export function run() {
213213
expect(config.get('mode')).toEqual('ios');
214214
});
215215

216-
it('should get md mode for windowsphone platform', () => {
216+
it('should get md mode for windows platform', () => {
217217
let config = new Config();
218-
let platform = new Platform(['mobile', 'windowsphone']);
218+
let platform = new Platform(['mobile', 'windows']);
219219
config.setPlatform(platform);
220220

221221
expect(config.get('mode')).toEqual('md');

ionic/platform/registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Platform.register({
137137

138138

139139
Platform.register({
140-
name: 'windowsphone',
140+
name: 'windows',
141141
superset: 'mobile',
142142
subsets: [
143143
'phablet',
@@ -150,7 +150,7 @@ Platform.register({
150150
hoverCSS: false
151151
},
152152
isMatch(p: Platform): boolean {
153-
return p.isPlatform('windowsphone', 'windows phone');
153+
return p.isPlatform('windows', 'windows');
154154
},
155155
versionParser(p: Platform): any {
156156
return p.matchUserAgentVersion(/Windows Phone (\d+).(\d+)?/);

0 commit comments

Comments
 (0)