summaryrefslogtreecommitdiff
path: root/test/webhelper/smoke-tests/webview.js
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-09-06 09:25:05 -0700
committerPhilip Chimento <philip@endlessm.com>2013-09-16 10:30:42 -0700
commit6d595d347c6d454edc4749333edd413e9640a99d (patch)
tree1476d8aaafb559d7aaa0f337da7c3231e72e75a6 /test/webhelper/smoke-tests/webview.js
parent02f3b14035f0b7f97f24c6bb2f8e81ee1884bc0c (diff)
Adjust API so that "public" functions don't start with _
Also, since the functions will likely be translated into C in the future, give_them_underscored_names insteadOfCamelCase, in order to avoid API changes. [endlessm/eos-sdk#290]
Diffstat (limited to 'test/webhelper/smoke-tests/webview.js')
-rw-r--r--test/webhelper/smoke-tests/webview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/webhelper/smoke-tests/webview.js b/test/webhelper/smoke-tests/webview.js
index 681de20..c3c7dd5 100644
--- a/test/webhelper/smoke-tests/webview.js
+++ b/test/webhelper/smoke-tests/webview.js
@@ -116,12 +116,12 @@ const TestApplication = new Lang.Class({
Lang.bind(this, function (web_view, status) {
if (web_view.load_status == WebKit.LoadStatus.FINISHED) {
// now we translate to Brazilian Portuguese
- this._translateHTML (web_view, 'pt_BR');
+ this.translate_html(web_view);
}
}));
this._webview.connect('navigation-policy-decision-requested',
- Lang.bind(this, this._onNavigationRequested));
+ Lang.bind(this, this.web_actions_handler));
this._page1 = new Gtk.ScrolledWindow();
this._page1.add(this._webview);