happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
53 lines (46 loc) • 1.06 kB
text/typescript
import AsyncTaskManager from '../../async-task-manager/AsyncTaskManager.js';
import type IBrowserFrame from '../../browser/types/IBrowserFrame.js';
/**
* Document ready state manager.
*/
export default class DocumentReadyStateManager {
/**
* Constructor.
*
* @param browserFrame Browser frame.
*/
constructor(browserFrame: IBrowserFrame) {
this.
}
/**
* Returns a promise that is fulfilled when ready state is complete.
*
* @returns Promise.
*/
public waitUntilComplete(): Promise<void> {
return this.
}
/**
* Starts a task.
*
* @returns Task ID.
*/
public startTask(): number {
return this.
}
/**
* Ends a task.
*
* @param taskID Task ID.
*/
public endTask(taskID: number): void {
this.
}
/**
* Destroys the manager.
*/
public destroy(): Promise<void> {
return this.
}
}