protocol-works-with-different-locale-expected.txt 3.31 KB
Newer Older
1
Tests that protocol works with different locales
2

3 4 5 6 7 8
Running test: consoleLogWithDefaultLocale
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
9
                description : 239
10 11 12 13 14 15 16 17 18
                type : number
                value : 239
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 8
19
                    functionName :
20 21
                    lineNumber : 0
                    scriptId : <scriptId>
22
                    url :
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
                }
            ]
        }
        timestamp : <timestamp>
        type : log
    }
}

Running test: consoleTimeWithCommaAsSeparator
set locale to fr_CA.UTF-8 (has comma as separator)
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                type : string
39
                value : a: 0.001 ms
40 41 42 43 44 45
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
46
                    columnNumber : 8
47
                    functionName :
48 49
                    lineNumber : 0
                    scriptId : <scriptId>
50
                    url :
51 52 53 54
                }
            ]
        }
        timestamp : <timestamp>
55
        type : timeEnd
56 57 58 59 60 61 62 63 64 65
    }
}

Running test: consoleLogWithCommaAsSeparator
set locale to fr_CA.UTF-8 (has comma as separator)
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
66
                description : 239
67 68 69 70 71 72 73 74 75
                type : number
                value : 239
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 8
76
                    functionName :
77 78
                    lineNumber : 0
                    scriptId : <scriptId>
79
                    url :
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
                }
            ]
        }
        timestamp : <timestamp>
        type : log
    }
}

Running test: consoleTimeWithCommaAfterConsoleLog
set locale to fr_CA.UTF-8 (has comma as separator)
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
95
                description : 239
96 97 98 99 100 101 102 103 104
                type : number
                value : 239
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 8
105
                    functionName :
106 107
                    lineNumber : 0
                    scriptId : <scriptId>
108
                    url :
109 110 111 112 113 114 115 116 117 118 119 120 121
                }
            ]
        }
        timestamp : <timestamp>
        type : log
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                type : string
122
                value : a: 0.001 ms
123 124 125 126 127 128
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
129
                    columnNumber : 8
130
                    functionName :
131 132
                    lineNumber : 0
                    scriptId : <scriptId>
133
                    url :
134 135 136 137
                }
            ]
        }
        timestamp : <timestamp>
138
        type : timeEnd
139 140
    }
}