diff options
Diffstat (limited to 'i18n/e2e')
| -rw-r--r-- | i18n/e2e/i18n-e2e.js | 79 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_cs.html | 16 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_de.html | 16 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_en.html | 18 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_es.html | 16 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_sk.html | 16 | ||||
| -rw-r--r-- | i18n/e2e/localeTest_zh.html | 16 | ||||
| -rw-r--r-- | i18n/e2e/runner.html | 11 |
8 files changed, 188 insertions, 0 deletions
diff --git a/i18n/e2e/i18n-e2e.js b/i18n/e2e/i18n-e2e.js new file mode 100644 index 00000000..d47030b4 --- /dev/null +++ b/i18n/e2e/i18n-e2e.js @@ -0,0 +1,79 @@ +describe("localized filters", function() { + describe("es locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_es.html"); + }); + + it('should check filters for es locale', function() { + expect(binding('input | date:"medium"')).toBe('03/06/1977 18:07:23'); + expect(binding('input | date:"longDate"')).toBe("3 de junio de 1977"); + expect(binding('input | number')).toBe('234.234.443.432'); + expect(binding('input | currency')).toBe('€ 234.234.443.432,00'); + }); + }); + + describe("cs locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_cs.html"); + }); + + it('should check filters for cs locale', function() { + expect(binding('input | date:"medium"')).toBe('3.6.1977 18:07:23'); + expect(binding('input | date:"longDate"')).toBe("3. června 1977"); + expect(binding('input | number')).toBe('234 234 443 432'); + expect(binding('input | currency')).toBe('234 234 443 432,00 K\u010d'); + }); + }); + + describe("de locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_de.html"); + }); + + it('should check filters for de locale', function() { + expect(binding('input | date:"medium"')).toBe('03.06.1977 18:07:23'); + expect(binding('input | date:"longDate"')).toBe("3. Juni 1977"); + expect(binding('input | number')).toBe('234.234.443.432'); + expect(binding('input | currency')).toBe('234.234.443.432,00 €'); + }); + }); + + describe("en locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_en.html"); + }); + + it('should check filters for en locale', function() { + expect(binding('input | date:"medium"')).toBe('Jun 3, 1977 6:07:23 PM'); + expect(binding('input | date:"longDate"')).toBe("June 3, 1977"); + expect(binding('input | number')).toBe('234,234,443,432'); + expect(binding('input | currency')).toBe('$234,234,443,432.00'); + }); + }); + + describe("sk locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_sk.html"); + }); + + it('should check filters for sk locale', function() { + expect(binding('input | date:"medium"')).toBe('3.6.1977 18:07:23'); + expect(binding('input | date:"longDate"')).toBe("3. júna 1977"); + expect(binding('input | number')).toBe('234 234 443 432'); + expect(binding('input | currency')).toBe('234 234 443 432,00 Sk'); + }); + }); + + describe("zh locale", function() { + beforeEach(function() { + browser().navigateTo("localeTest_zh.html"); + }); + + it('should check filters for zh locale', function() { + expect(binding('input | date:"medium"')).toBe('1977-6-3 下午6:07:23'); + expect(binding('input | date:"longDate"')).toBe("1977年6月3日"); + expect(binding('input | number')).toBe('234,234,443,432'); + expect(binding('input | currency')).toBe('¥234,234,443,432.00'); + }); + }); +}); diff --git a/i18n/e2e/localeTest_cs.html b/i18n/e2e/localeTest_cs.html new file mode 100644 index 00000000..d224642d --- /dev/null +++ b/i18n/e2e/localeTest_cs.html @@ -0,0 +1,16 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <script src="../../build/i18n/angular-locale_cs.js"></script> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/localeTest_de.html b/i18n/e2e/localeTest_de.html new file mode 100644 index 00000000..29e7e807 --- /dev/null +++ b/i18n/e2e/localeTest_de.html @@ -0,0 +1,16 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <script src="../../build/i18n/angular-locale_de.js"></script> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/localeTest_en.html b/i18n/e2e/localeTest_en.html new file mode 100644 index 00000000..1fe867fc --- /dev/null +++ b/i18n/e2e/localeTest_en.html @@ -0,0 +1,18 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <!-- not needed, already bundled in angular.js + <script src="../../build/i18n/angular-locale_en.js"></script> + --> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/localeTest_es.html b/i18n/e2e/localeTest_es.html new file mode 100644 index 00000000..c4f7a997 --- /dev/null +++ b/i18n/e2e/localeTest_es.html @@ -0,0 +1,16 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <script src="../../build/i18n/angular-locale_es.js"></script> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/localeTest_sk.html b/i18n/e2e/localeTest_sk.html new file mode 100644 index 00000000..6652124b --- /dev/null +++ b/i18n/e2e/localeTest_sk.html @@ -0,0 +1,16 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <script src="../../build/i18n/angular-locale_sk-sk.js"></script> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/localeTest_zh.html b/i18n/e2e/localeTest_zh.html new file mode 100644 index 00000000..0b2b504d --- /dev/null +++ b/i18n/e2e/localeTest_zh.html @@ -0,0 +1,16 @@ +<!document html> +<html> + <head> + <meta charset="utf-8"> + <title>locale test</title> + <script src="../../build/angular.js" ng:autobind></script> + <script src="../../build/i18n/angular-locale_zh-cn.js"></script> + </head> + <body> + <input type="text" name="input" value="234234443432"><br> + date: {{input | date:"medium"}}<br> + date: {{input | date:"longDate"}}<br> + number: {{input | number}}<br> + currency: {{input | currency }} + </body> +</html> diff --git a/i18n/e2e/runner.html b/i18n/e2e/runner.html new file mode 100644 index 00000000..56825b33 --- /dev/null +++ b/i18n/e2e/runner.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML> +<html xmlns:ng="http://angularjs.org" wiki:ng="http://angularjs.org"> +<head> + <meta charset="utf-8"> + <title><angular/> Docs Scenario Runner</title> + <script type="text/javascript" src="../../build/angular-scenario.js" ng:autotest></script> + <script type="text/javascript" src="i18n-e2e.js"></script> +</head> +<body> +</body> +</html> |
