Splitting tests between api and internal.
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user