Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16329 from Joshua-S/bug-971704
Browse files Browse the repository at this point in the history
[Bug 971704] - Clean up Wallpaper File Structure in Gaia
  • Loading branch information
rvandermeulen committed Apr 3, 2014
2 parents ed5af8d + 1f4fecb commit 53d9e06
Show file tree
Hide file tree
Showing 137 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/wallpaper/build/build.js
Expand Up @@ -8,7 +8,7 @@ var WallPaperAppBuilder = function(options) {

WallPaperAppBuilder.prototype.APP_DIR = 'apps/wallpaper';
WallPaperAppBuilder.prototype.BUILD_DIR = 'build_stage/wallpaper';
WallPaperAppBuilder.prototype.WALLPAPER_PATH = 'resources/320x480';
WallPaperAppBuilder.prototype.WALLPAPER_PATH = 'resources/';

// set options
WallPaperAppBuilder.prototype.setOptions = function(options) {
Expand Down
4 changes: 2 additions & 2 deletions apps/wallpaper/js/pick.js
@@ -1,5 +1,5 @@
var Wallpaper = {
wallpapersUrl: '/resources/320x480/list.json',
wallpapersUrl: '/resources/list.json',

init: function wallpaper_init() {
var self = this;
Expand Down Expand Up @@ -29,7 +29,7 @@ var Wallpaper = {
xhr.response.forEach(function(wallpaper) {
var div = document.createElement('div');
div.classList.add('wallpaper');
div.style.backgroundImage = 'url(resources/320x480/' + wallpaper + ')';
div.style.backgroundImage = 'url(resources/' + wallpaper + ')';
self.wallpapers.appendChild(div);
});
if (cb) {
Expand Down
Binary file removed apps/wallpaper/resources/320x480/leaves.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/leaves@1.5x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/leaves@2x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/morningdew.png
Binary file not shown.
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/morningdew@2x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/sunset@2x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/water.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/water@1.5x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/320x480/water@2x.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/480x800/leaves.png
Binary file not shown.
Binary file removed apps/wallpaper/resources/480x800/water.png
Binary file not shown.
4 changes: 2 additions & 2 deletions apps/wallpaper/test/unit/pick_test.js
Expand Up @@ -21,9 +21,9 @@ suite('wallpaper/pick', function() {
done(function() {
var wallpapers = document.getElementById('wallpapers');
assert.equal(2, wallpapers.children.length);
assert.equal('url("resources/320x480/test_1.png")',
assert.equal('url("resources/test_1.png")',
wallpapers.children[0].style.backgroundImage);
assert.equal('url("resources/320x480/test_2.png")',
assert.equal('url("resources/test_2.png")',
wallpapers.children[1].style.backgroundImage);
});
});
Expand Down
4 changes: 2 additions & 2 deletions build/test/integration/distribution.test.js
Expand Up @@ -105,11 +105,11 @@ suite('Distribution mechanism', function() {
function validateWallpaper() {
var zipPath = path.join(process.cwd(), 'profile',
'webapps', 'wallpaper.gaiamobile.org', 'application.zip');
helper.checkFileContentByPathInZip(zipPath, 'resources/320x480/list.json',
helper.checkFileContentByPathInZip(zipPath, 'resources/list.json',
path.join(cusDir, 'wallpapers', 'list.json'), true);

helper.checkFileContentByPathInZip(zipPath,
'resources/320x480/customize.png',
'resources/customize.png',
path.join(cusDir, 'wallpapers', 'customize.png'), false);
}

Expand Down

0 comments on commit 53d9e06

Please sign in to comment.