[OpenLayers-Commits] r10860 - trunk/openlayers/tests
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Oct 26 10:09:26 EDT 2010
Author: erilem
Date: 2010-10-26 07:09:26 -0700 (Tue, 26 Oct 2010)
New Revision: 10860
Modified:
trunk/openlayers/tests/OpenLayers1.html
trunk/openlayers/tests/OpenLayers2.html
trunk/openlayers/tests/OpenLayers3.html
Log:
remove duplicated code in OpenLayers.html tests, no functional change
Modified: trunk/openlayers/tests/OpenLayers1.html
===================================================================
--- trunk/openlayers/tests/OpenLayers1.html 2010-10-26 06:48:35 UTC (rev 10859)
+++ trunk/openlayers/tests/OpenLayers1.html 2010-10-26 14:09:26 UTC (rev 10860)
@@ -14,19 +14,3 @@
<body>
</body>
</html>
-<html>
-<head>
- <script src="../lib/OpenLayers.js"></script>
- <script type="text/javascript">
- function test_OpenLayers(t) {
- t.plan(1);
-
- var script = document.getElementById("script");
-
- t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
- }
- </script>
-</head>
-<body>
-</body>
-</html>
Modified: trunk/openlayers/tests/OpenLayers2.html
===================================================================
--- trunk/openlayers/tests/OpenLayers2.html 2010-10-26 06:48:35 UTC (rev 10859)
+++ trunk/openlayers/tests/OpenLayers2.html 2010-10-26 14:09:26 UTC (rev 10860)
@@ -17,22 +17,3 @@
<body>
</body>
</html>
-<html>
-<head>
- <script src="bogus/1/OpenLayers.js-foo"></script>
- <script src="bogus/2/foo-OpenLayers.js"></script>
- <script src="../lib/OpenLayers.js?foo"></script>
- <script src="bogus/3/after-OpenLayers.js"></script>
- <script type="text/javascript">
- function test_OpenLayers(t) {
- t.plan(1);
-
- var script = document.getElementById("script");
-
- t.eq(OpenLayers._getScriptLocation(), "../", "Script location with search string correctly detected, and not fooled by other scripts.");
- }
- </script>
-</head>
-<body>
-</body>
-</html>
Modified: trunk/openlayers/tests/OpenLayers3.html
===================================================================
--- trunk/openlayers/tests/OpenLayers3.html 2010-10-26 06:48:35 UTC (rev 10859)
+++ trunk/openlayers/tests/OpenLayers3.html 2010-10-26 14:09:26 UTC (rev 10860)
@@ -17,22 +17,3 @@
<body>
</body>
</html>
-<html>
-<head>
- <script>
- var OpenLayers = {singleFile: true};
- </script>
- <script src="../lib/OpenLayers.js"></script>
- <script type="text/javascript">
- function test_OpenLayers(t) {
- t.plan(1);
-
- var script = document.getElementById("script");
-
- t.eq(OpenLayers._getScriptLocation(), "../lib/", "Script location for single file build correctly detected.");
- }
- </script>
-</head>
-<body>
-</body>
-</html>
More information about the Commits
mailing list