Skip to content

Commit

Permalink
Fix client code coverage data lost during 2.0 self-test
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed May 1, 2014
1 parent b49d8df commit 6fe5615
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ClientSuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ define([
// executes successfully
topic.subscribe('/client/end', function (sessionId) {
if (sessionId === remote.sessionId) {
remote.setHeartbeatInterval(0);
clearHandles();
dfd.resolve();
// get about:blank to always collect code coverage data from the page in case it is
// navigated away later by some other process; this happens during self-testing when
// the new Leadfoot library takes over
remote.setHeartbeatInterval(0).get('about:blank').then(lang.hitch(dfd, 'resolve'));
}
})
];
Expand Down

0 comments on commit 6fe5615

Please sign in to comment.