Fix setup function in apisample
Fix setup function in apisample

--HG--
extra : rebase_source : d6b6afe12f888c84fcfa6f3f5e826d57e1376807

jyasskin/testharness.js,zqzhang/testharness.js,jyasskin/testharness.js,ayg/testharness.js,hallvors/testharness.js,RatneshThakur/testharness.js,hallvors/testharness.js,bboyle/testharness.js