Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 </head> | |
| 4 <body> | |
| 5 <canvas id="canvas" width="27" height="23"> | |
| 6 <script> | |
| 7 // Test that even if we set the icon after the extension loads, it shows up. | |
| 8 chrome.tabs.getSelected(null, function(tab) { | |
| 9 chrome.pageAction.show(tab.id); | |
| 10 chrome.pageAction.setIcon({tabId: tab.id, | |
| 11 imageData:document.getElementById("canvas") | |
| 12 .getContext('2d').getImageData(0, 0, 16, 16)}); | |
| 13 chrome.test.notifyPass(); | |
| 14 }); | |
| 15 </script> | |
| 16 </body> | |
| 17 </html> | |
| OLD | NEW |