2016-11-23 17:09:32 +00:00
|
|
|
Checks that console.assert works and points to correct call frame.
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.assert
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 10
|
|
|
|
functionName : testFunction
|
|
|
|
lineNumber : 4
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : test.js
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 0
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : evaluate.js
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : assert
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 1
|
2016-11-23 17:09:32 +00:00
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 10
|
|
|
|
functionName : testFunction
|
|
|
|
lineNumber : 5
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : test.js
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 0
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : evaluate.js
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : assert
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 1
|
2016-11-23 17:09:32 +00:00
|
|
|
type : number
|
|
|
|
value : 1
|
|
|
|
}
|
|
|
|
[1] : {
|
2018-05-31 18:51:49 +00:00
|
|
|
description : 2
|
2016-11-23 17:09:32 +00:00
|
|
|
type : number
|
|
|
|
value : 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 10
|
|
|
|
functionName : testFunction
|
|
|
|
lineNumber : 6
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : test.js
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 0
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : evaluate.js
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : assert
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
method : Runtime.consoleAPICalled
|
|
|
|
params : {
|
|
|
|
args : [
|
|
|
|
[0] : {
|
|
|
|
type : string
|
|
|
|
value : console.assert
|
|
|
|
}
|
|
|
|
]
|
|
|
|
executionContextId : <executionContextId>
|
|
|
|
stackTrace : {
|
|
|
|
callFrames : [
|
|
|
|
[0] : {
|
|
|
|
columnNumber : 10
|
|
|
|
functionName : testFunction
|
|
|
|
lineNumber : 7
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : test.js
|
|
|
|
}
|
|
|
|
[1] : {
|
|
|
|
columnNumber : 0
|
|
|
|
functionName :
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
url : evaluate.js
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
timestamp : <timestamp>
|
|
|
|
type : assert
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
id : <messageId>
|
|
|
|
result : {
|
|
|
|
result : {
|
|
|
|
className : Function
|
|
|
|
description : function assert() { [native code] }
|
|
|
|
objectId : <objectId>
|
|
|
|
type : function
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|