Splitting tests between api and internal.

This commit is contained in:
Tim Schaub
2012-06-20 11:56:20 +02:00
parent a7a86bb169
commit 14b1a34f98
7 changed files with 38 additions and 37 deletions

View File

@@ -1,30 +1,5 @@
describe("ol.Projection", function() {
it("constructs instances", function() {
var p;
p = ol.projection("foo");
expect(p.code()).toBe("foo");
p = ol.projection({
code: "bar",
units: "m"
});
expect(p.code()).toBe("bar");
});
it("allows units to be set", function() {
var p;
p = ol.projection("foo");
expect(p.units()).toBeUndefined();
p = ol.projection({code: "foo", units: "m"});
expect(p.units()).toBe("m");
});
it("handles transforms", function() {
var point = {x: 10, y: 20, z: 30};