2017-06-01 21:33:59 +00:00
|
|
|
Tests that creating multiple sessions works.
|
|
|
|
Connecting session 1
|
|
|
|
From session 1
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 1
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Connecting session 2
|
|
|
|
From session 2
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 1
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Reconnecting session 2
|
|
|
|
From session 2
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 1
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Reconnecting session 1
|
|
|
|
From session 1
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 1
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Connecting session 3
|
|
|
|
From session 3
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 1
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Destroying and creating context
|
2017-08-10 07:18:58 +00:00
|
|
|
From session 2
|
2017-06-01 21:33:59 +00:00
|
|
|
{
|
|
|
|
method : Runtime.executionContextDestroyed
|
|
|
|
params : {
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
id matching: true
|
|
|
|
From session 1
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextDestroyed
|
|
|
|
params : {
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
id matching: true
|
2017-08-10 07:18:58 +00:00
|
|
|
From session 3
|
2017-06-01 21:33:59 +00:00
|
|
|
{
|
|
|
|
method : Runtime.executionContextDestroyed
|
|
|
|
params : {
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
id matching: true
|
2017-08-10 07:18:58 +00:00
|
|
|
From session 2
|
2017-06-01 21:33:59 +00:00
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 2
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
From session 1
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 2
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-10 07:18:58 +00:00
|
|
|
From session 3
|
2017-06-01 21:33:59 +00:00
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 2
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Disconnecting all sessions
|
|
|
|
Connecting session 4
|
|
|
|
From session 4
|
|
|
|
{
|
|
|
|
method : Runtime.executionContextCreated
|
|
|
|
params : {
|
|
|
|
context : {
|
|
|
|
id : 2
|
|
|
|
name :
|
|
|
|
origin :
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|