Modify the basic_object test to use the onload even handler.  This is required because the old polling method causes the tests to start running before the .nexe is loaded.
Modify the basic_object test to use the onload even handler.  This is required
because the old polling method causes the tests to start running before the
.nexe is loaded.

There need to be some onfail tests as well, see also
  http://code.google.com/p/nativeclient/issues/detail?id=1147

BUG = http://code.google.com/p/nativeclient/issues/detail?id=1146
TEST = run tests/basic_object.html in a browser.

Review URL: http://codereview.chromium.org/4735002

git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@3649 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2

sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client