3573d5e0fa
Note that changes in test expectation come from a more verbose error diagnostics for expected errors around input parameter validation. Original change: https://chromium-review.googlesource.com/c/deps/inspector_protocol/+/2270757 Bug: chromium:1099809 Change-Id: I4fc2efc9c89d0af645dad937d719fa36e1d33489 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2277142 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#68657}
158 lines
3.2 KiB
Plaintext
158 lines
3.2 KiB
Plaintext
Tests that Runtime can properly release objects and object groups.
|
|
|
|
Running test: testReleaseObject
|
|
Evaluating 'var a = {x:3};'
|
|
Evaluating 'var b = {x:4};'
|
|
Evaluate 'this' for object a
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Release "a"
|
|
Evaluate 'this' for object a
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Release "b"
|
|
Evaluate 'this' for object a
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
|
|
Running test: testReleaseObjectInvalid
|
|
ReleaseObject with invalid params.
|
|
{
|
|
error : {
|
|
code : -32602
|
|
data : Failed to deserialize params.objectId - BINDINGS: mandatory field missing at <some position>
|
|
message : Invalid parameters
|
|
}
|
|
id : <messageId>
|
|
}
|
|
|
|
Running test: testObjectGroups
|
|
Evaluating 'var a = {x:3};'
|
|
Evaluating 'var b = {x:4};'
|
|
Evaluate "a" in objectGroup "x"
|
|
Evaluate "b" in objectGroup "y"
|
|
Evaluate 'this' for object a
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Release objectGroup "x"
|
|
Evaluate 'this' for object a
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
}
|
|
}
|
|
Release objectGroup "y"
|
|
Evaluate 'this' for object a
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
Evaluate 'this' for object b
|
|
{
|
|
error : {
|
|
code : -32000
|
|
message : Could not find object with given id
|
|
}
|
|
id : <messageId>
|
|
}
|
|
|
|
Running test: testReleaseObjectGroupInvalid
|
|
ReleaseObjectGroup with invalid params
|
|
{
|
|
error : {
|
|
code : -32602
|
|
data : Failed to deserialize params.objectGroup - BINDINGS: mandatory field missing at <some position>
|
|
message : Invalid parameters
|
|
}
|
|
id : <messageId>
|
|
}
|