Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-04-26 09:52:46 +0300
committerGitHub <noreply@github.com>2017-04-26 09:52:46 +0300
commit317700513cc732bb2371edbe645555feadbbc545 (patch)
treeefc28c578903563cd72d8436dbefcec32ab161c7 /tests/lib/mocha-3.1.0/test/browser/large.spec.js
parentbc8222d451337185db343486319af6782b009148 (diff)
parent199e43ef5809d09803416db72ce0ace6c9a4d895 (diff)
Merge pull request #11651 from piwik/3.x-dev3.0.4-b1
Release Piwik 3.0.4-b1
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/browser/large.spec.js')
-rw-r--r--tests/lib/mocha-3.1.0/test/browser/large.spec.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/tests/lib/mocha-3.1.0/test/browser/large.spec.js b/tests/lib/mocha-3.1.0/test/browser/large.spec.js
deleted file mode 100644
index 56757eae27..0000000000
--- a/tests/lib/mocha-3.1.0/test/browser/large.spec.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var n = 30;
-while (n--) {
- describe('Array ' + n, function(){
- var arr;
-
- beforeEach(function(){
- arr = [1,2,3];
- })
-
- describe('#indexOf()', function(){
- it('should return -1 when the value is not present', function(){
- assert(-1 == arr.indexOf(5));
- })
-
- it('should return the correct index when the value is present', function(done){
- assert(0 == arr.indexOf(1));
- assert(1 == arr.indexOf(2));
- done();
- })
- })
- })
-}
-
-describe('something', function(){
- it('should provide a useful error', function(done){
- setTimeout(function(){
- throw new Error('boom');
- done();
- }, 1);
- })
-
- it('should provide an even better error on phantomjs', function(done){
- setTimeout(function(){
- var AssertionError = function(message, actual, expected) {
- this.message = message;
- this.actual = actual;
- this.expected = expected;
- this.showDiff = true;
- };
- AssertionError.prototype = Object.create(Error.prototype);
- AssertionError.prototype.name = 'AssertionError';
- AssertionError.prototype.constructor = AssertionError;
-
- mocha.throwError(new AssertionError('kabooom', 'text with a typo', 'text without a typo'));
- done();
- }, 1);
- })
-})