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 { LocationStrategy } from '@angular/common';
9
/**
10
 * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated
11
 * location events.
12
 *
13
 * @stable
14
 */
15
export declare class MockLocationStrategy extends LocationStrategy {
16
    internalBaseHref: string;
17
    internalPath: string;
18
    internalTitle: string;
19
    urlChanges: string[];
20
    constructor();
21
    simulatePopState(url: string): void;
22
    path(includeHash?: boolean): string;
23
    prepareExternalUrl(internal: string): string;
24
    pushState(ctx: any, title: string, path: string, query: string): void;
25
    replaceState(ctx: any, title: string, path: string, query: string): void;
26
    onPopState(fn: (value: any) => void): void;
27
    getBaseHref(): string;
28
    back(): void;
29
    forward(): void;
30
}
(3-3/6)