-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add (some) IE11 testing on AppVeyor #3285
Conversation
Beautiful! That's a nice start 💃 |
test/jasmine/tests/lib_test.js
Outdated
vals.push( | ||
Number.MAX_VALUE, Number.MIN_VALUE, Number.EPSILON, | ||
-Number.MAX_VALUE, -Number.MIN_VALUE, -Number.EPSILON | ||
); |
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.
Oh dear, IE doesn't support these? We use MAX_VALUE
:
plotly.js/src/constants/numerical.js
Line 26 in 077a1d7
FP_SAFE: Number.MAX_VALUE / 10000, |
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.
Ah good eye, MAX_VALUE
is a thing in IE:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_VALUE
as is MIN_VALUE
. Only, EPSILON
isn't
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON
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.
fixed in -> 50218de
Excellent! 💃 I like the idea of an |
resolves #431
Looks like AppVeyor has gotten a lot better in the last three years, adding IE11 tests was relatively easy.
Note that this iteration only tests the
lib_test.js
suite. We should add more IE11 tests eventually, perhaps by adding a specialty suite intest/jasmine/bundle_tests/ie11_test.js
or by adding a@ie11
jasmine tag.But as discussed in #431 (comment), adapting all our jasmine tests (especially our pixel-based tests) might be too much of a pain for little benefit.
cc @plotly/plotly_js