
request (direct): {"id":29,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"\"))","objectGroup":"test","includeCommandLineAPI":false}}
== Running test suite: console.screenshot
request (direct): {"id":30,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"%3D%3D%20Running%20test%20suite%3A%20console.screenshot\"))","objectGroup":"test","includeCommandLineAPI":false}}
-- Running test case: console.screenshot.SingleNode
request (direct): {"id":31,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"--%20Running%20test%20case%3A%20console.screenshot.SingleNode\"))","objectGroup":"test","includeCommandLineAPI":false}}
request (direct): {"id":32,"method":"Runtime.evaluate","params":{"expression":"console.screenshot(document.querySelector(\"#test1\"))","objectGroup":"test","includeCommandLineAPI":false}}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"422","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":32}}
event (direct): {"method":"DOM.childNodeCountUpdated","params":{"nodeId":34,"childNodeCount":6}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":29}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"423","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":87}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":30}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"424","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":93}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":31}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"425","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":52}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"[object HTMLDivElement]","type":"log","line":0,"column":0,"url":"","repeatCount":1,"parameters":[{"type":"object","objectId":"{\"injectedScriptId\":7,\"id\":1}","subtype":"node","className":"HTMLDivElement","description":"<div id=\"test1\">","preview":{"type":"object","description":"<div id=\"test1\">","lossless":false,"subtype":"node","overflow":true,"properties":[{"name":"align","type":"string","value":""},{"name":"title","type":"string","value":""},{"name":"lang","type":"string","value":""},{"name":"translate","type":"boolean","value":"true"},{"name":"dir","type":"string","value":""}]}}]}}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABNJREFUCB1j/M/AAEQMDEwgAgQAHxcCAmtAm/sAAAAASUVORK5CYII=","type":"image","line":0,"column":0,"url":"","repeatCount":1}}}
PASS: The added message should be an image.
request (direct): {"id":33,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20added%20message%20should%20be%20an%20image.\"))","objectGroup":"test","includeCommandLineAPI":false}}
PASS: The image should be a 2x2 red square.
request (direct): {"id":34,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20image%20should%20be%20a%202x2%20red%20square.\"))","objectGroup":"test","includeCommandLineAPI":false}}

request (direct): {"id":35,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"\"))","objectGroup":"test","includeCommandLineAPI":false}}
-- Running test case: console.screenshot.MultipleNodes
request (direct): {"id":36,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"--%20Running%20test%20case%3A%20console.screenshot.MultipleNodes\"))","objectGroup":"test","includeCommandLineAPI":false}}
request (direct): {"id":37,"method":"Runtime.evaluate","params":{"expression":"console.screenshot(document.querySelector(\"#test2\"), document.querySelector(\"#test1\"))","objectGroup":"test","includeCommandLineAPI":false}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":32}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"426","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":91}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":33}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"427","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":93}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":34}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"428","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":32}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":35}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"429","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":96}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":36}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"430","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":86}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"[object HTMLDivElement]","type":"log","line":0,"column":0,"url":"","repeatCount":1,"parameters":[{"type":"object","objectId":"{\"injectedScriptId\":7,\"id\":2}","subtype":"node","className":"HTMLDivElement","description":"<div id=\"test2\">","preview":{"type":"object","description":"<div id=\"test2\">","lossless":false,"subtype":"node","overflow":true,"properties":[{"name":"align","type":"string","value":""},{"name":"title","type":"string","value":""},{"name":"lang","type":"string","value":""},{"name":"translate","type":"boolean","value":"true"},{"name":"dir","type":"string","value":""}]}},{"type":"object","objectId":"{\"injectedScriptId\":7,\"id\":3}","subtype":"node","className":"HTMLDivElement","description":"<div id=\"test1\">","preview":{"type":"object","description":"<div id=\"test1\">","lossless":false,"subtype":"node","overflow":true,"properties":[{"name":"align","type":"string","value":""},{"name":"title","type":"string","value":""},{"name":"lang","type":"string","value":""},{"name":"translate","type":"boolean","value":"true"},{"name":"dir","type":"string","value":""}]}}]}}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABRJREFUCB1jZGD4/58BCJhABAgAAB0ZAgJSPDJ6AAAAAElFTkSuQmCC","type":"image","line":0,"column":0,"url":"","repeatCount":1}}}
PASS: The added message should be an image.
request (direct): {"id":38,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20added%20message%20should%20be%20an%20image.\"))","objectGroup":"test","includeCommandLineAPI":false}}
PASS: The image should be a 2x2 blue square.
request (direct): {"id":39,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20image%20should%20be%20a%202x2%20blue%20square.\"))","objectGroup":"test","includeCommandLineAPI":false}}

