add missing test file for #2947, no functional test
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
27
tests/OpenLayersJsFiles.html
Normal file
27
tests/OpenLayersJsFiles.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript">
|
||||
window.OpenLayers = new Array(
|
||||
"OpenLayers/Util.js",
|
||||
"OpenLayers/BaseTypes.js"
|
||||
);
|
||||
</script>
|
||||
<script src="../lib/OpenLayers.js"></script>
|
||||
<script type="text/javascript">
|
||||
function test_OpenLayers(t) {
|
||||
t.plan(1);
|
||||
var s = document.getElementsByTagName("script");
|
||||
var src, count = 0;
|
||||
for(var i=0, len=s.length; i<len; i++) {
|
||||
src = s[i].getAttribute('src');
|
||||
if(src) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
t.eq(count, 3, "Three OpenLayers scripts loaded.");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user