|
|
|
|
@ -13,10 +13,15 @@ describe('OC.L10N tests', function() { |
|
|
|
|
|
|
|
|
|
beforeEach(function() { |
|
|
|
|
window._oc_appswebroots[TEST_APP] = OC.getRootPath() + '/apps3/jsunittestapp'; |
|
|
|
|
|
|
|
|
|
window.OC = window.OC ?? {} |
|
|
|
|
window.OC.appswebroots = window.OC.appswebroots || {} |
|
|
|
|
window.OC.appswebroots[TEST_APP] = OC.getRootPath() + '/apps3/jsunittestapp' |
|
|
|
|
}); |
|
|
|
|
afterEach(function() { |
|
|
|
|
OC.L10N._unregister(TEST_APP); |
|
|
|
|
delete window._oc_appswebroots[TEST_APP]; |
|
|
|
|
delete window.OC.appswebroots[TEST_APP]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
describe('text translation', function() { |
|
|
|
|
@ -121,6 +126,7 @@ describe('OC.L10N tests', function() { |
|
|
|
|
expect(callbackStub.notCalled).toEqual(true); |
|
|
|
|
var req = fakeServer.requests[0]; |
|
|
|
|
|
|
|
|
|
console.warn('fff-', window.OC.appswebroots) |
|
|
|
|
loading |
|
|
|
|
.then(promiseStub) |
|
|
|
|
.then(function() { |
|
|
|
|
|