| OLD | NEW |
| 1 CONSOLE MESSAGE: line 13: 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 : { |
| 11 0 : { | 11 0 : { |
| 12 getContent : <function> | 12 getContent : <function> |
| 13 setContent : <function> | 13 setContent : <function> |
| 14 type : "image" | 14 type : "image" |
| 15 url : .../abe.png | 15 url : .../abe.png |
| 16 } | 16 } |
| 17 1 : { | 17 1 : { |
| 18 getContent : <function> | 18 getContent : <function> |
| 19 setContent : <function> | 19 setContent : <function> |
| 20 type : "stylesheet" | 20 type : "stylesheet" |
| 21 url : .../audits-style1.css | 21 url : .../audits-style1.css |
| 22 } | 22 } |
| 23 2 : { | 23 2 : { |
| 24 getContent : <function> | 24 getContent : <function> |
| 25 setContent : <function> | 25 setContent : <function> |
| 26 type : "document" | 26 type : "document" |
| 27 url : .../extensions-resources.html | 27 url : .../subframe.html |
| 28 } | 28 } |
| 29 3 : { | 29 3 : { |
| 30 getContent : <function> | 30 getContent : <function> |
| 31 setContent : <function> | 31 setContent : <function> |
| 32 type : "script" | 32 type : "script" |
| 33 url : .../extensions-test.js | |
| 34 } | |
| 35 4 : { | |
| 36 getContent : <function> | |
| 37 setContent : <function> | |
| 38 type : "script" | |
| 39 url : .../inspector-test.js | |
| 40 } | |
| 41 5 : { | |
| 42 getContent : <function> | |
| 43 setContent : <function> | |
| 44 type : "script" | |
| 45 url : .../test-script.js | 33 url : .../test-script.js |
| 46 } | 34 } |
| 47 } | 35 } |
| 48 } | 36 } |
| 49 RUNNING TEST: extension_testGetResourceContent | 37 RUNNING TEST: extension_testGetResourceContent |
| 50 { | 38 { |
| 51 0 : "function __test_function() | 39 0 : "function logMessage() |
| 52 { | 40 { |
| 41 console.log("don't panic!"); |
| 53 } | 42 } |
| 54 | 43 |
| 55 " | 44 " |
| 56 1 : "" | 45 1 : "" |
| 57 } | 46 } |
| 58 RUNNING TEST: extension_testOnContentCommitted | 47 RUNNING TEST: extension_testOnContentCommitted |
| 59 log: Extension server error: Object does not support requested operation: Resour
ce is not editable | 48 log: Extension server error: Object does not support requested operation: Resour
ce is not editable |
| 60 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; } |
| 61 Revision content: div.test { width: 220px; height: 42px; } | 50 Revision content: div.test { width: 220px; height: 42px; } |
| 62 RUNNING TEST: extension_testOnResourceAdded | 51 RUNNING TEST: extension_testOnResourceAdded |
| 63 resource added: | 52 resource added: |
| 64 { | 53 { |
| 65 0 : { | 54 0 : { |
| 66 getContent : <function> | 55 getContent : <function> |
| 67 setContent : <function> | 56 setContent : <function> |
| 68 type : "script" | 57 type : "script" |
| 69 url : data:application/javascript... | 58 url : data:application/javascript... |
| 70 } | 59 } |
| 71 } | 60 } |
| 72 RUNNING TEST: extension_testOpenResourceHandler | 61 RUNNING TEST: extension_testOpenResourceHandler |
| 73 handleOpenResource() invoked [this should only appear once!]: | 62 handleOpenResource() invoked [this should only appear once!]: |
| 74 { | 63 { |
| 75 0 : { | 64 0 : { |
| 76 getContent : <function> | 65 getContent : <function> |
| 77 setContent : <function> | 66 setContent : <function> |
| 78 type : "document" | 67 type : "script" |
| 79 url : .../extensions-resources.html | 68 url : .../test-script.js |
| 80 } | 69 } |
| 81 1 : 13 | 70 1 : 3 |
| 82 } | 71 } |
| 83 RUNNING TEST: extension_testSetResourceContent | 72 RUNNING TEST: extension_testSetResourceContent |
| 84 div.test width after stylesheet edited (should be 126): 126 | 73 div.test width after stylesheet edited (should be 126): 126 |
| 85 All tests done. | 74 All tests done. |
| 86 | 75 |
| OLD | NEW |