-
Notifications
You must be signed in to change notification settings - Fork 512
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
Spec update #2734
Comments
I read thru the changes and found nothing strange/wrong. Nice job! Thank you for the time you put into this! |
Very nice! A few things:
|
The specs where there's now I did just realise that if they were enabled, they'd fail now, because Mocha uses arguments to
That's a good point. I kind of assumed they made it work. The best workaround is probably to use replace It should be fine for |
This is one of the reasons I initially used https://github.com/Automattic/expect.js (and kept using it since, I think chai wasn't really a thing then, the other choice was 'should.js'). |
Chai seems a very complete solution, including |
After looking at things, they clearly state they don't support IE<9, so Chai is not an option. I replaced it with the library Arian suggested, expect.js. [fixed] |
👍 |
New issues encountered:
Latest test results: |
Nice work! I am ok with merging these to master branch. |
Yes, what I changed in
That's a good point, I'll change that and hopefully they indeed don't break within the major version. :-D [fixed] https://travis-ci.org/timwienk/mootools-core/builds/82406894 |
Okay, so everything seems to work. Now for the last two questions:
|
|
I say same as @arian. |
I decided to update our specs a bit, for a number of reasons:
When I started doing this, I didn't know how much work it'd be, and luckily it wasn't too bad. The problem is, though, that it'll look like a lot and it'll be a hell to review because of the sheer number of changes.
To be able to review it I split it up in parts, and I would like to suggest to review it by part, we could even merge it in by part. I didn't create Pull Requests, because every next Pull Request would include the changes from the previous Pull Request since they're not merged at this point. When reviewed, I guess they could be merged in, and I could actually create a Pull Request for every next one to make that easier.
So, the parts:
$$
spec actually turned out to be broken after adding actual elements to select.Tests/Utilities
and includedsyn
andsinon
packages instead, addedTests/Plugins/syn
to usesyn
in karma. Last commit re-adds a local version ofsyn
(hopefully temporarily).At the point of any of these commit the specs should still run fine and turn all green, I made the changes step-by-step to not accidentally change behaviours. (In fact, if we want to stick with Jasmine, we could decide to stop after part 5, or even after the expect.js commit of part 6.) The only exception to this is the Chai commit of part 6, everything runs fine, but Chai doesn't support IE older than 9, keeping the commit for history and reasoning, though.
In case it's easier (it probably is), I should be in IRC most of the time for comments or anything related.
Note for later:
There are some things I didn't touch, like the test "bootstrapping". I think after these changes, it might be a good idea to look at the
Gruntfile.js
and files in theTests
directory. It looks like these things could be restructured to be easier to understand.The text was updated successfully, but these errors were encountered: