cf4adddbfa
protocol::HashMap(std::unordered_map)::iterator doesn't provide any guarantees about iteration order. At least Visual C++ from vS 2015 and clang compile for loop inside forEachSession differently. For tests we need stable order of iteration, so let's use std::map instead. R=dgozman@chromium.org Bug: none Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Change-Id: I329cb24cd182baa86c0ea4a526257856718f32b1 Reviewed-on: https://chromium-review.googlesource.com/609489 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/heads/master@{#47281}
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 2
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 1
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 3
|
|
{
|
|
method : Runtime.executionContextDestroyed
|
|
params : {
|
|
executionContextId : <executionContextId>
|
|
}
|
|
}
|
|
id matching: true
|
|
From session 2
|
|
{
|
|
method : Runtime.executionContextCreated
|
|
params : {
|
|
context : {
|
|
id : 2
|
|
name :
|
|
origin :
|
|
}
|
|
}
|
|
}
|
|
From session 1
|
|
{
|
|
method : Runtime.executionContextCreated
|
|
params : {
|
|
context : {
|
|
id : 2
|
|
name :
|
|
origin :
|
|
}
|
|
}
|
|
}
|
|
From session 3
|
|
{
|
|
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 :
|
|
}
|
|
}
|
|
}
|