375bea1c45
This patch adds ability to connect multiple sessions to a single context group. This is an experimental feature, which is already supported in test harness. So far covered runtime domain with tests (and found a bug thanks to the test). More tests to follow in next patches, probably with code adjustments as well. BUG=chromium:590878 Review-Url: https://codereview.chromium.org/2906153002 Cr-Commit-Position: refs/heads/master@{#45667}
133 lines
2.2 KiB
Plaintext
133 lines
2.2 KiB
Plaintext
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
|
|
From session 3
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 1
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 2
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 3
|
|
{
|
|
method : Runtime.executionContextCreated
|
|
params : {
|
|
context : {
|
|
id : 2
|
|
name :
|
|
origin :
|
|
}
|
|
}
|
|
}
|
|
From session 1
|
|
{
|
|
method : Runtime.executionContextCreated
|
|
params : {
|
|
context : {
|
|
id : 2
|
|
name :
|
|
origin :
|
|
}
|
|
}
|
|
}
|
|
From session 2
|
|
{
|
|
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 :
|
|
}
|
|
}
|
|
}
|