summaryrefslogtreecommitdiffstats
path: root/tests/assets
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-04-01 15:07:41 +0100
committerBen Murdoch <benm@google.com>2010-04-01 15:07:41 +0100
commit940e57fdd2fc09398c84fd3b8f3e993bc6fee4a0 (patch)
treefd4d7be7496d32e24ec6f6fa6ee004db63a99cf7 /tests/assets
parent1e915b09465b17738129e62a30a65a2d30860906 (diff)
downloadpackages_apps_browser-940e57fdd2fc09398c84fd3b8f3e993bc6fee4a0.zip
packages_apps_browser-940e57fdd2fc09398c84fd3b8f3e993bc6fee4a0.tar.gz
packages_apps_browser-940e57fdd2fc09398c84fd3b8f3e993bc6fee4a0.tar.bz2
Update the JNI bindings unit test in light of b/2540502
Change-Id: I166331ce198fba188df5365695a20588870374c4
Diffstat (limited to 'tests/assets')
-rwxr-xr-xtests/assets/bindings_test.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/assets/bindings_test.html b/tests/assets/bindings_test.html
index 93dbff1..c20ccec 100755
--- a/tests/assets/bindings_test.html
+++ b/tests/assets/bindings_test.html
@@ -163,6 +163,10 @@ function getIfaceProperties() {
return true;
}
+function testParameterTypeMismatch() {
+ return JNIBindingsTest.testParameterTypeMismatch("dog");
+}
+
function appendLog(msg) {
var log = document.getElementById("status");
log.innerHTML += "<br/>" + msg;
@@ -221,6 +225,12 @@ function runTests() {
appendLog("getIfaceProperties failed!");
}
+ if (testParameterTypeMismatch()) {
+ appendLog("testParameterTypeMismatch passed!");
+ } else {
+ appendLog("testParameterTypeMismatch failed!");
+ }
+
JNIBindingsTest.testComplete();
}
</script>