b5e81c7ccf
This gives sessions separate remote objects space and also makes command line api respect the session it was called from. BUG=chromium:590878 Review-Url: https://codereview.chromium.org/2916803005 Cr-Commit-Position: refs/heads/master@{#45708}
212 lines
3.5 KiB
Plaintext
212 lines
3.5 KiB
Plaintext
Tests that multiple sessions do not share command line api.
|
|
Setting $0 in 1
|
|
Evaluating $0 in 1
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Evaluating $0 in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
type : undefined
|
|
}
|
|
}
|
|
}
|
|
Setting $0 in 2
|
|
Evaluating $0 in 1
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Evaluating $0 in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Setting $_ in 1
|
|
Evaluating $_ in 1
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Evaluating $_ in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
type : undefined
|
|
}
|
|
}
|
|
}
|
|
Setting $_ in 2
|
|
Evaluating $_ in 1
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Evaluating $_ in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 1
|
|
inspectRequested from 1
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 1 through variable
|
|
inspectRequested from 1
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 2
|
|
inspectRequested from 2
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 2 through variable
|
|
inspectRequested from 2
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 2 through variable from 1
|
|
inspectRequested from 1
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
Disconnecting 1
|
|
Evaluating $0 in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Evaluating $_ in 2
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 2
|
|
inspectRequested from 2
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|
|
Inspecting in 2 through variable from 1
|
|
Inspecting in 2 through variable
|
|
inspectRequested from 2
|
|
{
|
|
method : Runtime.inspectRequested
|
|
params : {
|
|
hints : {
|
|
}
|
|
object : {
|
|
description : 17
|
|
type : number
|
|
value : 17
|
|
}
|
|
}
|
|
}
|