I think you should be loading ../testharness_stub.js here.