Project

General

Profile

1
/**
2
 * @license
3
 * Copyright Google Inc. All Rights Reserved.
4
 *
5
 * Use of this source code is governed by an MIT-style license that can be
6
 * found in the LICENSE file at https://angular.io/license
7
 */
8
import { Location } from '@angular/common';
9
/**
10
 * A spy for {@link Location} that allows tests to fire simulated location events.
11
 *
12
 * @experimental
13
 */
14
export declare class SpyLocation implements Location {
15
    urlChanges: string[];
16
    private _history;
17
    private _historyIndex;
18
    setInitialPath(url: string): void;
19
    setBaseHref(url: string): void;
20
    path(): string;
21
    isCurrentPathEqualTo(path: string, query?: string): boolean;
22
    simulateUrlPop(pathname: string): void;
23
    simulateHashChange(pathname: string): void;
24
    prepareExternalUrl(url: string): string;
25
    go(path: string, query?: string): void;
26
    replaceState(path: string, query?: string): void;
27
    forward(): void;
28
    back(): void;
29
    subscribe(onNext: (value: any) => void, onThrow?: ((error: any) => void) | null, onReturn?: (() => void) | null): Object;
30
    normalize(url: string): string;
31
}
(1-1/6)