DescriptionWhen testing with goog.testing.net.XhrIo we can use the getLastXxx() methods to find the parameters that were used in the last send() call. There are methods for accessing all but one of send()'s parameters. Unfortunately access to the 'method' parameter is missing. I'd like to be able to test that my code is using the correct method (e.g. 'PUT') so I've written a patch that adds getLastMethod() to access that information.
This is my first patch (albeit small) so I'm also including an entry in the AUTHORS file as instructed by http://code.google.com/p/closure-library/wiki/Contributors.
Patch Set 1 #
Total comments: 4
Patch Set 2 : Made suggested changes. Also made same changes to other lastXxx members for consistency. #
MessagesTotal messages: 3
|