Chromium Code Reviews| 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> |