Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Aug 31, 2018
1 parent ee1c489 commit f17edec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions types/protocol-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export namespace ProtocolApi {

Tracing: TracingApi;

Testing: TestingApi;

}


Expand Down Expand Up @@ -696,6 +698,16 @@ export namespace ProtocolApi {
}

export interface BrowserApi {
/**
* Grant specific permissions to the given origin and reject all others.
*/
grantPermissions(params: Protocol.Browser.GrantPermissionsRequest): Promise<void>;

/**
* Reset all permission management for all origins.
*/
resetPermissions(params: Protocol.Browser.ResetPermissionsRequest): Promise<void>;

/**
* Close browser gracefully.
*/
Expand Down Expand Up @@ -2320,6 +2332,11 @@ export namespace ProtocolApi {
*/
clearCompilationCache(): Promise<void>;

/**
* Generates a report for testing.
*/
generateTestReport(params: Protocol.Page.GenerateTestReportRequest): Promise<void>;

on(event: 'domContentEventFired', listener: (params: Protocol.Page.DomContentEventFiredEvent) => void): void;

/**
Expand Down Expand Up @@ -2769,6 +2786,14 @@ export namespace ProtocolApi {
on(event: 'tracingComplete', listener: (params: Protocol.Tracing.TracingCompleteEvent) => void): void;

}

export interface TestingApi {
/**
* Generates a report for testing.
*/
generateTestReport(params: Protocol.Testing.GenerateTestReportRequest): Promise<void>;

}
}

export default ProtocolApi;
2 changes: 1 addition & 1 deletion types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10780,7 +10780,7 @@ export namespace Protocol {
* Testing domain is a dumping ground for the capabilities requires for browser or app testing that do not fit other
* domains.
*/
export module Testing {
export namespace Testing {

export interface GenerateTestReportRequest {
/**
Expand Down

0 comments on commit f17edec

Please sign in to comment.