Skip to content
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 server testing in node 0.10, 0.12 and iojs #2729

Merged
merged 2 commits into from Aug 23, 2015

Conversation

SergioCrisostomo
Copy link
Member

CI testing of the server build (closes #2700).

Had to add some xit : it in the specs because they will now run in node environment and document and window are not there.

Added also some Travis optimizing and Safari 8 testing for Browser specs.

To run server specs locally we can use grunt server.

Tested all this in Travis and got green for Browser and node tests.

@@ -610,7 +610,7 @@ describe('instanceOf', function(){
});

// todo(ibolmo)
if (window.Element && Element.set) it("should return true for Element instances", function(){
if (typeof window != 'undefined' && window.Element && Element.set) it("should return true for Element instances", function(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the typeof window check in the dit definition?

@SergioCrisostomo
Copy link
Member Author

@arian thanks for reviewing.

Updated removing unused requirejs dependency that was there since old days and fixed other things that @arian pointed out.

@SergioCrisostomo SergioCrisostomo added this to the 1.5.2 milestone Aug 15, 2015
@SergioCrisostomo
Copy link
Member Author

@arian (or anyone else) can we merge this?

var div = document.createElement('div');
expect(typeOf(div)).toEqual('element');
});

// todo(ibolmo)
if (window.Elements) it("should return 'elements' for Elements", function(){
if (typeof window != 'undefined' && window.Elements) dit("should return 'elements' for Elements", function(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this if included in the dit function?

arian pushed a commit that referenced this pull request Aug 23, 2015
add server testing in node 0.10, 0.12 and iojs
@arian arian merged commit cb62f08 into mootools:master Aug 23, 2015
@SergioCrisostomo SergioCrisostomo deleted the server-build-specs branch December 1, 2015 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI testing of the server build
2 participants