2016-06-27 15:27:23 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SpyLocation implements Location {
|
|
|
|
urlChanges: string[];
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
|
|
|
go(path: string, query?: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
isCurrentPathEqualTo(path: string, query?: string): boolean;
|
2016-06-23 21:19:32 -04:00
|
|
|
normalize(url: string): string;
|
|
|
|
path(): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
prepareExternalUrl(url: string): string;
|
|
|
|
replaceState(path: string, query?: string): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
setBaseHref(url: string): void;
|
|
|
|
setInitialPath(url: string): void;
|
|
|
|
simulateHashChange(pathname: string): void;
|
|
|
|
simulateUrlPop(pathname: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
subscribe(onNext: (value: any) => void, onThrow?: (error: any) => void, onReturn?: () => void): Object;
|
|
|
|
}
|