Commit Graph

44 Commits

Author SHA1 Message Date
Tim Schaub 27ccd13e48 Create test specific markup in tests
Instead of relying on a shared dom structure, the tests should create (and destroy) elements as needed.
2013-03-18 22:53:04 -06:00
Tobias Bieniek 1d5389a45d test: Deactivate mocha bail option
We don't want mocha to quit on the first failing test. It should continue
and see what other tests are failing.
2013-03-18 20:50:04 +01:00
Tom Payne af6de5582a Add comment to highlight use of modified expect.js
Hat tip @marcjansen
2013-03-15 15:29:16 +01:00
Tom Payne bddaecbe69 Make it clear that ol3's expect.js is different 2013-03-14 23:33:58 +01:00
Tobias Bieniek 89ab68cde7 Replaced jasmine testing framework by mocha, expect.js and sinon
as discussed in #319
2013-03-13 04:32:43 +01:00
Tom Payne cb9fbc3dec Add Proj4js to test framework 2013-02-18 14:44:35 +01:00
Éric Lemoine b6ed5f2164 Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Éric Lemoine c0c9cdef15 New tile queue implementation (heapify-powered) 2013-01-18 21:02:09 +01:00
Tim Schaub 10672ad303 Standardizing color ranges (see #129) 2013-01-17 14:19:50 -07:00
Éric Lemoine 927cffb2b7 Add view abstraction 2013-01-09 14:03:16 +01:00
tschaub 4d97b583c6 Match the current Filter Effects spec
This commit is a cherry-pick of 19f7778.

The current draft of the [filter spec](https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html)
describes brightness, contrast, hue-rotate, and saturate functions that
roughly match our layer's setBrightness, setContrast, setHue, and
setSaturation methods.  These changes make the range of our methods match
the corresponding functions in the spec.  The one exception is the
brightness function.  The spec says it has a range of 0 to positive infinity.
The WebKit implementation accepts a range of -1 to 1 (as of
https://github.com/WebKit/webkit/commit/8f4765e569).  There's an open
(ticket)[https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647] recommending
that the spec be changed to match.

I'm not stuck on having our methods match those of the filter spec, but the
parity would be nice.

These changes leave the WebGL map renderer "broken" (whacky colors).  It would
be straightforward to update the current fragment shader to handle the new
range of hue, but the brightness, contrast, and saturation handling will
need to be reworked.

For inspiration, here are the color transformation
matrix calculations the WebKit filters:
https://github.com/WebKit/webkit/blob/8f4765e5698c9171c2b3f984d0d9d65188185de3/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp#L64-80

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:18:34 +01:00
Éric Lemoine 2a76a23b6f Add tests for ol.control.Control 2012-10-11 17:46:47 +02:00
Tom Payne 9d253ab6bb Refactor exports and externs 2012-10-04 15:11:26 +02:00
Tom Payne 145312b273 Sort specs 2012-09-29 12:33:01 +02:00
Tom Payne 71e42b2448 Refactor build system
This rather large commit refactors the build system to solve a number of
problems:
- Object literal types are now declared in just one place
- There are no more circular dependencies
- There is no need for concealed subclasses in build-standalone mode

When building in standalone mode, you need to include the source in
build/src/external.  This declares object literal types as externs so
that their properties are not renamed.

When building with the application, you need to include the source in
build/src/internal.  This declares object literal types as typedefs so
that their properties can be renamed and removed.

Note also that ol.MapOptions has been merged into ol.Map, with some
renaming.
2012-09-29 11:51:53 +02:00
Éric Lemoine 87189293b5 Make the resolution constraint configurable through map options 2012-09-27 13:36:57 +02:00
Tom Payne 1f55d139b2 Remove stray script element 2012-09-27 13:00:52 +02:00
Tom Payne 65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +02:00
Éric Lemoine 79166dc1d6 Constraint objects moved to ol namespace from ol.interaction namespace 2012-09-27 00:10:54 +02:00
Éric Lemoine 629687586f Simplify and clean up the test page 2012-09-25 13:53:11 +02:00
Éric Lemoine 89f7e44478 Jasmine tests for ol.Collection 2012-09-25 12:02:28 +02:00
Éric Lemoine db904dae5c Jasmine tests for ol.Rectangle 2012-09-25 10:42:07 +02:00
Éric Lemoine 589c2a8505 Jasmine tests for ol.TileRange 2012-09-25 10:22:36 +02:00
Éric Lemoine b249b0aaa9 Jasmine tests for ol.tilestore.XYZ 2012-09-25 10:13:41 +02:00
Éric Lemoine 56e48911bf Jasmine tests for ol.TileGrid 2012-09-25 10:03:27 +02:00
Éric Lemoine 27d3a88413 add FIXMEs for test runner 2012-09-25 00:47:02 +02:00
Éric Lemoine 1f0d53342a Jasmine tests for ol.array 2012-09-25 00:29:23 +02:00
Éric Lemoine 6fab51bde0 Jasmine tests for ol.Extent 2012-09-25 00:13:28 +02:00
Éric Lemoine 92f0711404 Jasmine tests for ol.interaction.ResolutionConstraint 2012-09-25 00:02:22 +02:00
Éric Lemoine 94f2f85195 Jasmine tests for ol.TileUrlFunction 2012-09-24 23:39:50 +02:00
Éric Lemoine ec9382e760 Jasmine tests for ol.Projection 2012-09-24 23:26:49 +02:00
Éric Lemoine c2901dec73 Jasmine tests for ol.TileCoord 2012-09-24 22:56:40 +02:00
Éric Lemoine 1f457fc919 add ConsoleReporter to Jasmine Env (for headless testing) 2012-09-24 22:34:09 +02:00
Éric Lemoine 4b015f9962 add Jasmine tests for ol.Object 2012-09-24 18:15:30 +02:00
Éric Lemoine d73410a9b3 add a click handler 2012-07-11 17:45:32 +02:00
Éric Lemoine 82b5a59647 remove ol.event entirely 2012-07-09 21:34:47 +02:00
Éric Lemoine 7c7cd08494 base tests for ol.handler.Drag and ol.handler.MouseWheel 2012-07-09 21:09:09 +02:00
ahocevar b7c8486289 Testing Control.js. 2012-06-26 00:18:29 +02:00
Marc Jansen 6d84d4d3a1 Add geom/MultiLineString classes and tests. 2012-06-25 21:36:17 +02:00
ahocevar 53a1f9b579 Adding tests for Loc.add. 2012-06-24 12:02:45 +02:00
Éric Lemoine f92e128636 [ol.layer.WMS] add a basic tiled WMS layer implementation 2012-06-22 20:39:56 +02:00
Mike Adair 368bb28671 initial version of popups 2012-06-22 08:13:34 -04:00
Tim Schaub 4e2ea47e73 Decode what we encode. 2012-06-22 13:12:47 +02:00
Éric Lemoine 1d114b4630 two test pages, one for api, one for ol 2012-06-22 12:17:57 +02:00