[OpenLayers-Commits] r11151 - trunk/openlayers/tests
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Sun Feb 20 10:25:24 EST 2011
Author: erilem
Date: 2011-02-20 07:25:24 -0800 (Sun, 20 Feb 2011)
New Revision: 11151
Added:
trunk/openlayers/tests/OpenLayersJsFiles.html
Log:
add missing test file for #2947, no functional test
Added: trunk/openlayers/tests/OpenLayersJsFiles.html
===================================================================
--- trunk/openlayers/tests/OpenLayersJsFiles.html (rev 0)
+++ trunk/openlayers/tests/OpenLayersJsFiles.html 2011-02-20 15:25:24 UTC (rev 11151)
@@ -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>
More information about the Commits
mailing list