@@ -281,8 +281,10 @@ Item {
281281
282282 function test_wallpaper_data() {
283283 return [
284− {tag: "red", url: "tests/data/unity/backgrounds/red.png"},
285− {tag: "blue", url: "tests/data/unity/backgrounds/blue.png"}
284+ {tag: "red", url: "tests/data/unity/backgrounds/red.png", expectedUrl: "tests/data/unity/backgrounds/red.png"},
285+ {tag: "blue", url: "tests/data/unity/backgrounds/blue.png", expectedUrl: "tests/data/unity/backgrounds/blue.png"},
286+ {tag: "invalid", url: "invalid", expectedUrl: shell.defaultBackground},
287+ {tag: "empty", url: "", expectedUrl: shell.defaultBackground}
286288 ]
287289 }
288290
@@ -292,13 +294,5 @@ Item {
292294 tryCompareFunction(function() { return backgroundImage.source.toString().indexOf(data.url) !== -1; }, true)
293295 tryCompare(backgroundImage, "status", Image.Ready)
294296 }
295−
296− function test_wallpaper_wrong() {
297− var backgroundImage = findChild(shell, "backgroundImage")
298− GSettingsController.setPictureUri("wrong")
299− tryCompare(backgroundImage, "status", Image.Error)
300− tryCompareFunction(function() { return backgroundImage.source.toString().indexOf(shell.defaultBackground) !== -1; }, true)
301− tryCompare(backgroundImage, "status", Image.Ready)
302− }
303297 }
304298}