From: Wolfram Schneider Date: Tue, 20 Aug 2013 15:43:49 +0000 (+0200) Subject: check translations X-Git-Tag: 0.9.1~202^2~119 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=e2aaea1cb90254baac7c9f0faaa16205f84bd812 check translations --- diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js new file mode 100644 index 0000000..80a3b43 --- /dev/null +++ b/test/spec/mkws-config.js @@ -0,0 +1,43 @@ + +describe("Check mkws_config object", function() { + it("mkws_config exists", function() { + expect(mkws_config).not.toBe(undefined); + }); + + it("mkws_config service proxy config", function() { + expect(mkws_config.service_proxy_url).toBe(undefined); + }); + + it("mkws_config locale check German", function() { + expect(mkws_locale_lang.de.Authors).toMatch(/^Autoren$/); + expect(mkws_locale_lang.de.Location).toMatch(/^Ort$/); + }); + it("mkws_config locale check Danish", function() { + expect(mkws_locale_lang.da.Authors).toMatch(/^Forfattere$/); + expect(mkws_locale_lang.da.Location).toMatch(/^Lokation$/); + }); + + it("mkws_config service proxy enabled", function() { + expect(mkws_config.use_service_proxy).toBe(true); + }); +}); + +/* +describe("Check service proxy URL", function() { + var timerCallback; + + beforeEach(function() { + timerCallback = jasmine.createSpy('timerCallback'); + jasmine.Clock.useMock(); + }); + + it("causes an interval to be called synchronously", function() { + setTimeout(function() { + timerCallback(); + }, 500); + + jasmine.Clock.tick(1501); + expect(mkws_config.service_proxy_url).toMatch(/service-proxy/); + }); +}); +*/ \ No newline at end of file