Mercurial > bugzilla-dashboard
diff js/tests/test-bugzilla.js @ 99:544d339d2b4c
Added the beginnings of a black-box app that can be used to generate/run functional tests.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Tue, 27 Apr 2010 09:59:15 -0700 |
parents | 51c1829956d9 |
children | 00b02ba5236c |
line wrap: on
line diff
--- a/js/tests/test-bugzilla.js Mon Apr 26 22:16:32 2010 -0700 +++ b/js/tests/test-bugzilla.js Tue Apr 27 09:59:15 2010 -0700 @@ -12,7 +12,7 @@ expect(expected.length); - var xhr = require("mocks").xhr( + var xhr = require("mocks/xhr").create( function xhrDelegate(methodName, args) { var jsonableArgs = []; args.forEach( @@ -20,7 +20,6 @@ if (typeof(arg) != "function") jsonableArgs.push(arg); }); - ; same([methodName, jsonableArgs], expected.splice(0, 1)[0]); });