Skip to content

Commit 47e4371

Browse files
committed
Fix typos found by codespell
Signed-off-by: Stefan Weil <[email protected]>
1 parent a05d63a commit 47e4371

28 files changed

+38
-38
lines changed

lib/OpenLayers/Events.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ OpenLayers.Events = OpenLayers.Class({
898898
handleBrowserEvent: function (evt) {
899899
var type = evt.type, listeners = this.listeners[type];
900900
if(!listeners || listeners.length == 0) {
901-
// noone's listening, bail out
901+
// no one's listening, bail out
902902
return;
903903
}
904904
// add clientX & clientY to all events - corresponds to average x, y

lib/OpenLayers/Layer/ArcGISCache.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ OpenLayers.Layer.ArcGISCache = OpenLayers.Class(OpenLayers.Layer.XYZ, {
437437
var y = (Math.round(Math.abs((originTileY - center.lat) / (res * this.tileSize.h))));
438438
var z = this.map.getZoom();
439439

440-
// this prevents us from getting pink tiles (non-existant tiles)
440+
// this prevents us from getting pink tiles (non-existent tiles)
441441
if (this.lods) {
442442
var lod = this.lods[this.map.getZoom()];
443443
if ((x < lod.startTileCol || x > lod.endTileCol)

lib/OpenLayers/Util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ OpenLayers.Util.applyDefaults = function (to, from) {
508508
* http parameter notation.
509509
* (ex. <i>"key1=value1&key2=value2&key3=value3"</i>)
510510
* If a parameter is actually a list, that parameter will then
511-
* be set to a comma-seperated list of values (foo,bar) instead
511+
* be set to a comma-separated list of values (foo,bar) instead
512512
* of being URL escaped (foo%3Abar).
513513
*/
514514
OpenLayers.Util.getParameterString = function(params) {

tests/BaseTypes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
t.ok(!OpenLayers.String.startsWith(str, "Head"),
1717
"'chickenHead' does not start with 'Head'");
1818
t.ok(!OpenLayers.String.startsWith(str, "beet"),
19-
"'chickenHead' doesnt start with 'beet'");
19+
"'chickenHead' doesn't start with 'beet'");
2020
}
2121

2222
function test_String_contains(t) {
@@ -31,7 +31,7 @@
3131
t.ok(OpenLayers.String.contains(str, "Head"),
3232
"(end) 'chickenHead' contains with 'Head'");
3333
t.ok(!OpenLayers.String.startsWith(str, "beet"),
34-
"'chickenHead' doesnt start with 'beet'");
34+
"'chickenHead' doesn't start with 'beet'");
3535
}
3636

3737
function test_String_trim(t) {

tests/BaseTypes/Element.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@
156156
//tests for this function are not 100% complete... there is some funky
157157
// business going on in there with
158158
// * document.defaultView (moz/ff I believe)
159-
// but I cant seem to find a good way to test them.
159+
// but I can't seem to find a good way to test them.
160160
//
161-
t.ok(OpenLayers.Element.getStyle(null, null) == null, "passing null values in to getStyle() doesnt bomb, returns null");
161+
t.ok(OpenLayers.Element.getStyle(null, null) == null, "passing null values in to getStyle() doesn't bomb, returns null");
162162

163163
var elem = document.getElementById("elemID");
164164
elem.style.chickenHead = {}

tests/Control/SLDSelect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
control = new OpenLayers.Control.SLDSelect(OpenLayers.Handler.RegularPolygon, {handlerOptions: {irregular: true}});
1313
t.eq(control.handler instanceof OpenLayers.Handler.RegularPolygon, true, "RegularPolygon handler created");
1414
t.eq(control.handler.irregular, true, "RegularPolygon handler is irregular");
15-
t.eq(control.handler.persist, false, "RegularPolygon handler is not persistant");
15+
t.eq(control.handler.persist, false, "RegularPolygon handler is not persistent");
1616
t.ok(control.handler.callbacks["done"] === control.select, "Done callback correctly set");
1717
control.destroy();
1818
control = new OpenLayers.Control.SLDSelect(OpenLayers.Handler.Polygon);

tests/Control/ScaleLine.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
maxExtent: new OpenLayers.Bounds(33861, 717605, 330846, 1019656),
7878
maxResolution: 296985/1024,
7979
projection:"EPSG:2805", // Used in WMS/WFS requests.
80-
units: "m" // Only neccesary for working with scales.
80+
units: "m" // Only necessary for working with scales.
8181
} );
8282

8383
map.addLayer(basemap);

tests/Control/SelectFeature.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
});
567567
layer1.destroy();
568568
t.eq(layer2.id, control.layer.id, "Layer is set correctly without error");
569-
t.eq(noError, null,"No error occured during setLayer. Error is: '"+noError+"'");
569+
t.eq(noError, null,"No error occurred during setLayer. Error is: '"+noError+"'");
570570
control.destroy();
571571
map.destroy();
572572
}

tests/Events.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130

131131
events.unregister("doThingA", obj, null);
132132
var listenerList = events.listeners["doThingA"];
133-
t.eq( listenerList.length, 3, "trying to unregister a null callback does nothing -- but doesnt crash :-)" );
133+
t.eq( listenerList.length, 3, "trying to unregister a null callback does nothing -- but doesn't crash :-)" );
134134

135135
events.unregister("doThingA", obj, func);
136136
var found = false;

tests/Format/CQL.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
t.eq(filter.property, "A",
339339
"Property name is as specified in CQL");
340340
t.eq(filter.lowerBoundary, 0, 'Lower boundary is as specified in CQL');
341-
t.eq(filter.upperBoundary, 5, 'Upper bondary is as specified in CQL');
341+
t.eq(filter.upperBoundary, 5, 'Upper boundary is as specified in CQL');
342342

343343
t.eq(format.write(filter), cql, "write returned test cql");
344344

tests/Format/GML.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
t.eq(data[0].geometry.components[0].components[1].y, 1, "second y coord correct");
174174
t.eq(data[0].geometry.components[0].components[2].x, 20, "third x coord correct");
175175
t.eq(data[0].geometry.components[0].components[2].y, 21, "third y coord correct");
176-
t.eq(data[0].geometry.components[0].components[3].x, 0, "fouth x coord correct");
176+
t.eq(data[0].geometry.components[0].components[3].x, 0, "fourth x coord correct");
177177
t.eq(data[0].geometry.components[0].components[3].y, 21, "fourth y coord correct");
178178
t.eq(data[0].geometry.components[0].components[4].x, 0, "fifth x coord correct");
179179
t.eq(data[0].geometry.components[0].components[4].y, 1, "fifth y coord correct");
@@ -279,7 +279,7 @@
279279
t.eq(data[0].geometry.components[0].components[1].y, 1, "second y coord correct");
280280
t.eq(data[0].geometry.components[0].components[2].x, 20, "third x coord correct");
281281
t.eq(data[0].geometry.components[0].components[2].y, 21, "third y coord correct");
282-
t.eq(data[0].geometry.components[0].components[3].x, 0, "fouth x coord correct");
282+
t.eq(data[0].geometry.components[0].components[3].x, 0, "fourth x coord correct");
283283
t.eq(data[0].geometry.components[0].components[3].y, 21, "fourth y coord correct");
284284
t.eq(data[0].geometry.components[0].components[4].x, 0, "fifth x coord correct");
285285
t.eq(data[0].geometry.components[0].components[4].y, 1, "fifth y coord correct");

tests/Format/OGCExceptionReport.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
7878
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
7979
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
80-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
80+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
8181
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
8282
' </ows:Exception>' +
8383
'</ows:ExceptionReport>';
@@ -89,7 +89,7 @@
8989
var exception = report.exceptions[0];
9090
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
9191
t.eq(exception.locator, "foo", "locator properly parsed");
92-
t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
92+
t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
9393
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
9494
}
9595

tests/Format/OWSCommon/v1_0_0.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
1111
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
1212
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
13-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
13+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
1414
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
1515
' </ows:Exception>' +
1616
'</ows:ExceptionReport>';
@@ -23,7 +23,7 @@
2323
var exception = report.exceptions[0];
2424
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
2525
t.eq(exception.locator, "foo", "locator properly parsed");
26-
t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
26+
t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
2727
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
2828
}
2929

