@@ -42,16 +42,16 @@ describe('Core base tests', function() {
4242 describe ( 'Base values' , function ( ) {
4343 it ( 'Sets webroots' , function ( ) {
4444 expect ( OC . getRootPath ( ) ) . toBeDefined ( ) ;
45- expect ( OC . appswebroots ) . toBeDefined ( ) ;
45+ expect ( window . _oc_appswebroots ) . toBeDefined ( ) ;
4646 } ) ;
4747 } ) ;
4848 describe ( 'filePath' , function ( ) {
4949 beforeEach ( function ( ) {
50- OC . webroot = 'http://localhost' ;
51- OC . appswebroots . files = OC . getRootPath ( ) + '/apps3/files' ;
50+ window . _oc_webroot = 'http://localhost' ;
51+ window . _oc_appswebroots . files = OC . getRootPath ( ) + '/apps3/files' ;
5252 } ) ;
5353 afterEach ( function ( ) {
54- delete OC . appswebroots . files ;
54+ delete window . _oc_appswebroots . files ;
5555 } ) ;
5656
5757 it ( 'Uses a direct link for css and images,' , function ( ) {
@@ -70,11 +70,11 @@ describe('Core base tests', function() {
7070 var TESTAPP_ROOT = OC . getRootPath ( ) + '/appsx/testapp' ;
7171
7272 beforeEach ( function ( ) {
73- OC . appswebroots [ TESTAPP ] = TESTAPP_ROOT ;
73+ window . _oc_appswebroots [ TESTAPP ] = TESTAPP_ROOT ;
7474 } ) ;
7575 afterEach ( function ( ) {
7676 // restore original array
77- delete OC . appswebroots [ TESTAPP ] ;
77+ delete window . _oc_appswebroots [ TESTAPP ] ;
7878 } ) ;
7979 it ( 'Generates correct links for core apps' , function ( ) {
8080 expect ( OC . linkTo ( 'core' , 'somefile.php' ) ) . toEqual ( OC . getRootPath ( ) + '/core/somefile.php' ) ;
0 commit comments