diff --git a/lib/OpenLayers/Events.js b/lib/OpenLayers/Events.js
index 10ef4ca823..7615cc7699 100644
--- a/lib/OpenLayers/Events.js
+++ b/lib/OpenLayers/Events.js
@@ -935,7 +935,7 @@ OpenLayers.Events = OpenLayers.Class({
handleBrowserEvent: function (evt) {
var type = evt.type, listeners = this.listeners[type];
if(!listeners || listeners.length == 0) {
- // noone's listening, bail out
+ // no one's listening, bail out
return;
}
// add clientX & clientY to all events - corresponds to average x, y
diff --git a/lib/OpenLayers/Layer/ArcGISCache.js b/lib/OpenLayers/Layer/ArcGISCache.js
index 48c3e9a72d..a46f61d8f1 100644
--- a/lib/OpenLayers/Layer/ArcGISCache.js
+++ b/lib/OpenLayers/Layer/ArcGISCache.js
@@ -437,7 +437,7 @@ OpenLayers.Layer.ArcGISCache = OpenLayers.Class(OpenLayers.Layer.XYZ, {
var y = (Math.round(Math.abs((originTileY - center.lat) / (res * this.tileSize.h))));
var z = this.map.getZoom();
- // this prevents us from getting pink tiles (non-existant tiles)
+ // this prevents us from getting pink tiles (non-existent tiles)
if (this.lods) {
var lod = this.lods[this.map.getZoom()];
if ((x < lod.startTileCol || x > lod.endTileCol)
diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js
index 8c3e37f5a1..5dd969e6e3 100644
--- a/lib/OpenLayers/Util.js
+++ b/lib/OpenLayers/Util.js
@@ -508,7 +508,7 @@ OpenLayers.Util.applyDefaults = function (to, from) {
* http parameter notation.
* (ex. "key1=value1&key2=value2&key3=value3")
* If a parameter is actually a list, that parameter will then
- * be set to a comma-seperated list of values (foo,bar) instead
+ * be set to a comma-separated list of values (foo,bar) instead
* of being URL escaped (foo%3Abar).
*/
OpenLayers.Util.getParameterString = function(params) {
diff --git a/tests/BaseTypes.html b/tests/BaseTypes.html
index 38878dc750..107870efde 100644
--- a/tests/BaseTypes.html
+++ b/tests/BaseTypes.html
@@ -16,7 +16,7 @@
t.ok(!OpenLayers.String.startsWith(str, "Head"),
"'chickenHead' does not start with 'Head'");
t.ok(!OpenLayers.String.startsWith(str, "beet"),
- "'chickenHead' doesnt start with 'beet'");
+ "'chickenHead' doesn't start with 'beet'");
}
function test_String_contains(t) {
@@ -31,7 +31,7 @@
t.ok(OpenLayers.String.contains(str, "Head"),
"(end) 'chickenHead' contains with 'Head'");
t.ok(!OpenLayers.String.startsWith(str, "beet"),
- "'chickenHead' doesnt start with 'beet'");
+ "'chickenHead' doesn't start with 'beet'");
}
function test_String_trim(t) {
diff --git a/tests/BaseTypes/Class.html b/tests/BaseTypes/Class.html
index 11d5826c83..51e524c8b5 100644
--- a/tests/BaseTypes/Class.html
+++ b/tests/BaseTypes/Class.html
@@ -85,16 +85,16 @@
// test with an abstract class (i.e. a class that doesn't have an initialize
// method) as the parent class
- var Vehicule = OpenLayers.Class({
+ var Vehicle = OpenLayers.Class({
numWheels: null
});
- var Bike = OpenLayers.Class(Vehicule, {
+ var Bike = OpenLayers.Class(Vehicle, {
initialize: function() {
this.numWheels = 2;
}
});
var b = new Bike();
- t.ok(b instanceof Vehicule, "a bike is a vehicule");
+ t.ok(b instanceof Vehicle, "a bike is a vehicle");
// test inheritance with something that has a non-function initialize property
var P = OpenLayers.Class({
diff --git a/tests/BaseTypes/Element.html b/tests/BaseTypes/Element.html
index 6e094cccd3..ad0f21bea8 100644
--- a/tests/BaseTypes/Element.html
+++ b/tests/BaseTypes/Element.html
@@ -156,9 +156,9 @@
//tests for this function are not 100% complete... there is some funky
// business going on in there with
// * document.defaultView (moz/ff I believe)
- // but I cant seem to find a good way to test them.
+ // but I can't seem to find a good way to test them.
//
- t.ok(OpenLayers.Element.getStyle(null, null) == null, "passing null values in to getStyle() doesnt bomb, returns null");
+ t.ok(OpenLayers.Element.getStyle(null, null) == null, "passing null values in to getStyle() doesn't bomb, returns null");
var elem = document.getElementById("elemID");
elem.style.chickenHead = {}
diff --git a/tests/Control/SLDSelect.html b/tests/Control/SLDSelect.html
index 03b871c5af..f065c324c4 100644
--- a/tests/Control/SLDSelect.html
+++ b/tests/Control/SLDSelect.html
@@ -12,7 +12,7 @@
control = new OpenLayers.Control.SLDSelect(OpenLayers.Handler.RegularPolygon, {handlerOptions: {irregular: true}});
t.eq(control.handler instanceof OpenLayers.Handler.RegularPolygon, true, "RegularPolygon handler created");
t.eq(control.handler.irregular, true, "RegularPolygon handler is irregular");
- t.eq(control.handler.persist, false, "RegularPolygon handler is not persistant");
+ t.eq(control.handler.persist, false, "RegularPolygon handler is not persistent");
t.ok(control.handler.callbacks["done"] === control.select, "Done callback correctly set");
control.destroy();
control = new OpenLayers.Control.SLDSelect(OpenLayers.Handler.Polygon);
diff --git a/tests/Control/ScaleLine.html b/tests/Control/ScaleLine.html
index 9589e03485..d686b47843 100644
--- a/tests/Control/ScaleLine.html
+++ b/tests/Control/ScaleLine.html
@@ -77,7 +77,7 @@
maxExtent: new OpenLayers.Bounds(33861, 717605, 330846, 1019656),
maxResolution: 296985/1024,
projection:"EPSG:2805", // Used in WMS/WFS requests.
- units: "m" // Only neccesary for working with scales.
+ units: "m" // Only necessary for working with scales.
} );
map.addLayer(basemap);
diff --git a/tests/Control/SelectFeature.html b/tests/Control/SelectFeature.html
index 92d3a7edf9..3d40a355a9 100644
--- a/tests/Control/SelectFeature.html
+++ b/tests/Control/SelectFeature.html
@@ -566,7 +566,7 @@
});
layer1.destroy();
t.eq(layer2.id, control.layer.id, "Layer is set correctly without error");
- t.eq(noError, null,"No error occured during setLayer. Error is: '"+noError+"'");
+ t.eq(noError, null,"No error occurred during setLayer. Error is: '"+noError+"'");
control.destroy();
map.destroy();
}
diff --git a/tests/Events.html b/tests/Events.html
index 2386b6c320..81308cbf99 100644
--- a/tests/Events.html
+++ b/tests/Events.html
@@ -130,7 +130,7 @@
events.unregister("doThingA", obj, null);
var listenerList = events.listeners["doThingA"];
- t.eq( listenerList.length, 3, "trying to unregister a null callback does nothing -- but doesnt crash :-)" );
+ t.eq( listenerList.length, 3, "trying to unregister a null callback does nothing -- but doesn't crash :-)" );
events.unregister("doThingA", obj, func);
var found = false;
diff --git a/tests/Format/CQL.html b/tests/Format/CQL.html
index 7b31eab49b..5dc31a8d0e 100644
--- a/tests/Format/CQL.html
+++ b/tests/Format/CQL.html
@@ -338,7 +338,7 @@
t.eq(filter.property, "A",
"Property name is as specified in CQL");
t.eq(filter.lowerBoundary, 0, 'Lower boundary is as specified in CQL');
- t.eq(filter.upperBoundary, 5, 'Upper bondary is as specified in CQL');
+ t.eq(filter.upperBoundary, 5, 'Upper boundary is as specified in CQL');
t.eq(format.write(filter), cql, "write returned test cql");
diff --git a/tests/Format/GML.html b/tests/Format/GML.html
index 43b8fbdde0..0b8e0405d0 100644
--- a/tests/Format/GML.html
+++ b/tests/Format/GML.html
@@ -173,7 +173,7 @@
t.eq(data[0].geometry.components[0].components[1].y, 1, "second y coord correct");
t.eq(data[0].geometry.components[0].components[2].x, 20, "third x coord correct");
t.eq(data[0].geometry.components[0].components[2].y, 21, "third y coord correct");
- t.eq(data[0].geometry.components[0].components[3].x, 0, "fouth x coord correct");
+ t.eq(data[0].geometry.components[0].components[3].x, 0, "fourth x coord correct");
t.eq(data[0].geometry.components[0].components[3].y, 21, "fourth y coord correct");
t.eq(data[0].geometry.components[0].components[4].x, 0, "fifth x coord correct");
t.eq(data[0].geometry.components[0].components[4].y, 1, "fifth y coord correct");
@@ -279,7 +279,7 @@
t.eq(data[0].geometry.components[0].components[1].y, 1, "second y coord correct");
t.eq(data[0].geometry.components[0].components[2].x, 20, "third x coord correct");
t.eq(data[0].geometry.components[0].components[2].y, 21, "third y coord correct");
- t.eq(data[0].geometry.components[0].components[3].x, 0, "fouth x coord correct");
+ t.eq(data[0].geometry.components[0].components[3].x, 0, "fourth x coord correct");
t.eq(data[0].geometry.components[0].components[3].y, 21, "fourth y coord correct");
t.eq(data[0].geometry.components[0].components[4].x, 0, "fifth x coord correct");
t.eq(data[0].geometry.components[0].components[4].y, 1, "fifth y coord correct");
diff --git a/tests/Format/OGCExceptionReport.html b/tests/Format/OGCExceptionReport.html
index 7846f94290..e82426691f 100644
--- a/tests/Format/OGCExceptionReport.html
+++ b/tests/Format/OGCExceptionReport.html
@@ -77,7 +77,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
' ' +
-' Update error: Error occured updating features' +
+' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
@@ -89,7 +89,7 @@
var exception = report.exceptions[0];
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
t.eq(exception.locator, "foo", "locator properly parsed");
- t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
+ t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
}
diff --git a/tests/Format/OWSCommon/v1_0_0.html b/tests/Format/OWSCommon/v1_0_0.html
index 9d255b2252..d6b2c66eed 100644
--- a/tests/Format/OWSCommon/v1_0_0.html
+++ b/tests/Format/OWSCommon/v1_0_0.html
@@ -10,7 +10,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
' ' +
-' Update error: Error occured updating features' +
+' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
@@ -23,7 +23,7 @@
var exception = report.exceptions[0];
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
t.eq(exception.locator, "foo", "locator properly parsed");
- t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
+ t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
}
diff --git a/tests/Format/OWSCommon/v1_1_0.html b/tests/Format/OWSCommon/v1_1_0.html
index 1cdf7ee281..76639a92cc 100644
--- a/tests/Format/OWSCommon/v1_1_0.html
+++ b/tests/Format/OWSCommon/v1_1_0.html
@@ -10,7 +10,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1">' +
' ' +
-' Update error: Error occured updating features' +
+' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
@@ -23,7 +23,7 @@
var exception = report.exceptions[0];
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
t.eq(exception.locator, "foo", "locator properly parsed");
- t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
+ t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
}
diff --git a/tests/Format/WCSCapabilities/v1.html b/tests/Format/WCSCapabilities/v1.html
index 0c39ad4818..5de9759ba0 100644
--- a/tests/Format/WCSCapabilities/v1.html
+++ b/tests/Format/WCSCapabilities/v1.html
@@ -11,7 +11,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
' ' +
- ' Update error: Error occured updating features' +
+ ' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
diff --git a/tests/Format/WFSCapabilities/v1.html b/tests/Format/WFSCapabilities/v1.html
index e1caf7e5be..164a9b7a14 100644
--- a/tests/Format/WFSCapabilities/v1.html
+++ b/tests/Format/WFSCapabilities/v1.html
@@ -11,7 +11,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
' ' +
-' Update error: Error occured updating features' +
+' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
diff --git a/tests/Format/WFSCapabilities/v2.html b/tests/Format/WFSCapabilities/v2.html
index 1401774bc8..dfb8d57cd4 100644
--- a/tests/Format/WFSCapabilities/v2.html
+++ b/tests/Format/WFSCapabilities/v2.html
@@ -11,7 +11,7 @@
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
' ' +
-' Update error: Error occured updating features' +
+' Update error: Error occurred updating features' +
' Second exception line' +
' ' +
'';
diff --git a/tests/Format/WMC/v1_1_0.html b/tests/Format/WMC/v1_1_0.html
index 815d3bf40e..7dfb888dca 100644
--- a/tests/Format/WMC/v1_1_0.html
+++ b/tests/Format/WMC/v1_1_0.html
@@ -6,7 +6,7 @@
function test_write_wmc_Layer(t) {
if (OpenLayers.BROWSER_NAME == "safari") {
t.plan(0);
- t.debug_print("Safari has wierd behavior with getElementsByTagNameNS: the result is that we can't run these tests there. Patches welcome.");
+ t.debug_print("Safari has weird behavior with getElementsByTagNameNS: the result is that we can't run these tests there. Patches welcome.");
return;
}
t.plan(12);
diff --git a/tests/Format/WMSCapabilities/v1_1_1.html b/tests/Format/WMSCapabilities/v1_1_1.html
index e3b0863624..02f0faec94 100644
--- a/tests/Format/WMSCapabilities/v1_1_1.html
+++ b/tests/Format/WMSCapabilities/v1_1_1.html
@@ -231,7 +231,7 @@
t.eq(elevation.units, "EPSG:5030", "Dimension units parsed correctly");
t.eq(elevation["default"], "0", "Default elevation value parsed correctly");
t.eq(elevation.nearestVal, true, "NearestValue parsed correctly");
- t.eq(elevation.multipleVal, false, "Absense of MultipleValues handled correctly");
+ t.eq(elevation.multipleVal, false, "Absence of MultipleValues handled correctly");
t.eq(elevation.values,
["0","1000","3000","5000","10000"],
"Parsing of comma-separated values done correctly");
diff --git a/tests/Format/WMSCapabilities/v1_3_0.html b/tests/Format/WMSCapabilities/v1_3_0.html
index f4376cbe71..44c666b491 100644
--- a/tests/Format/WMSCapabilities/v1_3_0.html
+++ b/tests/Format/WMSCapabilities/v1_3_0.html
@@ -134,7 +134,7 @@
t.eq(elevation.units, "CRS:88", "Dimension units parsed correctly");
t.eq(elevation["default"], "0", "Default elevation value parsed correctly");
t.eq(elevation.nearestVal, true, "NearestValue parsed correctly");
- t.eq(elevation.multipleVal, false, "Absense of MultipleValues handled correctly");
+ t.eq(elevation.multipleVal, false, "Absence of MultipleValues handled correctly");
t.eq(elevation.values,
["0","1000","3000","5000","10000"],
"Parsing of comma-separated values done correctly");
diff --git a/tests/Geometry/LinearRing.html b/tests/Geometry/LinearRing.html
index cbbba2a0bc..36f3df36b9 100644
--- a/tests/Geometry/LinearRing.html
+++ b/tests/Geometry/LinearRing.html
@@ -81,7 +81,7 @@
ring.removeComponent( ring.components[2] );
ring.removeComponent( ring.components[1] );
- t.eq(ring.components.length, 3, "cant remove from linear ring with only 3 points. new length ok");
+ t.eq(ring.components.length, 3, "can't remove from linear ring with only 3 points. new length ok");
t.ok(ring.components[0].equals(components[0]), "point one correct");
t.ok(ring.components[1].equals(components[1]), "point two correct");
t.ok(ring.components[0] === ring.components[ring.components.length - 1],
diff --git a/tests/Layer/Grid.html b/tests/Layer/Grid.html
index 89c33ee7e7..26d8dd2981 100644
--- a/tests/Layer/Grid.html
+++ b/tests/Layer/Grid.html
@@ -245,11 +245,11 @@
var log = [];
- //make sure null bounds doesnt cause script error.
+ //make sure null bounds don't cause script error.
// no test necessary, just action
map.getExtent = function() { return null; }
layer.singleTile = false;
- layer.moveTo(); //checks to make sure null bounds doesnt break us
+ layer.moveTo(); //checks to make sure null bounds don't break us
//observing globals
diff --git a/tests/Map.html b/tests/Map.html
index b94fba2fc6..6cbd9da771 100644
--- a/tests/Map.html
+++ b/tests/Map.html
@@ -1191,7 +1191,7 @@
control = { id: "bogus id" };
map1.removeControl(control);
newNumControls = map1.controls.length;
- t.ok( newNumControls == oldNumControls, "removing bad controlid doesnt crash or decrease control count")
+ t.ok( newNumControls == oldNumControls, "removing bad controlid doesn't crash or decrease control count")
map1.destroy();
diff --git a/tests/Popup.html b/tests/Popup.html
index d2a9685398..0352a17c45 100644
--- a/tests/Popup.html
+++ b/tests/Popup.html
@@ -86,7 +86,7 @@
var popup = new OpenLayers.Popup('id');
map.addPopup(popup);
map.getLayerPxFromLonLat = function () { return null; }
- popup.moveTo=function() { t.fail("Shouldnt' call moveTo if layerpx is null"); }
+ popup.moveTo=function() { t.fail("Shouldn't' call moveTo if layerpx is null"); }
popup.lonlat = true;
popup.updatePosition();
t.ok(true, "update position doesn't fail when getLayerPxFromLonLat fails.");
diff --git a/tests/Test.AnotherWay.js b/tests/Test.AnotherWay.js
index 8500f1316f..faca579c6a 100644
--- a/tests/Test.AnotherWay.js
+++ b/tests/Test.AnotherWay.js
@@ -771,7 +771,7 @@ Test.AnotherWay._load_next_page = function(){
};
Test.AnotherWay._g_opera_path_correction = null; // ugly wart to support opera
-Test.AnotherWay._g_outside_path_correction = null; // ugly wart to accomodate Opera and Mozilla, where relative url relates to the directory where the page that calls this function is located
+Test.AnotherWay._g_outside_path_correction = null; // ugly wart to accommodate Opera and Mozilla, where relative url relates to the directory where the page that calls this function is located
Test.AnotherWay._set_iframe_location = function(iframe, loc, outside_path_correction){
// allow to load only locations with the same origin
var proto_end = loc.indexOf("://");
diff --git a/tests/Util.html b/tests/Util.html
index 9830ddc6eb..1d3901fdcb 100644
--- a/tests/Util.html
+++ b/tests/Util.html
@@ -342,7 +342,7 @@
t.eq(OpenLayers.Util.getParameterString({chars: "~!*()'"}), "chars=~!*()'", "~!*()' are unreserved or have no reserved purpose in a URI component");
- // Parameters which are a list should end up being a comma-seperated
+ // Parameters which are a list should end up being a comma-separated
// list of the URL encoded strings
var params = { foo: ["bar,baz"] };
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar%2Cbaz", "getParameterString encodes , correctly in arrays");
@@ -1120,7 +1120,7 @@
t.ok(ret == null, "if all functions throw exceptions, null returned");
var ret = OpenLayers.Util.Try(func1, func2, func3, func4);
- t.ok(ret == g_TestVal3, "try returns first sucessfully executed function's return");
+ t.ok(ret == g_TestVal3, "try returns first successfully executed function's return");
}
diff --git a/tests/auto-tests.html b/tests/auto-tests.html
index f467e41900..0217cdfd41 100644
--- a/tests/auto-tests.html
+++ b/tests/auto-tests.html
@@ -789,7 +789,7 @@
}
}
Test.AnotherWay._g_opera_path_correction=null; // ugly wart to support opera
-Test.AnotherWay._g_outside_path_correction=null; // ugly wart to accomodate Opera and Mozilla, where relative url relates to the directory where the page that calls this function is located
+Test.AnotherWay._g_outside_path_correction=null; // ugly wart to accommodate Opera and Mozilla, where relative url relates to the directory where the page that calls this function is located
Test.AnotherWay._set_iframe_location=function( iframe, loc, outside_path_correction )
{
// allow to load only locations with the same origin
diff --git a/tools/BeautifulSoup.py b/tools/BeautifulSoup.py
index 6ef8ac026a..5c7d31dddd 100644
--- a/tools/BeautifulSoup.py
+++ b/tools/BeautifulSoup.py
@@ -1095,7 +1095,7 @@ def _smartPop(self, name):
p = self.tagStack[i]
if (not p or p.name == name) and not isNestable:
#Non-nestable tags get popped to the top or to their
- #last occurance.
+ #last occurrence.
popTo = name
break
if (nestingResetTriggers != None
@@ -1242,14 +1242,14 @@ class BeautifulSoup(BeautifulStoneSoup):
* Tag nesting rules:
- Most tags can't be nested at all. For instance, the occurance of
+ Most tags can't be nested at all. For instance, the occurrence of
a
tag should implicitly close the previous
tag.
Para1
Para2
should be transformed into:
Para1
Para2
- Some tags can be nested arbitrarily. For instance, the occurance
+ Some tags can be nested arbitrarily. For instance, the occurrence
of a
tag should _not_ implicitly close the previous
tag.