diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-17 19:47:37 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-29 10:09:12 +0100 |
commit | ec1a73fab9aa6b71b502ee45f4d0dd4f20661930 (patch) | |
tree | f60269f9999cc94b66043b8ac87ac92f9014b4ed /core/js/tests/specHelper.js | |
parent | f67123c5a498e45a08900987b10779c7c60af601 (diff) | |
download | nextcloud-server-ec1a73fab9aa6b71b502ee45f4d0dd4f20661930.tar.gz nextcloud-server-ec1a73fab9aa6b71b502ee45f4d0dd4f20661930.zip |
Added OC.L10N namespace with translation functions
Added addTranslations and fixed de.js file
Fixed de.js to use OC.L10N.register() and use to correct expected
format.
Added JS unit tests for OC.L10N class
Include translations JS script for all apps
Diffstat (limited to 'core/js/tests/specHelper.js')
-rw-r--r-- | core/js/tests/specHelper.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index b62a0efe40d..4111b6763d9 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -113,15 +113,6 @@ window.isPhantom = /phantom/i.test(navigator.userAgent); // must use fake responses for expected calls fakeServer = sinon.fakeServer.create(); - // return fake translations as they might be requested for many test runs - fakeServer.respondWith(/\/index.php\/core\/ajax\/translations.php$/, [ - 200, { - "Content-Type": "application/json" - }, - '{"data": [], "plural_form": "nplurals=2; plural=(n != 1);"}' - ] - ); - // make it globally available, so that other tests can define // custom responses window.fakeServer = fakeServer; |