Bug 985954 - Remove deprecated promise.js usage in the testing framework. r=ted