runtime-restore-expected.txt 2.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
Checks that Runtime agent correctly restore its state.

Running test: testExecutionContextsNotificationsOnRestore
{
    method : Runtime.executionContextCreated
    params : {
        context : {
            id : 1
            name : 
            origin : 
11
            uniqueId : <uniqueId>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
        }
    }
}
will reconnect..
{
    method : Runtime.executionContextsCleared
    params : {
    }
}
{
    method : Runtime.executionContextCreated
    params : {
        context : {
            id : 1
            name : 
            origin : 
28
            uniqueId : <uniqueId>
29 30 31 32 33 34 35 36 37 38 39
        }
    }
}

Running test: testConsoleAPICalledAfterRestore
will reconnect..
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
40
                description : 42
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
                type : number
                value : 42
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 8
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : log
    }
}

Running test: testSetCustomObjectFormatterEnabled
will reconnect..
will reconnect..
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                className : Object
                customPreview : {
72
                    bodyGetterId : <bodyGetterId>
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
                    header : ["span",{},"Header formatted ",42]
                }
                description : Object
                objectId : <objectId>
                preview : {
                    description : Object
                    overflow : false
                    properties : [
                        [0] : {
                            name : name
                            type : number
                            value : 42
                        }
                    ]
                    type : object
                }
                type : object
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 8
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : log
    }
}
{
    id : <messageId>
    result : {
        result : {
            type : undefined
        }
    }
}