diff options
author | Ben Murdoch <benm@google.com> | 2010-09-06 17:48:38 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-09-06 17:52:21 +0100 |
commit | 834498100f130b7a7ec8cca16cbc963eb9cfa105 (patch) | |
tree | 2fd3e0cae40a1d06dff030164510aab968fbcd24 /tests/src/com | |
parent | 9ff6bfc39003783e148c04188a3af7e031e4a75a (diff) | |
download | packages_apps_browser-834498100f130b7a7ec8cca16cbc963eb9cfa105.zip packages_apps_browser-834498100f130b7a7ec8cca16cbc963eb9cfa105.tar.gz packages_apps_browser-834498100f130b7a7ec8cca16cbc963eb9cfa105.tar.bz2 |
Fix JNI Bindings Browser Test.
The JNI bindings test was broken after BrowserFrame.documentAsText
started to take a parameter to determine if it should capture
the main or child frames. Update the call here to pass the correct
parameter.
Change-Id: I5142214164db371d9106d799bfa4e5bd7293dad3
Diffstat (limited to 'tests/src/com')
-rw-r--r-- | tests/src/com/android/browser/JNIBindingsTestApp.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/src/com/android/browser/JNIBindingsTestApp.java b/tests/src/com/android/browser/JNIBindingsTestApp.java index 4f083f6..4c8802a 100644 --- a/tests/src/com/android/browser/JNIBindingsTestApp.java +++ b/tests/src/com/android/browser/JNIBindingsTestApp.java @@ -37,6 +37,9 @@ import java.io.OutputStream; /** * Adds a JavaScript interface to the webview and calls functions on it to verify variables * are passed from JS to Java correctly. + * To run this test, execute: + * adb shell am instrument -w -e class com.android.browser.JNIBindingsTestApp#testJNIBindings \ + * com.android.browser.tests/android.test.InstrumentationTestRunner */ public class JNIBindingsTestApp extends ActivityInstrumentationTestCase2<BrowserActivity> { @@ -89,7 +92,7 @@ public class JNIBindingsTestApp extends ActivityInstrumentationTestCase2<Browser } } }; - mWebView.documentAsText(mHandler.obtainMessage(MSG_WEBKIT_DATA_READY)); + mWebView.documentAsText(mHandler.obtainMessage(MSG_WEBKIT_DATA_READY, 1, 0)); Looper.loop(); } } |