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

Commit

Permalink
Revert "Bug 841422 - Move unit tests for shared code out of gallery r…
Browse files Browse the repository at this point in the history
…=lightsofapollo"

This reverts commit 09411b0.
  • Loading branch information
KevinGrandon committed May 6, 2014
1 parent b503736 commit d902ffe
Show file tree
Hide file tree
Showing 47 changed files with 65 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .jshintignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apps/keyboard/js/imes/jspinyin/libpinyin.js
apps/keyboard/js/imes/jszhuyin/lib/**
shared/js/setImmediate.js
shared/test/unit/test-agent-server.js
apps/sharedtest/test/unit/setImmediate_test.js
apps/gallery/test/unit/setImmediate_test.js
apps/wappush/js/ext/**
apps/keyboard/js/imes/jsavrophonetic/jsavrophonetic.js
apps/camera/js/vendor/alameda.js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Tests for the shared formatters
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/
require('/shared/js/format.js');

suite('format', function() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
'use strict';

/**
* Tests for the shared l10n date code
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/
require('/shared/js/l10n.js');
require('/shared/js/l10n_date.js');
//mocha.setup({globals: ['jsCount', 'totalResult']});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Tests for the shared l10n date code
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/

suite('L10n', function() {
var _;
var _translate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (typeof navigator !== 'undefined') {
}

if (typeof navigator !== 'undefined') {
var path = 'http://sharedtest.gaiamobile.org:8080/test/unit/l10n/lib/context';
var path = 'http://gallery.gaiamobile.org:8080/test/unit/l10n/lib/context';
} else {
var path = __dirname;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var assert = require('assert') || window.assert;
if (typeof navigator !== 'undefined') {
var L10n = navigator.mozL10n._getInternalAPI();
var Context = L10n.Context;
var path = 'http://sharedtest.gaiamobile.org:8080/test/unit/l10n/lib/context';
var path = 'http://gallery.gaiamobile.org:8080/test/unit/l10n/lib/context';
} else {
var Context = process.env.L20N_COV ?
require('../../../build/cov/lib/l20n/context').Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var assert = require('assert') || window.assert;
if (typeof navigator !== 'undefined') {
var L10n = navigator.mozL10n._getInternalAPI();
var Context = L10n.Context;
var path = 'http://sharedtest.gaiamobile.org:8080/test/unit/l10n/lib/context';
var path = 'http://gallery.gaiamobile.org:8080/test/unit/l10n/lib/context';
} else {
var Context = process.env.L20N_COV ?
require('../../../build/cov/lib/l20n/context').Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var assert = require('assert') || window.assert;
if (typeof navigator !== 'undefined') {
var L10n = navigator.mozL10n._getInternalAPI();
var Context = L10n.Context;
var path = 'http://sharedtest.gaiamobile.org:8080/test/unit/l10n/context';
var path = 'http://gallery.gaiamobile.org:8080/test/unit/l10n/context';
} else {
var Context = process.env.L20N_COV ?
require('../../../build/cov/lib/l20n/context').Context
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Tests for the shared lazy loader code
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/
require('/shared/js/lazy_loader.js');
require('/shared/js/html_imports.js');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
'use strict';
// We might need to modify the build script to run the shared lib
// right under the shared folder in the future(bug 841422).
require('/shared/js/mime_mapper.js');

suite('Shared library mime_mapper api tests', function() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Tests for the shared scroll detector helper
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/

'use strict';

require('/shared/js/scroll_detector.js');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Tests for the shared settings url code
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/
require('/shared/js/settings_url.js');

suite('SettingsURL', function() {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Tests for the shared scroll detector helper
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/

'use strict';

/* global loadBodyHTML, StickyHeader */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Tests for the shared url helpercode
* TODO: Shared code unit tests should not be in gallery
* Bug #841422 has been filed to move these tests
*/
require('/shared/js/url_helper.js');

suite('URL Helper', function() {
Expand Down
9 changes: 0 additions & 9 deletions apps/sharedtest/index.html

This file was deleted.

24 changes: 0 additions & 24 deletions apps/sharedtest/manifest.webapp

This file was deleted.

Binary file removed apps/sharedtest/style/icons/Blank.png
Binary file not shown.
17 changes: 0 additions & 17 deletions apps/sharedtest/test/unit/.jshintrc

This file was deleted.

30 changes: 15 additions & 15 deletions build/jshint/xfail.list
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,24 @@ apps/gallery/test/marionette/delete_image_test.js
apps/gallery/test/marionette/edit_image_test.js
apps/gallery/test/marionette/fullscreen_image_test.js
apps/gallery/test/marionette/lib/gallery.js
apps/gallery/test/unit/DeviceStorage_test.js
apps/gallery/test/unit/GestureDetector_test.js
apps/gallery/test/unit/asyncStorage_test.js
apps/gallery/test/unit/format_test.js
apps/gallery/test/unit/input_parser_test.js
apps/gallery/test/unit/l10n/l10n_test.js
apps/gallery/test/unit/lazy_loader_test.js
apps/gallery/test/unit/mediadb_test.js
apps/gallery/test/unit/mime_mapper_test.js
apps/gallery/test/unit/mock_thumbnail_group.js
apps/gallery/test/unit/setImmediate_worker.js
apps/gallery/test/unit/settings_url_test.js
apps/gallery/test/unit/setup.js
apps/gallery/test/unit/support/long_load.js
apps/gallery/test/unit/tag_visibility_monitor_test.js
apps/gallery/test/unit/thumbnail_item_test.js
apps/gallery/test/unit/thumbnail_list_test.js
apps/gallery/test/unit/url_helper_test.js
apps/homescreen/everything.me/config/config.js
apps/homescreen/everything.me/js/Brain.js
apps/homescreen/everything.me/js/Core.js
Expand Down Expand Up @@ -374,21 +389,6 @@ apps/settings/test/unit/sim_settings_helper_test.js
apps/settings/test/unit/simcard_lock_test.js
apps/settings/test/unit/toaster_test.js
apps/settings/test/unit/wifi_helper_test.js
apps/sharedtest/test/unit/DeviceStorage_test.js
apps/sharedtest/test/unit/GestureDetector_test.js
apps/sharedtest/test/unit/asyncStorage_test.js
apps/sharedtest/test/unit/format_test.js
apps/sharedtest/test/unit/input_parser_test.js
apps/sharedtest/test/unit/l10n/l10n_test.js
apps/sharedtest/test/unit/lazy_loader_test.js
apps/sharedtest/test/unit/mediadb_test.js
apps/sharedtest/test/unit/mime_mapper_test.js
apps/sharedtest/test/unit/setImmediate_worker.js
apps/sharedtest/test/unit/settings_url_test.js
apps/sharedtest/test/unit/setup.js
apps/sharedtest/test/unit/support/long_load.js
apps/sharedtest/test/unit/tag_visibility_monitor_test.js
apps/sharedtest/test/unit/url_helper_test.js
apps/system/js/accessibility.js
apps/system/js/airplane_mode.js
apps/system/js/app_install_manager.js
Expand Down

0 comments on commit d902ffe

Please sign in to comment.