get/set attr
[fnpeditor.git] / tests / main.js
index cd62786..87eb6b2 100644 (file)
@@ -7,31 +7,43 @@
     });
 
     require({
     });
 
     require({
-      baseUrl: '/base/',
+      baseUrl: '/base/src/editor',
       deps: tests,
       callback: window.__karma__.start,
       deps: tests,
       callback: window.__karma__.start,
+
+        paths: {
+            'fnpjs': '../fnpjs',
+            'libs': '../../libs'
+        },
+
+        map: {
+            '*':
+                {
+                    'libs/jquery': '../../libs/jquery-1.9.1.min',
+                    'libs/underscore': '../../libs/underscore-min',
+                    'libs/bootstrap': '../../libs/bootstrap/js/bootstrap.min',
+                    'libs/backbone': '../../libs/backbone-min',
+                    'libs/sinon': '../../libs/sinon-1.7.3'
+                }
+        },
+
         shim: {
         shim: {
-            'libs/jquery-1.9.1.min': {
+            '../../libs/jquery-1.9.1.min': {
                 exports: '$',
             },
                 exports: '$',
             },
-            'libs/underscore-min': {
+            '../../libs/underscore-min': {
                 exports: '_'
             },
                 exports: '_'
             },
-            'libs/bootstrap/js/bootstrap.min': {
-                deps: ['libs/jquery-1.9.1.min']
+            '../../libs/bootstrap/js/bootstrap.min': {
+                deps: ['libs/jquery']
             },
             },
-            'libs/backbone-min': {
+            '../../libs/backbone-min': {
                 exports: 'Backbone',
                 exports: 'Backbone',
-                deps: ['libs/jquery-1.9.1.min', 'libs/underscore-min']
+                deps: ['libs/jquery', 'libs/underscore']
             },
             },
-            'libs/sinon-1.7.3': {
+            '../../libs/sinon-1.7.3': {
                 exports: 'sinon'
             }
                 exports: 'sinon'
             }
-        },
-        map: {
-            '*': {
-                'libs/sinon': 'libs/sinon-1.7.3'
-            }
         }
     });
 
         }
     });