Skip to content

Commit

Permalink
fix agressive re-run tests on any file update
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Jan 23, 2017
1 parent e1476fa commit c126790
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/runner/test/env/iframe_inject.code
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ function __initTestEnvironment(deprecateTestEnvironment){
if (typeof basis == 'undefined')
return; // no basis.js available

if (type == 'update' && (
(basis.filename_ == filename) ||
(basis.resource && basis.resource.exists(filename))
))
if (type != 'update')
return;

if ((basis.filename_ == filename) ||
(basis.resource &&
basis.resource.isResolved(filename) &&
basis.resource(filename).hasChanges())
)
deprecateTestEnvironment();
});

Expand Down

0 comments on commit c126790

Please sign in to comment.