Projekt

Obecné

Profil

Stáhnout (1.39 KB) Statistiky
| Větev: | Revize:
1
var test = require('tape');
2

    
3
require('./legacy-compat');
4
var common = require('./common');
5

    
6
// we do this to easily wrap each file in a mocha test
7
// and also have browserify be able to statically analyze this file
8
var orig_require = require;
9
var require = function(file) {
10
    test(file, function(t) {
11
        // Store the tape object so tests can access it.
12
        t.on('end', function () { delete common.test; });
13
        common.test = t;
14

    
15
        try { orig_require(file); } catch (err) { t.fail(err); }
16
        t.end();
17
    });
18
};
19

    
20
require('./add-listeners.js');
21
require('./check-listener-leaks.js');
22
require('./errors.js');
23
require('./events-list.js');
24
require('./listener-count.js');
25
require('./listeners-side-effects.js');
26
require('./listeners.js');
27
require('./max-listeners.js');
28
if ((function A () {}).name === 'A') {
29
  require('./method-names.js');
30
} else {
31
  // Function.name is not supported in IE
32
  test('./method-names.js', { skip: true }, function () {});
33
}
34
require('./modify-in-emit.js');
35
require('./num-args.js');
36
require('./once.js');
37
require('./prepend.js');
38
require('./set-max-listeners-side-effects.js');
39
require('./special-event-names.js');
40
require('./subclass.js');
41
if (typeof Symbol === 'function') {
42
  require('./symbols.js');
43
} else {
44
  // Symbol is not available.
45
  test('./symbols.js', { skip: true }, function () {});
46
}
47
require('./remove-all-listeners.js');
48
require('./remove-listeners.js');
(5-5/21)