Adding code to track expression rendering time

This commit is contained in:
Jeff Avallone
2015-01-01 11:57:11 -05:00
parent 37fca15bc8
commit 491c9535a9
2 changed files with 15 additions and 1 deletions
+9
View File
@@ -484,6 +484,15 @@ describe('regexper.js', function() {
.done();
});
it('tracks the total rendering time', function(done) {
this.regexper.renderRegexp('example expression')
.then(() => {
expect(window._gaq.push).toHaveBeenCalledWith(['_trackTiming', 'visualization', 'total time', jasmine.any(Number)]);
}, fail)
.finally(done)
.done();
});
});
describe('when the rendering is cancelled', function() {