Easily mock out winjs calls for qunit tests.