-
Notifications
You must be signed in to change notification settings - Fork 3k
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
migrate testing from qunit to mocha #1531
Conversation
0837098
to
d99ffa9
Compare
I almost have the sauce job working - there is an issue with selenium on saucelabs on Opera 12 that I am speaking with their support about, and there are a few timeout issues with old IE. Also a few caniuse mismatches on a couple browsers. |
e3ebd4c
to
d5dd105
Compare
integrationTests: grunt.file.expand(['test/browser/integration/*.js']) | ||
} | ||
}), | ||
function(req, rep, next) { |
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.
Nit picky, but my brain had to pause for a second to understand what rep
was I think res
is more obvious.
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.
updated
d5dd105
to
8cafe38
Compare
@@ -0,0 +1,7 @@ | |||
describe('basics', function() { | |||
|
|||
it('createa a global modernizr object', function() { |
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.
createa a
-> creates a
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
8cafe38
to
3131f1a
Compare
len; | ||
|
||
if(!obj) { | ||
if (prop in elem.style) |
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.
Should we just stick to a single if convention an require curly braces all the time?
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.
yeah, most definitely. almost all of integration
was copied over fairly blindly.
I'll clean up what I see, and after this merges I will work on getting some jscs chocolate all up in our peanut butter
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.
updated everything I saw that was without braces
e1db29c
to
a2b8f88
Compare
expect(result).to.be(true); | ||
}); | ||
|
||
it('passses back a rule matching what we gave it', function(done) { |
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.
one too many s
's
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.
fixeddd
a2b8f88
to
fdf1b89
Compare
}); | ||
|
||
it('returns false when the event does not exists', function() { | ||
expect(isEventSupported('fart')).to.be(false); |
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.
I laughed at this way more than a grown adult should
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.
taint the only one ;)
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.
Yeah I noticed the consistency of fart throughout.
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.
trying to keep it profesh
fdf1b89
to
a23f898
Compare
expect(testPropsAll.calledOnce).to.be(true); | ||
}); | ||
|
||
it('uses looks up properties on an element when provided', function() { |
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 reads weird
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.
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.
perfect
a23f898
to
8c19a06
Compare
}); | ||
}); | ||
|
||
it('should stip out DOC comments when `uglify`ing', function(done) { |
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.
stip
-> strip
8c19a06
to
4e8e523
Compare
This is an amazing effort! |
4e8e523
to
d0af5c5
Compare
after(teardown); | ||
|
||
it('adds a class without a prefix', function(done) { | ||
|
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.
Actually I meant this one
d0af5c5
to
b3b0a60
Compare
after the static changes are made, are you 👍? |
yep 👍 |
ca5c033
to
ca3271e
Compare
05be028
to
da8c0cb
Compare
b540a53
to
31098e3
Compare
@ryanseddon wanna give it a quick once over? Static building is in now. You can see an example at patrickkettner.github.io/Modernizr/test/ Basically, on successful merge to master, the huge thanks to @alrra for showing me that and getting it working |
31098e3
to
e1b24a4
Compare
Yep looks good, so Also appveyor failed due to phantomjs timing out, is this a blocker for merging? |
Also seeing 4 tests failing on Fx35 |
No, it runs automatically on Travis. We don't have to manually do anything On Mon, Feb 23, 2015, 9:42 PM Ryan Seddon notifications@github.com wrote:
|
@ryanseddon what tests are you seeing failed on what system? I am all green on FF35 on Yosemite |
e9240bf
to
ad975cc
Compare
@ryanseddon able to reproduce, weird caching thing I guess. One issue is related to this, three are not. I was calling |
ad975cc
to
eaabd44
Compare
eaabd44
to
ca56efa
Compare
migrate testing from qunit to mocha
Magic. You two. |
No description provided.