request (direct): {"id":40,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"\"))","objectGroup":"test","includeCommandLineAPI":false}}
-- Running test case: console.screenshot.DetachedNode
request (direct): {"id":41,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"--%20Running%20test%20case%3A%20console.screenshot.DetachedNode\"))","objectGroup":"test","includeCommandLineAPI":false}}
request (direct): {"id":42,"method":"Runtime.evaluate","params":{"expression":"console.screenshot(createDetachedTest3())","objectGroup":"test","includeCommandLineAPI":false}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":37}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"431","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":91}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":38}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"432","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":94}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":39}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"433","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":32}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":40}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"434","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":95}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":41}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"435","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":41}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"error","text":"Could not capture screenshot","type":"log","line":0,"column":0,"url":"","repeatCount":1,"parameters":[{"type":"object","objectId":"{\"injectedScriptId\":7,\"id\":4}","subtype":"node","className":"HTMLDivElement","description":"<div id=\"test3\">","preview":{"type":"object","description":"<div id=\"test3\">","lossless":false,"subtype":"node","overflow":true,"properties":[{"name":"align","type":"string","value":""},{"name":"title","type":"string","value":""},{"name":"lang","type":"string","value":""},{"name":"translate","type":"boolean","value":"true"},{"name":"dir","type":"string","value":""}]}}]}}}
PASS: Could not capture screenshot
request (direct): {"id":43,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20Could%20not%20capture%20screenshot\"))","objectGroup":"test","includeCommandLineAPI":false}}

request (direct): {"id":44,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"\"))","objectGroup":"test","includeCommandLineAPI":false}}
-- Running test case: console.screenshot.NoArguments
request (direct): {"id":45,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"--%20Running%20test%20case%3A%20console.screenshot.NoArguments\"))","objectGroup":"test","includeCommandLineAPI":false}}
request (direct): {"id":46,"method":"Runtime.evaluate","params":{"expression":"console.screenshot()","objectGroup":"test","includeCommandLineAPI":false}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":42}
event (direct): {"method":"Heap.garbageCollected","params":{"collection":{"type":"partial","startTime":2.9622294939999847,"endTime":3.002808384000218}}}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"436","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":76}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":43}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"437","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":32}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":44}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"438","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":94}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":45}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"439","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":20}}
event (direct): {"method":"Console.messageAdded","params":{"message":{"source":"console-api","level":"log","text":"data:image/png;base64, ","type":"image","line":0,"column":0,"url":"","repeatCount":1}}}
PASS: The added message should be an image.
request (direct): {"id":47,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20added%20message%20should%20be%20an%20image.\"))","objectGroup":"test","includeCommandLineAPI":false}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":46}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"440","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":91}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":47}
PASS: The image width should be greater than 2px.
request (direct): {"id":48,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20image%20width%20should%20be%20greater%20than%202px.\"))","objectGroup":"test","includeCommandLineAPI":false}}
PASS: The image height should be greater than 2px.
request (direct): {"id":49,"method":"Runtime.evaluate","params":{"expression":"TestPage.addResult(unescape(\"PASS%3A%20The%20image%20height%20should%20be%20greater%20than%202px.\"))","objectGroup":"test","includeCommandLineAPI":false}}
completeTest()
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"441","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":99}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":48}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"442","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":100}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":49}
request (direct): {"id":50,"method":"Runtime.evaluate","params":{"expression":"TestPage.completeTest()","objectGroup":"test","includeCommandLineAPI":false}}
event (direct): {"method":"Debugger.scriptParsed","params":{"scriptId":"443","url":"","startLine":0,"startColumn":0,"endLine":0,"endColumn":23}}
response (direct): {"result":{"result":{"type":"undefined"}},"id":50}
