mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
feat(windows): change windowsphone platform to windows
fixes snapshot too references #5565
This commit is contained in:
@ -397,7 +397,7 @@ gulp.task('e2e.build', function() {
|
||||
var platforms = [
|
||||
'android',
|
||||
'ios',
|
||||
'wp'
|
||||
'windows'
|
||||
];
|
||||
|
||||
// Get each test folder with gulp.src
|
||||
|
@ -23,7 +23,7 @@ class E2EPage {
|
||||
console.log('tablet', platform.is('tablet'));
|
||||
console.log('ios', platform.is('ios'));
|
||||
console.log('android', platform.is('android'));
|
||||
console.log('windows phone', platform.is('windowsphone'));
|
||||
console.log('windows phone', platform.is('windows'));
|
||||
|
||||
platform.ready().then(() => {
|
||||
console.log('platform.ready');
|
||||
|
@ -213,9 +213,9 @@ export function run() {
|
||||
expect(config.get('mode')).toEqual('ios');
|
||||
});
|
||||
|
||||
it('should get md mode for windowsphone platform', () => {
|
||||
it('should get md mode for windows platform', () => {
|
||||
let config = new Config();
|
||||
let platform = new Platform(['mobile', 'windowsphone']);
|
||||
let platform = new Platform(['mobile', 'windows']);
|
||||
config.setPlatform(platform);
|
||||
|
||||
expect(config.get('mode')).toEqual('md');
|
||||
|
@ -137,7 +137,7 @@ Platform.register({
|
||||
|
||||
|
||||
Platform.register({
|
||||
name: 'windowsphone',
|
||||
name: 'windows',
|
||||
superset: 'mobile',
|
||||
subsets: [
|
||||
'phablet',
|
||||
@ -150,7 +150,7 @@ Platform.register({
|
||||
hoverCSS: false
|
||||
},
|
||||
isMatch(p: Platform): boolean {
|
||||
return p.isPlatform('windowsphone', 'windows phone');
|
||||
return p.isPlatform('windows', 'windows');
|
||||
},
|
||||
versionParser(p: Platform): any {
|
||||
return p.matchUserAgentVersion(/Windows Phone (\d+).(\d+)?/);
|
||||
|
Reference in New Issue
Block a user