File tree Expand file tree Collapse file tree 5 files changed +49
-1
lines changed Expand file tree Collapse file tree 5 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var OpenLayers = {
2525     * {String} Path to this script 
2626     */ 
2727    _getScriptLocation : ( function ( )  { 
28-         var  r  =  new  RegExp ( "(^|(.*?\\/))(OpenLayers.*?\.js)(\\?|$)" ) , 
28+         var  r  =  new  RegExp ( "(^|(.*?\\/))(OpenLayers.*?\\ .js)(\\?|$)" ) , 
2929            s  =  document . getElementsByTagName ( 'script' ) , 
3030            src ,  m ,  l  =  "" ; 
3131        for ( var  i = 0 ,  len = s . length ;  i < len ;  i ++ )  { 
Original file line number Diff line number Diff line change 1+ < html > 
2+ < head > 
3+     < script  src ="some/path/OpenLayers.js "> </ script > 
4+     < script  src ="../lib/OpenLayers/SingleFile.js "> </ script > 
5+     < script  type ="text/javascript "> 
6+         function  test_OpenLayers ( t )  { 
7+             t . plan ( 1 ) ; 
8+             t . eq ( OpenLayers . _getScriptLocation ( ) ,  "some/path/" , 
9+                  "Script location correctly detected (OpenLayers.js)." ) ; 
10+         } 
11+     </ script > 
12+ </ head > 
13+ < body > 
14+ </ body > 
15+ </ html > 
Original file line number Diff line number Diff line change 1+ < html > 
2+ < head > 
3+     < script  src ="some/path/OpenLayers.light.js "> </ script > 
4+     < script  src ="../lib/OpenLayers/SingleFile.js "> </ script > 
5+     < script  type ="text/javascript "> 
6+         function  test_OpenLayers ( t )  { 
7+             t . plan ( 1 ) ; 
8+             t . eq ( OpenLayers . _getScriptLocation ( ) ,  "some/path/" , 
9+                  "Script location correctly detected (OpenLayers.light.js) ." ) ; 
10+         } 
11+     </ script > 
12+ </ head > 
13+ < body > 
14+ </ body > 
15+ </ html > 
Original file line number Diff line number Diff line change 1+ < html > 
2+ < head > 
3+     < script  src ="some/path/OpenLayers.light.debug.js "> </ script > 
4+     < script  src ="../lib/OpenLayers/SingleFile.js "> </ script > 
5+     < script  type ="text/javascript "> 
6+         function  test_OpenLayers ( t )  { 
7+             t . plan ( 1 ) ; 
8+             t . eq ( OpenLayers . _getScriptLocation ( ) ,  "some/path/" , 
9+                  "Script location correctly detected (OpenLayers.light.debug.js)." ) ; 
10+         } 
11+     </ script > 
12+ </ head > 
13+ < body > 
14+ </ body > 
15+ </ html > 
Original file line number Diff line number Diff line change 182182    < li > OpenLayers3.html</ li > 
183183    < li > OpenLayers4.html</ li > 
184184    < li > OpenLayersJsFiles.html</ li > 
185+     < li > SingleFile1.html</ html > 
186+     < li > SingleFile2.html</ html > 
187+     < li > SingleFile3.html</ html > 
185188    < li > Popup.html</ li > 
186189    < li > Popup/Anchored.html</ li > 
187190    < li > Popup/AnchoredBubble.html</ li > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments