mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
platform test fix
This commit is contained in:
@@ -88,6 +88,7 @@ describe('Ionic Platform Service', function() {
|
||||
});
|
||||
|
||||
it('is Android', function() {
|
||||
ionic.Platform.ua = '';
|
||||
ionic.Platform.setPlatform('Android');
|
||||
expect(ionic.Platform.isAndroid()).toEqual(true);
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
// exact match
|
||||
var pName = this.platform();
|
||||
if(pName) {
|
||||
return pName.toLowerCase() === type;
|
||||
return pName === type.toLowerCase();
|
||||
}
|
||||
|
||||
// A quick hack for to check userAgent
|
||||
|
||||
Reference in New Issue
Block a user