| OLD | NEW |
| 1 CONSOLE MESSAGE: line 3: don't panic! | 1 CONSOLE MESSAGE: line 3: don't panic! |
| 2 Tests resource-related methods of WebInspector extension API | 2 Tests resource-related methods of WebInspector extension API |
| 3 | 3 |
| 4 | 4 |
| 5 Started extension. | 5 Started extension. |
| 6 Running tests... | 6 Running tests... |
| 7 RUNNING TEST: extension_testGetAllResources | 7 RUNNING TEST: extension_testGetAllResources |
| 8 page resources: | 8 page resources: |
| 9 { | 9 { |
| 10 0 : { | 10 0 : { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 { | 38 { |
| 39 0 : "function logMessage() | 39 0 : "function logMessage() |
| 40 { | 40 { |
| 41 console.log("don't panic!"); | 41 console.log("don't panic!"); |
| 42 } | 42 } |
| 43 | 43 |
| 44 " | 44 " |
| 45 1 : "" | 45 1 : "" |
| 46 } | 46 } |
| 47 RUNNING TEST: extension_testOnContentCommitted | 47 RUNNING TEST: extension_testOnContentCommitted |
| 48 log: Extension server error: Object does not support requested operation: Resour
ce is not editable | 48 error: Extension server error: Object does not support requested operation: Reso
urce is not editable |
| 49 content committed for resource .../audits-style1.css (type: stylesheet), new con
tent: div.test { width: 220px; height: 42px; } | 49 content committed for resource .../audits-style1.css (type: stylesheet), new con
tent: div.test { width: 220px; height: 42px; } |
| 50 Revision content: div.test { width: 220px; height: 42px; } | 50 Revision content: div.test { width: 220px; height: 42px; } |
| 51 RUNNING TEST: extension_testOnResourceAdded | 51 RUNNING TEST: extension_testOnResourceAdded |
| 52 resource added: | 52 resource added: |
| 53 { | 53 { |
| 54 0 : { | 54 0 : { |
| 55 getContent : <function> | 55 getContent : <function> |
| 56 setContent : <function> | 56 setContent : <function> |
| 57 type : "script" | 57 type : "script" |
| 58 url : data:application/javascript... | 58 url : data:application/javascript... |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 RUNNING TEST: extension_testOpenResourceHandler | 61 RUNNING TEST: extension_testOpenResourceHandler |
| 62 handleOpenResource() invoked [this should only appear once!]: | 62 handleOpenResource() invoked [this should only appear once!]: |
| 63 { | 63 { |
| 64 0 : { | 64 0 : { |
| 65 getContent : <function> | 65 getContent : <function> |
| 66 setContent : <function> | 66 setContent : <function> |
| 67 type : "script" | 67 type : "script" |
| 68 url : .../test-script.js | 68 url : .../test-script.js |
| 69 } | 69 } |
| 70 1 : 3 | 70 1 : 3 |
| 71 } | 71 } |
| 72 RUNNING TEST: extension_testSetResourceContent | 72 RUNNING TEST: extension_testSetResourceContent |
| 73 div.test width after stylesheet edited (should be 126): 126 | 73 div.test width after stylesheet edited (should be 126): 126 |
| 74 All tests done. | 74 All tests done. |
| 75 | 75 |
| OLD | NEW |