2017-01-26 01:29:01 +00:00
|
|
|
Check that setScriptSource completes correctly when an exception is thrown.
|
|
|
|
|
|
|
|
Running test: testIncorrectScriptId
|
|
|
|
{
|
|
|
|
error : {
|
|
|
|
code : -32000
|
2017-02-03 22:10:04 +00:00
|
|
|
message : No script with given id found
|
2017-01-26 01:29:01 +00:00
|
|
|
}
|
|
|
|
id : <messageId>
|
|
|
|
}
|
|
|
|
|
|
|
|
Running test: testSourceWithSyntaxError
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
exceptionDetails : {
|
|
|
|
columnNumber : 2
|
|
|
|
exceptionId : <exceptionId>
|
|
|
|
lineNumber : 0
|
|
|
|
text : Invalid or unexpected token
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|