tests/Format/OWSCommon/v1_1_0.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"' +
1111
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1">' +
1212
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
13-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
13+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
1414
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
1515
' </ows:Exception>' +
1616
'</ows:ExceptionReport>';
@@ -23,7 +23,7 @@
2323
var exception = report.exceptions[0];
2424
t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed");
2525
t.eq(exception.locator, "foo", "locator properly parsed");
26-
t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed");
26+
t.eq(exception.texts[0], "Update error: Error occurred updating features", "ExceptionText correctly parsed");
2727
t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed");
2828
}
2929

tests/Format/WCSCapabilities/v1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
1212
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
1313
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
14-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
14+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
1515
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
1616
' </ows:Exception>' +
1717
'</ows:ExceptionReport>';

tests/Format/WFSCapabilities/v1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
1212
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
1313
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
14-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
14+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
1515
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
1616
' </ows:Exception>' +
1717
'</ows:ExceptionReport>';

tests/Format/WFSCapabilities/v2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"' +
1212
' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows">' +
1313
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
14-
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
14+
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
1515
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
1616
' </ows:Exception>' +
1717
'</ows:ExceptionReport>';

tests/Format/WMC/v1_1_0.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
function test_write_wmc_Layer(t) {
77
if (OpenLayers.BROWSER_NAME == "safari") {
88
t.plan(0);
9-
t.debug_print("Safari has wierd behavior with getElementsByTagNameNS: the result is that we can't run these tests there. Patches welcome.");
9+
t.debug_print("Safari has weird behavior with getElementsByTagNameNS: the result is that we can't run these tests there. Patches welcome.");
1010
return;
1111
}
1212
t.plan(12);

tests/Format/WMSCapabilities/v1_1_1.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
t.eq(elevation.units, "EPSG:5030", "Dimension units parsed correctly");
232232
t.eq(elevation["default"], "0", "Default elevation value parsed correctly");
233233
t.eq(elevation.nearestVal, true, "NearestValue parsed correctly");
234-
t.eq(elevation.multipleVal, false, "Absense of MultipleValues handled correctly");
234+
t.eq(elevation.multipleVal, false, "Absence of MultipleValues handled correctly");
235235
t.eq(elevation.values,
236236
["0","1000","3000","5000","10000"],
237237
"Parsing of comma-separated values done correctly");

tests/Format/WMSCapabilities/v1_3_0.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
t.eq(elevation.units, "CRS:88", "Dimension units parsed correctly");
135135
t.eq(elevation["default"], "0", "Default elevation value parsed correctly");
136136
t.eq(elevation.nearestVal, true, "NearestValue parsed correctly");
137-
t.eq(elevation.multipleVal, false, "Absense of MultipleValues handled correctly");
137+
t.eq(elevation.multipleVal, false, "Absence of MultipleValues handled correctly");
138138
t.eq(elevation.values,
139139
["0","1000","3000","5000","10000"],
140140
"Parsing of comma-separated values done correctly");

tests/Geometry/LinearRing.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
ring.removeComponent( ring.components[2] );
8383
ring.removeComponent( ring.components[1] );
84-
t.eq(ring.components.length, 3, "cant remove from linear ring with only 3 points. new length ok");
84+
t.eq(ring.components.length, 3, "can't remove from linear ring with only 3 points. new length ok");
8585
t.ok(ring.components[0].equals(components[0]), "point one correct");
8686
t.ok(ring.components[1].equals(components[1]), "point two correct");
8787
t.ok(ring.components[0] === ring.components[ring.components.length - 1],

tests/Layer/Grid.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@
245245

246246
var log = [];
247247

248-
//make sure null bounds doesnt cause script error.
248+
//make sure null bounds don't cause script error.
249249
// no test necessary, just action
250250
map.getExtent = function() { return null; }
251251
layer.singleTile = false;
252-
layer.moveTo(); //checks to make sure null bounds doesnt break us
252+
layer.moveTo(); //checks to make sure null bounds don't break us
253253

254254

255255
//observing globals

tests/Map.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@
11911191
control = { id: "bogus id" };
11921192
map1.removeControl(control);
11931193
newNumControls = map1.controls.length;
1194-
t.ok( newNumControls == oldNumControls, "removing bad controlid doesnt crash or decrease control count")
1194+
t.ok( newNumControls == oldNumControls, "removing bad controlid doesn't crash or decrease control count")
11951195

11961196
map1.destroy();
11971197

tests/Popup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
var popup = new OpenLayers.Popup('id');
8787
map.addPopup(popup);
8888
map.getLayerPxFromLonLat = function () { return null; }
89-
popup.moveTo=function() { t.fail("Shouldnt' call moveTo if layerpx is null"); }
89+
popup.moveTo=function() { t.fail("Shouldn't' call moveTo if layerpx is null"); }
9090
popup.lonlat = true;
9191
popup.updatePosition();
9292
t.ok(true, "update position doesn't fail when getLayerPxFromLonLat fails.");

tests/Test.AnotherWay.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ Test.AnotherWay._load_next_page = function(){
771771
};
772772

773773
Test.AnotherWay._g_opera_path_correction = null; // ugly wart to support opera
774-
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
774+
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
775775
Test.AnotherWay._set_iframe_location = function(iframe, loc, outside_path_correction){
776776
// allow to load only locations with the same origin
777777
var proto_end = loc.indexOf("://");

tests/Util.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
t.eq(OpenLayers.Util.getParameterString({chars: "~!*()'"}), "chars=~!*()'", "~!*()' are unreserved or have no reserved purpose in a URI component");
343343

344344

345-
// Parameters which are a list should end up being a comma-seperated
345+
// Parameters which are a list should end up being a comma-separated
346346
// list of the URL encoded strings
347347
var params = { foo: ["bar,baz"] };
348348
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar%2Cbaz", "getParameterString encodes , correctly in arrays");
@@ -1120,7 +1120,7 @@
11201120
t.ok(ret == null, "if all functions throw exceptions, null returned");
11211121

11221122
var ret = OpenLayers.Util.Try(func1, func2, func3, func4);
1123-
t.ok(ret == g_TestVal3, "try returns first sucessfully executed function's return");
1123+
t.ok(ret == g_TestVal3, "try returns first successfully executed function's return");
11241124

11251125
}
11261126

tests/auto-tests.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@
789789
}
790790
}
791791
Test.AnotherWay._g_opera_path_correction=null; // ugly wart to support opera
792-
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
792+
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
793793
Test.AnotherWay._set_iframe_location=function( iframe, loc, outside_path_correction )
794794
{
795795
// allow to load only locations with the same origin

tools/BeautifulSoup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def _smartPop(self, name):
10951095
p = self.tagStack[i]
10961096
if (not p or p.name == name) and not isNestable:
10971097
#Non-nestable tags get popped to the top or to their
1098-
#last occurance.
1098+
#last occurrence.
10991099
popTo = name
11001100
break
11011101
if (nestingResetTriggers != None
@@ -1242,14 +1242,14 @@ class BeautifulSoup(BeautifulStoneSoup):
12421242
12431243
* Tag nesting rules:
12441244
1245-
Most tags can't be nested at all. For instance, the occurance of
1245+
Most tags can't be nested at all. For instance, the occurrence of
12461246
a <p> tag should implicitly close the previous <p> tag.
12471247
12481248
<p>Para1<p>Para2
12491249
should be transformed into:
12501250
<p>Para1</p><p>Para2
12511251
1252-
Some tags can be nested arbitrarily. For instance, the occurance
1252+
Some tags can be nested arbitrarily. For instance, the occurrence
12531253
of a <blockquote> tag should _not_ implicitly close the previous
12541254
<blockquote> tag.
12551255

0 commit comments

Comments
 (0)