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

Side by Side Diff: chrome/test/data/webui/i18n_behavior_test.html

Issue 2146553005: MD Settings: Bluetooth: Add error dialog and messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_602538_bluetooth_fixes_0
Patch Set: Feedback Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script> 4 <script>
5 5
6 function setUpPage() { 6 function setUpPage() {
7 loadTimeData.data = { 7 loadTimeData.data = {
8 'allowedByDefault': '<a href="https://google.com">Google!</a>', 8 'allowedByDefault': '<a href="https://google.com">Google!</a>',
9 'customAttr': '<a is="action-link">Take action!</a>', 9 'customAttr': '<a is="action-link">Take action!</a>',
10 'customTag': "<x-foo>I'm an X, foo!</x-foo>", 10 'customTag': "<x-foo>I'm an X, foo!</x-foo>",
(...skipping 17 matching lines...) Expand all
28 I18nBehavior.i18nAdvanced('customAttr', { 28 I18nBehavior.i18nAdvanced('customAttr', {
29 attrs: { 29 attrs: {
30 is: function(el, val) { 30 is: function(el, val) {
31 return el.tagName == 'A' && val == 'action-link'; 31 return el.tagName == 'A' && val == 'action-link';
32 }, 32 },
33 }, 33 },
34 }); 34 });
35 I18nBehavior.i18nAdvanced('customTag', {tags: ['X-FOO']}); 35 I18nBehavior.i18nAdvanced('customTag', {tags: ['X-FOO']});
36 } 36 }
37 37
38 function testI18nExists() {
39 assertTrue(I18nBehavior.i18nExists('text'));
40 assertFalse(I18nBehavior.i18nExists('missingText'));
41 }
42
38 </script> 43 </script>
39 </body> 44 </body>
40 </html> 45 </html>
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | ui/webui/resources/js/i18n_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698