Chromium Code Reviews| Index: chrome/test/data/webui/i18n_process_test.html |
| diff --git a/chrome/test/data/webui/i18n_process_test.html b/chrome/test/data/webui/i18n_process_test.html |
| index 8072639a83fa1f3fd79b5d9e147f55b9a4904acc..979dc2d1482c439de04cffc71e8af6a66f9d9209 100644 |
| --- a/chrome/test/data/webui/i18n_process_test.html |
| +++ b/chrome/test/data/webui/i18n_process_test.html |
| @@ -56,6 +56,19 @@ function testI18nProcess_DocumentFragment() { |
| assertTrue(div.hasAttribute('i18n-processed')); |
| } |
| +function testI18nProcess_Events() { |
| + var called = false; |
| + |
| + document.addEventListener('i18n-processed', function(e) { |
| + assertEquals(document, e.target); |
| + called = true; |
| + }); |
| + |
| + i18nTemplate.process(document, loadTimeData); |
| + |
| + assertTrue(called); |
| +} |
|
Dan Beam
2016/02/17 04:47:34
mocha-specific tests are here:
https://codereview.
|
| + |
| function testI18nProcess_Imports() { |
| var outerImportDoc = document.querySelector('link').import; |
| var innerImportDoc = outerImportDoc.querySelector('link').import; |