-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Jasmine 2.0 and fix test cases
- Loading branch information
1 parent
af5ed2a
commit ee6493f
Showing
16 changed files
with
652 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/sh | ||
jsbuild full.cfg -v -o ../lib -j jsts.js | ||
tar -cvf jsts-0.13.3.tar ../src ../doc ../lib ../examples ../src ../license.txt ../authors.txt ../ChangeLog ../README.md | ||
rm jsts-0.13.3.tar.gz | ||
gzip -9 jsts-0.13.3.tar | ||
tar -cvf jsts-0.14.0.tar ../src ../doc ../lib ../examples ../src ../license.txt ../authors.txt ../ChangeLog ../README.md | ||
rm jsts-0.14.0.tar.gz | ||
gzip -9 jsts-0.14.0.tar | ||
mkdir tmp | ||
cd tmp | ||
tar xvfz ../jsts-0.13.3.tar.gz | ||
rm ../jsts-0.13.3.zip | ||
zip -r -9 ../jsts-0.13.3.zip * | ||
tar xvfz ../jsts-0.14.0.tar.gz | ||
rm ../jsts-0.14.0.zip | ||
zip -r -9 ../jsts-0.14.0.zip * | ||
cd .. | ||
rm tmp -rf |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* Copyright (c) 2011 by The Authors. | ||
* Published under the LGPL 2.1 license. | ||
* See /license-notice.txt for the full text of the license notice. | ||
* See /license.txt for the full text of the license. | ||
*/ | ||
|
||
/** | ||
* Port source: | ||
* /jts/jts/java/src/com/vividsolutions/jts/geom/util/ShortCircuitedGeometryVisitor.java | ||
* Revision: 707 | ||
*/ | ||
|
||
(function() { | ||
|
||
/** | ||
* A visitor to {@link Geometry} componets, which | ||
* allows short-circuiting when a defined condition holds. | ||
* | ||
* @version 1.7 | ||
*/ | ||
jsts.geom.util.ShortCircuitedGeometryVisitor = function() { | ||
|
||
}; | ||
|
||
jsts.geom.util.ShortCircuitedGeometryVisitor.prototype.isDone = false; | ||
|
||
jsts.geom.util.ShortCircuitedGeometryVisitor.prototype.applyTo = function(geom) { | ||
for (var i = 0; i < geom.getNumGeometries() && ! this.isDone; i++) { | ||
var element = geom.getGeometryN(i); | ||
if (! (element instanceof jsts.geom.GeometryCollection)) { | ||
this.visit(element); | ||
if (this.isDone()) { | ||
this.isDone = true; | ||
return; | ||
} | ||
} | ||
else | ||
this.applyTo(element); | ||
} | ||
} | ||
|
||
jsts.geom.util.ShortCircuitedGeometryVisitor.prototype.visit = function(element) {}; | ||
|
||
jsts.geom.util.ShortCircuitedGeometryVisitor.prototype.isDone = function() {}; | ||
|
||
})(); |
Oops, something went wrong.