(event.detail.request).to.be.ok;
            expect(event.detail.error).to.be.ok;
            eventFired = true;
          });
          var request = ajax.generateRequest();
          var promise = request.completes.then(function() {
            throw new Error('Expected the request to fail!');
          }, function(error) {
            expect(request.succeeded).to.be.eq(false);
            expect(error).to.not.be.eq(null);
            return timePasses(100);
          }).then(function() {
            expe