Update the JNI bindings unit test in light of b/2540502
Change-Id: I166331ce198fba188df5365695a20588870374c4
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 @@
return true;
}
+function testParameterTypeMismatch() {
+ return JNIBindingsTest.testParameterTypeMismatch("dog");
+}
+
function appendLog(msg) {
var log = document.getElementById("status");
log.innerHTML += "<br/>" + msg;
@@ -221,6 +225,12 @@
appendLog("getIfaceProperties failed!");
}
+ if (testParameterTypeMismatch()) {
+ appendLog("testParameterTypeMismatch passed!");
+ } else {
+ appendLog("testParameterTypeMismatch failed!");
+ }
+
JNIBindingsTest.testComplete();
}
</script>