v8/test/inspector/runtime/custom-preview-expected.txt
Alexei Filippov 4eae3bb140 [inspector] Make InjectedScript::getProperties respect custom formatters
BUG=chromium:917136

Change-Id: I02696a3315c22b34705bbc48cddaeb9e6c59fa9f
Reviewed-on: https://chromium-review.googlesource.com/c/1391749
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58482}
2018-12-27 23:17:57 +00:00

251 lines
6.0 KiB
Plaintext

RemoteObject.CustomPreview
Dump custom previews..
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 1 ","a"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 1
[3] : a
[4] : [
[0] : object
[1] : {
className : Object
description : Object
objectId : <objectId>
type : object
}
]
]
}
}
}
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 2 ","b"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 2
[3] : b
]
}
}
}
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 1 ","c"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 1
[3] : c
[4] : [
[0] : object
[1] : {
className : Object
description : Object
objectId : <objectId>
type : object
}
]
]
}
}
}
{
header : ["span",{},"Formatter with config ",["object",{"type":"object","className":"Object","description":"Object","objectId":"{\"injectedScriptId\":1,\"id\":10}","customPreview":{"header":"[\"span\",{},\"Header \",\"info: \",\"additional info\"]","bodyGetterId":"{\"injectedScriptId\":1,\"id\":11}"}}]]
}
Change formatters order and dump again..
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 1 ","a"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 1
[3] : a
[4] : [
[0] : object
[1] : {
className : Object
description : Object
objectId : <objectId>
type : object
}
]
]
}
}
}
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 2 ","b"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 2
[3] : b
]
}
}
}
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 2 ","c"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 2
[3] : c
]
}
}
}
{
header : ["span",{},"Formatter with config ",["object",{"type":"object","className":"Object","description":"Object","objectId":"{\"injectedScriptId\":1,\"id\":21}","customPreview":{"header":"[\"span\",{},\"Header \",\"info: \",\"additional info\"]","bodyGetterId":"{\"injectedScriptId\":1,\"id\":22}"}}]]
}
Test Runtime.getProperties
{
bodyGetterId : <bodyGetterId>
header : ["span",{},"Header formatted by 1 ","a"]
}
{
id : <messageId>
result : {
result : {
type : object
value : [
[0] : span
[1] : {
}
[2] : Body formatted by 1
[3] : a
[4] : [
[0] : object
[1] : {
className : Object
description : Object
objectId : <objectId>
type : object
}
]
]
}
}
}
Try to break custom preview..
{
method : Runtime.consoleAPICalled
params : {
args : [
[0] : {
type : string
value : Custom Formatter Failed: Uncaught 1
}
]
executionContextId : <executionContextId>
timestamp : <timestamp>
type : error
}
}
{
method : Runtime.consoleAPICalled
params : {
args : [
[0] : {
type : string
value : Custom Formatter Failed: Uncaught 1
}
]
executionContextId : <executionContextId>
timestamp : <timestamp>
type : error
}
}
{
method : Runtime.consoleAPICalled
params : {
args : [
[0] : {
type : string
value : Custom Formatter Failed: Uncaught 2
}
]
executionContextId : <executionContextId>
timestamp : <timestamp>
type : error
}
}
{
method : Runtime.consoleAPICalled
params : {
args : [
[0] : {
type : string
value : Custom Formatter Failed: Uncaught 3
}
]
executionContextId : <executionContextId>
timestamp : <timestamp>
type : error
}
}
{
method : Runtime.consoleAPICalled
params : {
args : [
[0] : {
type : string
value : Custom Formatter Failed: Uncaught 4
}
]
executionContextId : <executionContextId>
timestamp : <timestamp>
type : error
}
}