refactor(NavController): restructuring and perf improvements

This commit is contained in:
Adam Bradley
2015-10-29 14:37:49 -05:00
parent cd4f683ce5
commit 36f82b2473
45 changed files with 592 additions and 887 deletions

View File

@@ -21,6 +21,20 @@ export function run() {
expect(platform.is('ios')).toEqual(false);
});
it('should get case insensitive querystring value', () => {
let platform = new Platform();
platform.url('/?KEY=value');
expect(platform.query('key')).toEqual('value');
});
it('should get querystring value', () => {
let platform = new Platform();
platform.url('/?key=value');
expect(platform.query('key')).toEqual('value');
});
it('should set ios via platformOverride, despite android querystring', () => {
let platform = new Platform();
platform.url('/?ionicplatform=android');