-
-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
514 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
describe("Base [Interactions]", () => { | ||
describe("When clicking in nested button", () => { | ||
it("should allow to trigger button callback", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,36 +1,54 @@ | ||
import { renderApp } from "../../utils/render-app"; | ||
|
||
describe("Example view", () => { | ||
describe("Base [Rendering]", () => { | ||
describe("When example view has been rendered", () => { | ||
test("it renders entire example without errors", () => { | ||
it("should render entire example without errors", () => { | ||
const { wrapper } = renderApp(); | ||
|
||
expect(wrapper).toBeDefined(); | ||
}); | ||
test("it renders center in button without errors", () => { | ||
it("should render center in button without errors", () => { | ||
const { centerBtn } = renderApp(); | ||
|
||
expect(centerBtn).toBeDefined(); | ||
}); | ||
test("it renders zoom in button without errors", () => { | ||
it("should render zoom in button without errors", () => { | ||
const { zoomInBtn } = renderApp(); | ||
|
||
expect(zoomInBtn).toBeDefined(); | ||
}); | ||
test("it renders zoom out button without errors", () => { | ||
it("should render zoom out button without errors", () => { | ||
const { zoomOutBtn } = renderApp(); | ||
|
||
expect(zoomOutBtn).toBeDefined(); | ||
}); | ||
test("it renders reset button without errors", () => { | ||
it("should render reset button without errors", () => { | ||
const { resetBtn } = renderApp(); | ||
|
||
expect(resetBtn).toBeDefined(); | ||
}); | ||
test("it renders transform component without errors", () => { | ||
it("should render transform component without errors", () => { | ||
const { content } = renderApp(); | ||
|
||
expect(content).toBeDefined(); | ||
}); | ||
}); | ||
describe("When example view has been rendered", () => { | ||
it("should render with initial scale", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should render with limit initial scale to minScale", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should render with limit initial scale to maxScale", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should center on initialization", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,22 @@ | ||
describe("Pan Touch [Sizes]", () => { | ||
describe("When content is bigger than wrapper", () => { | ||
it("should allow panning to the bottom-right end without moving back", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow panning with velocity", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When content is smaller than wrapper", () => { | ||
it("should not allow for panning", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should return to original position", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,12 @@ | ||
describe("Pan Touch [Exclusion]", () => { | ||
describe("When excluding element", () => { | ||
it("should not allow for panning on excluded element", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow panning on other elements", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,12 @@ | ||
describe("Pan TrackPad [Exclusion]", () => { | ||
describe("When excluding element", () => { | ||
it("should not allow for panning on excluded element", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow panning on other elements", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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 @@ | ||
describe("Pan [Clicks]", () => { | ||
describe("When allowing for left click pan", () => { | ||
it("should allow for panning with left click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not allow for panning with other clicks", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When allowing for middle click pan", () => { | ||
it("should allow for panning with middle click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not allow for panning with other clicks", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When allowing for right click pan", () => { | ||
it("should allow for panning with right click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not allow for panning with other clicks", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When allowing panning with any click", () => { | ||
it("should allow for panning with left click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow for panning with middle click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow for panning with right click", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,12 @@ | ||
describe("Pan [Exclusion]", () => { | ||
describe("When excluding element", () => { | ||
it("should not allow for panning on excluded element", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow panning on other elements", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,30 @@ | ||
describe("Pan [Sizes]", () => { | ||
describe("When content is bigger than wrapper", () => { | ||
it("should allow panning to the bottom-right end without moving back", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow panning with velocity", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not allow to move beyond bounds", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When content is smaller than wrapper", () => { | ||
it("should not allow for panning with centering", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow to move content around the wrapper body", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not allow to move beyond bounds", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,12 @@ | ||
describe("Pinch [Exclusion]", () => { | ||
describe("When excluding element", () => { | ||
it("should not allow for pinching on excluded element", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should allow pinching on other elements", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
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,70 @@ | ||
describe("Positions [Base]", () => { | ||
describe("When content is bigger than wrapper", () => { | ||
describe("When rendering initially original size content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
|
||
describe("When zoomed in content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
|
||
describe("When zoomed out content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); | ||
describe("When content is smaller than wrapper", () => { | ||
describe("When rendering initially original size content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
|
||
describe("When zoomed in content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
|
||
describe("When zoomed out content", () => { | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should ...", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); | ||
}); |
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,18 @@ | ||
describe("Positions [Centering]", () => { | ||
describe("When rendering initially zoomed out content", () => { | ||
it("should center the content with prop X", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
it("should not center the content with prop X disabled", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
describe("When rendering initially zoomed in content", () => { | ||
it("should not center the content with prop X", async () => { | ||
// TODO: Implement test | ||
expect(true).toBe(true); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.