describe("Performance testing.", function () {
    var _i = 0,
        _XMLHttpRequest = window.XMLHttpRequest,
        _callsNumber = 1000,
        _recCallsLevel = 10000;

    window.Airbrake.setOutputFormat('JSON');

    beforeEach(function() {
        spyOn(window.XMLHttpRequest.prototype, 'open').andCallFake(function() {

        });

        spyOn(window.XMLHttpRequest.prototype, 'setRequestHeader').andCallFake(function() {

        });
        
        spyOn(window.XMLHttpRequest.prototype, 'send').andCallFake(function() {
            
        });
    });
    
    it(_callsNumber + " exceptions", function () {
        for (_i = 0; _i < _callsNumber; _i += 1) {
            try {
                (0)();
            } catch (e) {
                window.Airbrake.captureException(e);
            }
        }
        
        expect(window.XMLHttpRequest.prototype.open).toHaveBeenCalled();
        expect(window.XMLHttpRequest.prototype.send).toHaveBeenCalled();
        
        expect(window.XMLHttpRequest.prototype.open.calls.length).toEqual(_callsNumber);
        expect(window.XMLHttpRequest.prototype.send.calls.length).toEqual(_callsNumber);
    });
    
    it(_callsNumber + " deeply nested exception", function () {
        var _funcRec = function (level) {
            if (level === 0) {
                (0)();
            } else {
                _funcRec(level - 1);
            }
        };
        
        for (_i = 0; _i < _callsNumber; _i += 1) {
            try {
                _funcRec(_recCallsLevel);
            } catch (e) {
                window.Airbrake.captureException(e);
            }
        }
        
        expect(window.XMLHttpRequest.prototype.open).toHaveBeenCalled();
        expect(window.XMLHttpRequest.prototype.send).toHaveBeenCalled();
        
        expect(window.XMLHttpRequest.prototype.open.calls.length).toEqual(_callsNumber);
        expect(window.XMLHttpRequest.prototype.send.calls.length).toEqual(_callsNumber);
    });
});

@@ -440,25 +440,17 @@
     %7D);%0A
-        
 %0A
+
         
@@ -525,21 +525,9 @@
 ) %7B%0A
-            
 %0A
+
     
@@ -534,37 +534,33 @@
     %7D);%0A    %7D);%0A
-    
 %0A
+
     it(_callsNum
@@ -785,33 +785,25 @@
 %7D%0A        %7D%0A
-        
 %0A
+
         expe
@@ -932,33 +932,25 @@
 enCalled();%0A
-        
 %0A
+
         expe
@@ -1123,21 +1123,17 @@
     %7D);%0A
-    
 %0A
+
     it(_
@@ -1367,25 +1367,17 @@
      %7D;%0A
-        
 %0A
+
         
@@ -1582,25 +1582,17 @@
       %7D%0A
-        
 %0A
+
         
@@ -1729,24 +1729,16 @@
 lled();%0A
-        
 %0A       

Remove whitespace