forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TestReporter & LifecycleReporter to Inspector API
- Loading branch information
1 parent
3bc4abf
commit fdea7b0
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
Source/JavaScriptCore/inspector/protocol/LifecycleReporter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"domain": "LifecycleReporter", | ||
"description": "LifecycleReporter domain allows reporting of lifecycle events.", | ||
"debuggableTypes": ["itml", "javascript"], | ||
"targetTypes": ["itml", "javascript"], | ||
"types": [], | ||
"commands": [ | ||
{ | ||
"name": "enable", | ||
"description": "Enables LifecycleReporter domain events." | ||
}, | ||
{ | ||
"name": "disable", | ||
"description": "Disables LifecycleReporter domain events." | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"name": "reload", | ||
"parameters": [] | ||
}, | ||
{ | ||
"name": "error", | ||
"parameters": [{ "name": "message", "$ref": "Console.ConsoleMessage", "description": "Source of the error" }] | ||
} | ||
] | ||
} |
58 changes: 58 additions & 0 deletions
58
Source/JavaScriptCore/inspector/protocol/TestReporter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"domain": "TestReporter", | ||
"description": "TestReporter domain allows reporting of lifecycle events.", | ||
"debuggableTypes": ["itml", "javascript"], | ||
"targetTypes": ["itml", "javascript"], | ||
"types": [ | ||
{ | ||
"id": "TestStatus", | ||
"type": "string", | ||
"enum": ["pass", "fail", "timeout", "skip", "todo"] | ||
} | ||
], | ||
"commands": [ | ||
{ | ||
"name": "enable", | ||
"description": "Enables TestReporter domain events." | ||
}, | ||
{ | ||
"name": "disable", | ||
"description": "Disables TestReporter domain events." | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"name": "found", | ||
"parameters": [ | ||
{ "name": "id", "type": "integer", "description": "Unique identifier of the test that was found." }, | ||
{ | ||
"name": "scriptId", | ||
"$ref": "Debugger.ScriptId", | ||
"description": "Unique identifier of the script that started the test." | ||
}, | ||
{ | ||
"name": "line", | ||
"type": "integer", | ||
"description": "Line number in the script that started the test." | ||
}, | ||
{ "name": "name", "type": "string", "description": "Name of the test that started.", "optional": true } | ||
] | ||
}, | ||
{ | ||
"name": "start", | ||
"parameters": [{ "name": "id", "type": "integer", "description": "Unique identifier of the test that started." }] | ||
}, | ||
{ | ||
"name": "end", | ||
"parameters": [ | ||
{ "name": "id", "type": "integer", "description": "Unique identifier of the test that ended." }, | ||
{ "name": "status", "$ref": "TestStatus", "description": "Status of the test that ended." }, | ||
{ | ||
"name": "elapsed", | ||
"type": "number", | ||
"description": "Elapsed time in milliseconds since the test started." | ||
} | ||
] | ||
} | ||
] | ||
} |