smartxml: registering textNode/elementNode methods
[fnpeditor.git] / tests / main.js
1 (function() {
2
3     mocha.setup('bdd');
4
5     var tests = Object.keys(window.__karma__.files).filter(function (file) {
6       return (/\.test\.js$/).test(file);
7     });
8
9     require({
10       baseUrl: '/base/src/editor',
11       deps: tests,
12       callback: window.__karma__.start,
13
14         paths: {
15             'fnpjs': '../fnpjs',
16             'libs': '../../libs',
17             'smartxml': '../smartxml',
18             'wlxml': '../wlxml'
19         },
20
21         map: {
22             '*':
23                 {
24                     'libs/jquery': '../../libs/jquery-1.9.1.min',
25                     'libs/underscore': '../../libs/underscore-min',
26                     'libs/bootstrap': '../../libs/bootstrap/js/bootstrap.min',
27                     'libs/backbone': '../../libs/backbone-min',
28                     'libs/sinon': '../../libs/sinon-1.7.3'
29                 }
30         },
31
32         shim: {
33             '../../libs/jquery-1.9.1.min': {
34                 exports: '$',
35             },
36             '../../libs/underscore-min': {
37                 exports: '_'
38             },
39             '../../libs/bootstrap/js/bootstrap.min': {
40                 deps: ['libs/jquery']
41             },
42             '../../libs/backbone-min': {
43                 exports: 'Backbone',
44                 deps: ['libs/jquery', 'libs/underscore']
45             },
46             '../../libs/sinon-1.7.3': {
47                 exports: 'sinon'
48             }
49         }
50     });
51
52 })();