Protocol stability test. It is dumping request/response pairs of RuntimeAgent functions. ----------------------------------------------------------- RuntimeAgent.evaluate("testObject","test",false) request: { method : "Runtime.evaluate" params : { expression : "testObject" objectGroup : "test" includeCommandLineAPI : false } id : } response: { result : { result : { type : "object" objectId : className : description : "TestObject" } } id : } ----------------------------------------------------------- RuntimeAgent.evaluate("testObject","test") request: { method : "Runtime.evaluate" params : { expression : "testObject" objectGroup : "test" } id : } response: { result : { result : { type : "object" objectId : className : description : "TestObject" } } id : } ----------------------------------------------------------- RuntimeAgent.callFunctionOn(,"function() { this.assignedByCallFunctionOn = \"callFunctionOn function works fine\"; return this.assignedByCallFunctionOn; }") request: { method : "Runtime.callFunctionOn" params : { objectId : functionDeclaration : "function() { this.assignedByCallFunctionOn = "callFunctionOn function works fine"; return this.assignedByCallFunctionOn; }" } id : } response: { result : { result : { type : "string" value : "callFunctionOn function works fine" } } id : } ----------------------------------------------------------- RuntimeAgent.evaluate("var o = {n:2011, b:true, s:\"a string\", o:{n:2011}}; o","test",false,true,null,true) request: { method : "Runtime.evaluate" params : { expression : "var o = {n:2011, b:true, s:"a string", o:{n:2011}}; o" objectGroup : "test" includeCommandLineAPI : false doNotPauseOnExceptions : true returnByValue : true } id : } response: { result : { result : { type : "object" value : { n : 2011 b : true s : "a string" o : { n : 2011 } } } } id : } ----------------------------------------------------------- RuntimeAgent.evaluate("var x = {}; x.self = x; x","test",false,true,null,true) request: { method : "Runtime.evaluate" params : { expression : "var x = {}; x.self = x; x" objectGroup : "test" includeCommandLineAPI : false doNotPauseOnExceptions : true returnByValue : true } id : } response: { error : { code : -32000 message : "Object has too long reference chain(must not be longer than 1000)" } id : } ----------------------------------------------------------- RuntimeAgent.callFunctionOn(,"function() { this.self = this; return this; }",null,true) request: { method : "Runtime.callFunctionOn" params : { objectId : functionDeclaration : "function() { this.self = this; return this; }" returnByValue : true } id : } response: { error : { code : -32000 message : "Object has too long reference chain(must not be longer than 1000)" } id : } ----------------------------------------------------------- RuntimeAgent.getProperties(,true) request: { method : "Runtime.getProperties" params : { objectId : ownProperties : true } id : } response: { result : { result : [ { value : { type : "string" value : "callFunctionOn function works fine" } writable : true enumerable : true configurable : true name : "assignedByCallFunctionOn" } { value : { type : "object" objectId : className : description : "TestObject" } writable : true enumerable : true configurable : true name : "self" } { name : "__proto__" value : { type : "object" objectId : className : description : "TestObject" } writable : true configurable : true enumerable : false } ] } id : } ----------------------------------------------------------- RuntimeAgent.releaseObject() request: { method : "Runtime.releaseObject" params : { objectId : } id : } response: { result : { } id : } ----------------------------------------------------------- RuntimeAgent.releaseObjectGroup("test") request: { method : "Runtime.releaseObjectGroup" params : { objectGroup : "test" } id : } response: { result : { } id : } ----------------------------------------------------------- RuntimeAgent.run() request: { method : "Runtime.run" id : } response: { result : { } id : } =========================================================== Coverage for RuntimeAgent { evaluate : "checked" callFunctionOn : "checked" getProperties : "checked" releaseObject : "checked" releaseObjectGroup : "checked" run : "checked" }