| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var canvas = document.getElementById("canvas").getContext('2d'). | 5 var canvas = document.getElementById("canvas").getContext('2d'). |
| 6 getImageData(0, 0, 19, 19); | 6 getImageData(0, 0, 19, 19); |
| 7 var canvasHD = document.getElementById("canvas").getContext('2d'). | 7 var canvasHD = document.getElementById("canvas").getContext('2d'). |
| 8 getImageData(0, 0, 38, 38); | 8 getImageData(0, 0, 38, 38); |
| 9 | 9 |
| 10 var setIconParamQueue = [ | 10 var setIconParamQueue = [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 try { | 29 try { |
| 30 chrome.browserAction.setIcon(setIconParamQueue.shift(), function() { | 30 chrome.browserAction.setIcon(setIconParamQueue.shift(), function() { |
| 31 chrome.test.notifyPass();}); | 31 chrome.test.notifyPass();}); |
| 32 } catch (error) { | 32 } catch (error) { |
| 33 console.log(error.message); | 33 console.log(error.message); |
| 34 chrome.test.notifyFail(error.message); | 34 chrome.test.notifyFail(error.message); |
| 35 } | 35 } |
| 36 }); | 36 }); |
| 37 | 37 |
| 38 chrome.test.notifyPass(); | 38 chrome.test.notifyPass(); |
| OLD | NEW |