Tests resource-related methods of WebInspector extension API Started extension. Running tests... RUNNING TEST: extension_testGetAllResources page resources: { 0 : { 0 : { getContent : setContent : type : "image" url : .../abe.png } 1 : { getContent : setContent : type : "stylesheet" url : .../audits-style1.css } 2 : { getContent : setContent : type : "document" url : .../inspected-page.html } 3 : { getContent : setContent : type : "document" url : .../subframe.html } 4 : { getContent : setContent : type : "script" url : .../test-script.js } } } RUNNING TEST: extension_testGetResourceContent { 0 : "function logMessage() { console.log("don't panic!"); } " 1 : "" } RUNNING TEST: extension_testOnContentCommitted error: Extension server error: Object does not support requested operation: Resource is not editable content committed for resource .../audits-style1.css (type: stylesheet), new content: div.test { width: 220px; height: 42px; } Revision content: div.test { width: 220px; height: 42px; } RUNNING TEST: extension_testOnResourceAdded resource added: { 0 : { getContent : setContent : type : "script" url : data:application/javascript... } } RUNNING TEST: extension_testOpenResourceHandler handleOpenResource() invoked [this should only appear once!]: { 0 : { getContent : setContent : type : "script" url : .../test-script.js } 1 : 3 } RUNNING TEST: extension_testSetResourceContent div.test width after stylesheet edited (should be 126): 126 All tests done.