-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from openeyes/release/v3.0
Release/v3.0
- Loading branch information
Showing
87 changed files
with
52,708 additions
and
50,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text eol=lf | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.c text | ||
*.h text | ||
*.css text | ||
*.html text | ||
*.xml text | ||
*.js text | ||
*.conf text | ||
*.sass text | ||
*.scss text | ||
*.md text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
*.sh text eol=lf | ||
*.php text eol=lf | ||
|
||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.bmp binary | ||
*.gif binary | ||
*.tiff binary | ||
*.dcm binary | ||
*.pdf binary | ||
*.otf binary | ||
*.eot binary | ||
*.ttf binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.odt binary | ||
*.zip binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 66 additions & 66 deletions
132
assets/components/blanket/src/adapters/mocha-blanket.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
(function() { | ||
|
||
if(!mocha) { | ||
throw new Exception("mocha library does not exist in global namespace!"); | ||
} | ||
|
||
|
||
/* | ||
* Mocha Events: | ||
* | ||
* - `start` execution started | ||
* - `end` execution complete | ||
* - `suite` (suite) test suite execution started | ||
* - `suite end` (suite) all tests (and sub-suites) have finished | ||
* - `test` (test) test execution started | ||
* - `test end` (test) test completed | ||
* - `hook` (hook) hook execution started | ||
* - `hook end` (hook) hook complete | ||
* - `pass` (test) test passed | ||
* - `fail` (test, err) test failed | ||
* | ||
*/ | ||
|
||
var originalReporter = mocha._reporter; | ||
|
||
var blanketReporter = function(runner) { | ||
runner.on('start', function() { | ||
blanket.setupCoverage(); | ||
}); | ||
|
||
runner.on('end', function() { | ||
blanket.onTestsDone(); | ||
}); | ||
|
||
runner.on('suite', function() { | ||
blanket.onModuleStart(); | ||
}); | ||
|
||
runner.on('test', function() { | ||
blanket.onTestStart(); | ||
}); | ||
|
||
runner.on('test end', function(test) { | ||
blanket.onTestDone(test.parent.tests.length, test.state === 'passed'); | ||
}); | ||
|
||
//I dont know why these became global leaks | ||
runner.globals(['stats', 'failures', 'runner']); | ||
|
||
originalReporter(runner); | ||
}; | ||
|
||
mocha.reporter(blanketReporter); | ||
var oldRun = mocha.run; | ||
var oldCallback = null; | ||
mocha.run = function (finishCallback) { | ||
oldCallback = finishCallback; | ||
console.log("waiting for blanket..."); | ||
}; | ||
blanket.beforeStartTestRunner({ | ||
callback: function(){ | ||
oldRun(oldCallback); | ||
mocha.run = oldRun; | ||
} | ||
}); | ||
})(); | ||
(function() { | ||
|
||
if(!mocha) { | ||
throw new Exception("mocha library does not exist in global namespace!"); | ||
} | ||
|
||
|
||
/* | ||
* Mocha Events: | ||
* | ||
* - `start` execution started | ||
* - `end` execution complete | ||
* - `suite` (suite) test suite execution started | ||
* - `suite end` (suite) all tests (and sub-suites) have finished | ||
* - `test` (test) test execution started | ||
* - `test end` (test) test completed | ||
* - `hook` (hook) hook execution started | ||
* - `hook end` (hook) hook complete | ||
* - `pass` (test) test passed | ||
* - `fail` (test, err) test failed | ||
* | ||
*/ | ||
|
||
var originalReporter = mocha._reporter; | ||
|
||
var blanketReporter = function(runner) { | ||
runner.on('start', function() { | ||
blanket.setupCoverage(); | ||
}); | ||
|
||
runner.on('end', function() { | ||
blanket.onTestsDone(); | ||
}); | ||
|
||
runner.on('suite', function() { | ||
blanket.onModuleStart(); | ||
}); | ||
|
||
runner.on('test', function() { | ||
blanket.onTestStart(); | ||
}); | ||
|
||
runner.on('test end', function(test) { | ||
blanket.onTestDone(test.parent.tests.length, test.state === 'passed'); | ||
}); | ||
|
||
//I dont know why these became global leaks | ||
runner.globals(['stats', 'failures', 'runner']); | ||
|
||
originalReporter(runner); | ||
}; | ||
|
||
mocha.reporter(blanketReporter); | ||
var oldRun = mocha.run; | ||
var oldCallback = null; | ||
mocha.run = function (finishCallback) { | ||
oldCallback = finishCallback; | ||
console.log("waiting for blanket..."); | ||
}; | ||
blanket.beforeStartTestRunner({ | ||
callback: function(){ | ||
oldRun(oldCallback); | ||
mocha.run = oldRun; | ||
} | ||
}); | ||
})(); |
Oops, something went wrong.