diff options
author | Guang Zhu <guangzhu@google.com> | 2010-05-04 15:46:17 -0700 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2010-05-05 10:48:23 -0700 |
commit | 0622f9689d1c3786a11c60cf0014cd517c51c21c (patch) | |
tree | e62aaf24c01cfab6d5f7281100a749e0f0ecb03d /tests/assets | |
parent | 66640a5365b4f20d96f5eda6d54fbcb2fac4e30c (diff) | |
download | packages_apps_Browser-0622f9689d1c3786a11c60cf0014cd517c51c21c.zip packages_apps_Browser-0622f9689d1c3786a11c60cf0014cd517c51c21c.tar.gz packages_apps_Browser-0622f9689d1c3786a11c60cf0014cd517c51c21c.tar.bz2 |
improvement and fixes for bindings test
* the name "testComplete" will cause test runner to actually execute it as a
test case, which is not the intention here, changed to "notifyComplete"
* the test depends on "/sdcard/bindings_test.html". since the same file is
already being carried in the apk as asset, added a setup/teardown step to
extract the file. this removes manual setup step for the tests.
Change-Id: I45e1e9755ec829086fae6a36885153874f3a94a2
Diffstat (limited to 'tests/assets')
-rwxr-xr-x | tests/assets/bindings_test.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/assets/bindings_test.html b/tests/assets/bindings_test.html index c20ccec..71f3438 100755 --- a/tests/assets/bindings_test.html +++ b/tests/assets/bindings_test.html @@ -175,7 +175,7 @@ function appendLog(msg) { function runTests() { // Assume that if the test isn't done after 10s that we failed. - window.setTimeout(function() { JNIBindingsTest.testComplete(); }, 10000); + window.setTimeout(function() { JNIBindingsTest.notifyComplete(); }, 10000); if (testPrimitiveTypes()) { appendLog("testPrimitiveTypes passed!"); @@ -231,7 +231,7 @@ function runTests() { appendLog("testParameterTypeMismatch failed!"); } - JNIBindingsTest.testComplete(); + JNIBindingsTest.notifyComplete(); } </script> |