8000 Run noCI tests using GitHub workflows by emilykl · Pull Request #7343 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Run noCI tests using GitHub workflows #7343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 5, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add margin of error for funnel restyle test
  • Loading branch information
emilykl committed Jan 22, 2025
commit c71a251991685755975ace76da96becd789ab3dc
12 changes: 6 additions & 6 deletions test/jasmine/tests/funnel_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,14 @@ describe('A funnel plot', function() {
return node.querySelectorAll('g.point');
}

function assertTextIsInsidePath(textNode, pathNode) {
function assertTextIsInsidePath(textNode, pathNode, errorMargin=0) {
var textBB = textNode.getBoundingClientRect();
var pathBB = pathNode.getBoundingClientRect();

expect(pathBB.left).not.toBeGreaterThan(textBB.left);
expect(textBB.right).not.toBeGreaterThan(pathBB.right);
expect(pathBB.top).not.toBeGreaterThan(textBB.top);
expect(textBB.bottom).not.toBeGreaterThan(pathBB.bottom);
expect(pathBB.left - errorMargin).not.toBeGreaterThan(textBB.left);
expect(textBB.right - errorMargin).not.toBeGreaterThan(pathBB.right);
expect(pathBB.top - errorMargin).not.toBeGreaterThan(textBB.top);
expect(textBB.bottom - errorMargin).not.toBeGreaterThan(pathBB.bottom);
}

function assertTextIsAbovePath(textNode, pathNode) {
Expand Down Expand Up @@ -969,7 +969,7 @@ describe('A funnel plot', function() {
assertTextIsInsidePath(text03, path03); // inside
assertTextIsInsidePath(text12, path12); // inside
assertTextIsInsidePath(text20, path20); // inside
assertTextIsInsidePath(text30, path30); // inside
assertTextIsInsidePath(text30, path30, 0.5); // inside
})
.then(done, done.fail);
});
Expand Down
Loading
0