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
Testing: Safari & IE8 #408
Comments
@krues8dr the standalone lib doesn't use underscore, and it looks like it doesn't support IE8 due to Although it looks like other ES5 methods are shimmed, so if it's just |
Looks like there was even a patch offered by the author of a similar library eventify. n1k0/backbone-events-standalone#6. Perhaps we could use that. |
That did the trick, this is just pending acceptance of that PR. |
Ok, further issues that are probably somewhat related. Now there's a failure at |
Anything more specific? A line number or a stack trace? Otherwise best thing to do is remove all the lines and add them back until it throws… |
It's throwing neither - and stepping through in the debugger has so many issues that it's taking forever to get to something meaningful. Doing the latter now. |
Appears to be |
Ah, |
Ah, it's undefined in every browser now. I clearly have broken something else. Edit: fixing that in Chrome hasn't fixed it in IE still. Something else is still going on. |
@krues8dr thanks for the reports. This is great. |
So, for IE8, I'm not seeing any documentation for using the Adder plugin, so I'm not sure what the ideal way to refactor this would be. @tilgovi : it looks like you made that addition - what's the best way forward with these tests using this new method? |
I would just check for |
The issue is that |
Oh of course I'm sorry. We could add a helper that does the assignment and wraps it in a try/catch. But that's pretty nasty too. |
Well, since this is already deprecated as a method, surely there's a better implementation we could use for unit testing purposes at least? And then just mark it as a known issue for anyone moving forward. |
Hmmm. I think I support simply removing this stuff from the adder, editor, and viewer. I don't think backward compatibility for these properties is of utmost importance. |
Great, but for the purposes of fixing the tests, I still need a bit more guidance. E.g., for the editor tests, here's what's currently calling
Which I assumed was just setting
But that fails with |
Oh wait -
A few new issues after getting that running in IE8, tracking those now. |
Yep. The editor property on the core is deprecated, but some plugins do
|
Relates to issues from openannotation#408
Circling back to the original thread that started this all, n1k0/backbone-events-standalone#10 has been accepted so |
Grabbing latest version which has IE8 patch. For openannotation#408
Is there anything more to do here? |
No, I think all of the original issues here have been resolved from #412 mostly. |
For Safari and IE8 only, my unit tests are throwing an error complaining about the "after each" hook, which is showing up in
legacy_ranges_spec.js
on line 575 - this maps tobackbone-events-standalone.js
line 127, the _.keys call is undefined. I'm assuming this is because there's an underscore dependency that's not being resolved - but it's strange that only these two browsers are complaining. I'm digging in a bit more.The text was updated successfully, but these errors were encountered: