From e4048bffd4153f7d7bd978f5779caaec8e76a069 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 10 Sep 2013 17:43:25 -0700 Subject: Do translation with webhelper Previously, the translation was such that it did a dummy translation, italicizing the text to be translated. Now it looks for a translationFunction property on the app object, and calls that on the text. [endlessm/eos-sdk#290] --- test/webhelper/smoke-tests/webview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/webhelper') diff --git a/test/webhelper/smoke-tests/webview.js b/test/webhelper/smoke-tests/webview.js index c3c7dd5..fe2a655 100644 --- a/test/webhelper/smoke-tests/webview.js +++ b/test/webhelper/smoke-tests/webview.js @@ -52,7 +52,7 @@ using the <input>\'s ID \

I want \ stars!

\ \ -

This is text that will be translated: Hello, \ +

This is text that will be italicized: Hello, \ world!

\ \ \ @@ -62,6 +62,10 @@ const TestApplication = new Lang.Class({ Name: 'TestApplication', Extends: WebHelper.Application, + _translationFunction: function(string) { + return string.italics(); + }, + /* *** ACTIONS AVAILABLE FROM THE WEB VIEW *** */ _webActions: { -- cgit v1.2.3