| 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..57d5b02b0c4400c58de2f119fffef973c52d58d5 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);
|
| + }));
|
| + };
|
| +
|
| 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');
|
| }
|
| ]);
|
| });
|
|
|