Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/OpenLayers/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Layer/ArcGISCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenLayers/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ OpenLayers.Util.applyDefaults = function (to, from) {
* http parameter notation.
* (ex. <i>"key1=value1&key2=value2&key3=value3"</i>)
* 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) {
Expand Down
4 changes: 2 additions & 2 deletions tests/BaseTypes.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions tests/BaseTypes/Class.html
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions tests/BaseTypes/Element.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion tests/Control/SLDSelect.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Control/ScaleLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Control/SelectFeature.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Events.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/CQL.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 2 additions & 2 deletions tests/Format/GML.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions tests/Format/OGCExceptionReport.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand All @@ -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");
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Format/OWSCommon/v1_0_0.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand All @@ -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");
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Format/OWSCommon/v1_1_0.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand All @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WCSCapabilities/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WFSCapabilities/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WFSCapabilities/v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">' +
' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' +
' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Update error: Error occurred updating features</ows:ExceptionText>' +
' <ows:ExceptionText>Second exception line</ows:ExceptionText>' +
' </ows:Exception>' +
'</ows:ExceptionReport>';
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WMC/v1_1_0.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WMSCapabilities/v1_1_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion tests/Format/WMSCapabilities/v1_3_0.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion tests/Geometry/LinearRing.html
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
4 changes: 2 additions & 2 deletions tests/Layer/Grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Map.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion tests/Popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion tests/Test.AnotherWay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("://");
Expand Down
4 changes: 2 additions & 2 deletions tests/Util.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");

}

Expand Down
2 changes: 1 addition & 1 deletion tests/auto-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tools/BeautifulSoup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <p> tag should implicitly close the previous <p> tag.

<p>Para1<p>Para2
should be transformed into:
<p>Para1</p><p>Para2

Some tags can be nested arbitrarily. For instance, the occurance
Some tags can be nested arbitrarily. For instance, the occurrence
of a <blockquote> tag should _not_ implicitly close the previous
<blockquote> tag.

Expand Down