On 09/13/2010 02:44 PM, Endi Sukma Dewata wrote:
- "Adam Young" wrote:
IPA class:
- IPA(path, type): Construct IPA object given a path to server's JSON-RPC or
static files.
- success(): Default success handler.
- error(): Default error handler.
- failure(): Default f
- "Endi Sukma Dewata" wrote:
> var addCmd = ipa.createCommand("user-add");
The createCommand() could be implemented like this:
ipa.createCommand = function(method) {
return new IPACommand(this, method);
}
The QUnit test could be implemented like this:
test("test01", function() {
var i
- "Adam Young" wrote:
> > IPA class:
> > - IPA(path, type): Construct IPA object given a path to server's JSON-RPC or
> >static files.
> > - success(): Default success handler.
> > - error(): Default error handler.
> > - failure(): Default failure handler.
> > - execute(met
On 09/13/2010 12:51 PM, Endi Sukma Dewata wrote:
- "Adam Young" wrote:
I've started playing around with QUnit. I think it is the right too
for Unit testing in q JQuery based application.
One thing that has become clear pretty quickly is that most of our
code is dependant upon ipa_cmd
- "Adam Young" wrote:
> I've started playing around with QUnit. I think it is the right too
> for Unit testing in q JQuery based application.
>
> One thing that has become clear pretty quickly is that most of our
> code is dependant upon ipa_cmd. We are going to need to have a more
> flexi
I've started playing around with QUnit. I think it is the right too for
Unit testing in q JQuery based application.
One thing that has become clear pretty quickly is that most of our code
is dependant upon ipa_cmd. We are going to need to have a more flexible
scheme for specifying whether we