Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4040)

Unified Diff: chrome/test/data/extensions/api_test/wallpaper/test.js

Issue 559583002: change chrome.wallpaper.setWallpaper api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/templates/intros/wallpaper.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bc1a845841b98f4a274f4573806f8abf5dc31e51..827ceab3c6730c52bb6962d0436d6f53f1633af6 100644
--- a/chrome/test/data/extensions/api_test/wallpaper/test.js
+++ b/chrome/test/data/extensions/api_test/wallpaper/test.js
@@ -25,9 +25,9 @@ chrome.test.getConfig(function(config) {
wallpaperRequest.onloadend = function(e) {
if (wallpaperRequest.status === 200) {
chrome.wallpaper.setWallpaper(
- {'wallpaperData': wallpaperRequest.response,
+ {'data': wallpaperRequest.response,
'layout': 'CENTER_CROPPED',
- 'name': 'test'},
+ 'filename': 'test'},
// Set wallpaper directly with an arraybuffer should pass.
pass()
);
@@ -56,7 +56,7 @@ chrome.test.getConfig(function(config) {
chrome.wallpaper.setWallpaper(
{'url': url,
'layout': 'CENTER_CROPPED',
- 'name': 'test'},
+ 'filename': 'test'},
// A valid url should set wallpaper correctly.
pass()
);
@@ -68,7 +68,7 @@ chrome.test.getConfig(function(config) {
chrome.wallpaper.setWallpaper(
{'url': url,
'layout': 'CENTER_CROPPED',
- 'name': 'test'},
+ 'filename': 'test'},
// Expect a failure.
fail(optExpectedError));
}
« no previous file with comments | « chrome/common/extensions/docs/templates/intros/wallpaper.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698