set-script-source-exception-expected.txt 520 Bytes
Newer Older
1 2 3 4 5 6
Check that setScriptSource completes correctly when an exception is thrown.

Running test: testIncorrectScriptId
{
    error : {
        code : -32000
7
        message : No script with given id found
8 9 10 11 12 13
    }
    id : <messageId>
}

Running test: testSourceWithSyntaxError
{
14
    id : <messageId>
15 16
    result : {
        exceptionDetails : {
17
            columnNumber : 11
18
            exceptionId : <exceptionId>
19 20
            lineNumber : 1
            text : Uncaught SyntaxError: Invalid or unexpected token
21 22
        }
    }
23
}