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
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 @@
/**
* 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 @@
}
}
};
- mWebView.documentAsText(mHandler.obtainMessage(MSG_WEBKIT_DATA_READY));
+ mWebView.documentAsText(mHandler.obtainMessage(MSG_WEBKIT_DATA_READY, 1, 0));
Looper.loop();
}
}