It simulates an async request. Albeit, a fast one.


On Saturday, August 10, 2013 at 3:51 PM, Anton Astashov wrote:

> In test/request_mock.dart:
> > @@ -0,0 +1,29 @@ > +library restful.tests.request_mock; > + > +import 'dart:async'; > +import 'dart:html'; > +import 'package:unittest/mock.dart'; > + > +class HttpRequestMock extends Mock implements HttpRequest { > + > + var responseText = ''; > + > + int status = 200; > + > + int delay = 25;  
> Why do you need that delay?
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/Mixbook/restful.dart/pull/1/files#r5698846).
>  
>  
>