summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 09:49:19 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-10-17 09:49:19 -0700
commit89ad342620ab99728f64de4a32e4edf6ade55aa0 (patch)
tree8c8888b525b6f6168a3ebdfa269e24341c276589 /modules/locale
parent36dfb0797bffc5df535a58ca77eef9eb65e4ced8 (diff)
downloadbrdo-89ad342620ab99728f64de4a32e4edf6ade55aa0.tar.gz
brdo-89ad342620ab99728f64de4a32e4edf6ade55aa0.tar.bz2
Oops. Forgot a file.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/tests/locale_test.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/locale/tests/locale_test.js b/modules/locale/tests/locale_test.js
new file mode 100644
index 000000000..251d115c3
--- /dev/null
+++ b/modules/locale/tests/locale_test.js
@@ -0,0 +1,35 @@
+
+Drupal.t("Standard Call t");
+Drupal
+.
+t
+(
+"Whitespace Call t"
+)
+;
+
+Drupal.t('Single Quote t');
+Drupal.t('Single Quote \'Escaped\' t');
+Drupal.t('Single Quote ' + 'Concat ' + 'strings ' + 't');
+
+Drupal.t("Double Quote t");
+Drupal.t("Double Quote \"Escaped\" t");
+Drupal.t("Double Quote " + "Concat " + "strings " + "t");
+
+
+Drupal.formatPlural(1, "Standard Call plural", "Standard Call @count plural");
+Drupal
+.
+formatPlural
+(
+1,
+"Whitespace Call plural",
+"Whitespace Call @count plural",
+)
+;
+
+Drupal.formatPlural(1, 'Single Quote plural', 'Single Quote @count plural');
+Drupal.formatPlural(1, 'Single Quote \'Escaped\' plural', 'Single Quote \'Escaped\' @count plural');
+
+Drupal.formatPlural(1, "Double Quote plural", "Double Quote @count plural");
+Drupal.formatPlural(1, "Double Quote \"Escaped\" plural", "Double Quote \"Escaped\" @count plural");