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

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

Issue 1700273003: MD Settings: make <paper-drawer-panel> flip in RTL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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;

Powered by Google App Engine
This is Rietveld 408576698