Chromium Code Reviews| Index: chrome/test/data/extensions/api_test/wallpaper/test.js |
| diff --git a/chrome/test/data/extensions/api_test/wallpaper/test.js b/chrome/test/data/extensions/api_test/wallpaper/test.js |
| index 9302d1bb617db3d40b028c8f69af2898f633a0ba..ce2fd3536907e6f0b08de113a564a9d047155fd7 100644 |
| --- a/chrome/test/data/extensions/api_test/wallpaper/test.js |
| +++ b/chrome/test/data/extensions/api_test/wallpaper/test.js |
| @@ -74,6 +74,19 @@ chrome.test.getConfig(function(config) { |
| } |
| }; |
| + var testSetWallpaperThumbnail = function(relativeURL) { |
| + var url = baseURL + relativeURL; |
| + chrome.wallpaper.setWallpaper( |
| + { 'url': url, |
| + 'layout': 'CENTER_CROPPED', |
| + 'filename': 'test', |
| + 'thumbnail': true |
| + }, pass(function(thumbnail) { |
| + var buffer = new Uint8Array(thumbnail); |
| + chrome.test.assertTrue(buffer.length > 0); |
| + })); |
| + } |
|
bshe
2016/05/17 13:44:53
nit: semicolon
|
| + |
| chrome.test.runTests([ |
| function setJpgWallpaperFromAppLocalFile() { |
| testSetWallpaperFromArrayBuffer('test.jpg'); |
| @@ -104,6 +117,9 @@ chrome.test.getConfig(function(config) { |
| false, |
| 'Set wallpaper was canceled.'); |
| testSetWallpaperFromURL('test.jpg', true); |
| + }, |
| + function getThumbnailAferSetWallpaper() { |
| + testSetWallpaperThumbnail('test.jpg'); |
| } |
| ]); |
| }); |