Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7533)

Unified Diff: chrome/test/data/webui/i18n_behavior_test.html

Issue 2886843005: [i18n] use Polymer data binding to change locale strings (Closed)
Patch Set: i18nDynamic test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_welcome.js ('k') | ui/webui/resources/js/i18n_behavior.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/i18n_behavior_test.html
diff --git a/chrome/test/data/webui/i18n_behavior_test.html b/chrome/test/data/webui/i18n_behavior_test.html
index 0bd41fd844a132997550f218ad2cce148c25ec27..bcbad9a1f985315348e475d4578e8d520c4902e0 100644
--- a/chrome/test/data/webui/i18n_behavior_test.html
+++ b/chrome/test/data/webui/i18n_behavior_test.html
@@ -35,11 +35,17 @@ function testI18nAdvanced() {
I18nBehavior.i18nAdvanced('customTag', {tags: ['X-FOO']});
}
+function testI18nDynamic() {
+ var locale = 'en';
+ assertEquals("I'm just text, nobody should have a problem with me!",
xiyuan 2017/05/31 15:38:41 nit: " -> ' ?
dschuyler 2017/05/31 18:23:16 I could go either way on this, but there does seem
xiyuan 2017/05/31 18:31:50 Both JS style guides (google or chromium) prefer '
+ I18nBehavior.i18nDynamic(locale, 'text'));
+}
Dan Beam 2017/05/24 02:08:45 hmmmm, seems like we could make a more comprehensi
dschuyler 2017/05/31 18:23:16 I plan to follow up on this later (tests and the f
+
function testI18nExists() {
assertTrue(I18nBehavior.i18nExists('text'));
assertFalse(I18nBehavior.i18nExists('missingText'));
}
-
+
</script>
</body>
</html>
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_welcome.js ('k') | ui/webui/resources/js/i18n_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698