-
Notifications
You must be signed in to change notification settings - Fork 783
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
test: fix test for Safari #1557
Conversation
// returns null as isSame is false. we can fix this by adding in the | ||
// missing label to the boundingStack before checking for isSame | ||
// @see https://bugs.webkit.org/show_bug.cgi?id=197743 | ||
includeMissingElements(boundingStack, elm); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already happening in getBackgroundStack
. I don't quite understand why you'd call this twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the includeMissingElements
call in getBackgroundStack
is not called since filteredRectStack
returns null
because it's missing the label. I tried removing the includeMissingElements
in getBackgroundStack
but that failed a lot of tests.
* develop: test: fix test for Safari (#1557) test: fix flakey test (#1573) test: fix tests failing in IE11 (#1570) test: only run IE11 tests in appveyor (#1571) chore: run prettier and format (#1568) test: disable es6 syntax usage within tests directory (#1569) feat(rule): add additional elements to check for incomplete with required children (#1547)
There were two Safari browser bugs that I had to work around, and one difference in floating point precision, but I got the tests working locally for Safari. Unfortunately I couldn't get it to work in CircleCI, so we'll have to come back to that in a later pr.
Closes: #1385
Reviewer checks
Required fields, to be filled out by PR reviewer(s)