368f55bb63
New tests added for: * Runtime.getProperties while debugger is paused * Runtime.exceptionThrown * Runtime.releaseObject/releaseObjectGroup Change-Id: I72b3455e9fb3269c097bf9a383187c119158a722 Reviewed-on: https://chromium-review.googlesource.com/c/1490172 Commit-Queue: Jeff Fisher <jeffish@microsoft.com> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#59984}
157 lines
3.0 KiB
Plaintext
157 lines
3.0 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 : objectId: string value expected
|
|
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 : objectGroup: string value expected
|
|
message : Invalid parameters
|
|
}
|
|
id : <messageId>
|
|
} |