Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

First batch of Windows specs fixes - #11488

Merged
damieng merged 2 commits into
masterfrom
dg-fix-windows-specs
Apr 19, 2016
Merged

damieng merged 2 commits into
masterfrom
dg-fix-windows-specs

Conversation

@damieng

@damieng damieng commented Apr 15, 2016

Copy link
Copy Markdown
Contributor

This sorts out a number of specs issues but is not yet complete. Want to merge anyway as it's better than what we have right now.

@damieng
damieng force-pushed the dg-fix-windows-specs branch from f57a344 to 99e716f Compare April 15, 2016 18:25
Comment thread spec/text-editor-component-spec.js Outdated
expect(editor.getKoreanCharWidth()).toBeCloseTo(10, 0)
expect(editor.getDoubleWidthCharWidth()).toBe(10)
expect(editor.getHalfWidthCharWidth()).toBe(5)
expect(editor.getHalfWidthCharWidth()).toBeCloseTo(6, 5)

@as-cii as-cii Apr 18, 2016 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do these specs pass on Mac? If not, I think we could make this spec more general to test for differences before/after setting the font size, e.g.

let originalDefaultCharWidth = editor.getDefaultCharWidth()
component.setFontSize(10)
expect(editor.getDefaultCharWidth()).toBeLessThan(originalDefaultCharWidth)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I took a 👀 at https://travis-ci.org/atom/atom/jobs/123412388#L291-L303, and it seems like these specs are failing. What do you think about changing them to look similar to the solution proposed above?

@as-cii

as-cii commented Apr 18, 2016

Copy link
Copy Markdown
Contributor

Nice work here, @damieng. Left a couple of comments, but these changes look good so long as they make the Mac build 💚.

Out of curiosity, did you get a sense about what are the other "groups" of specs that still fail on Windows (e.g. UI, interaction with the browser process, environment, etc.)?

@damieng

damieng commented Apr 18, 2016

Copy link
Copy Markdown
Contributor Author

A large number of the failures are waiting to receive messages that are sent over the IPC communication mechanism. Once that's fixed I think we're going to be most of the way there. There is however still at least one spec that causes Atom to quit although I haven't found out which.

@as-cii

as-cii commented Apr 19, 2016

Copy link
Copy Markdown
Contributor

A large number of the failures are waiting to receive messages that are sent over the IPC communication mechanism. Once that's fixed I think we're going to be most of the way there. There is however still at least one spec that causes Atom to quit although I haven't found out which.

Sounds good. I think we can go ahead merging this after addressing the concerns above. 👍

Thanks, @damieng!

@damieng
damieng force-pushed the dg-fix-windows-specs branch from f54da13 to 64d17a9 Compare April 19, 2016 18:50
@damieng
damieng force-pushed the dg-fix-windows-specs branch from 64d17a9 to 1500381 Compare April 19, 2016 21:25
@damieng
damieng merged commit 42fef8c into master Apr 19, 2016
@damieng
damieng deleted the dg-fix-windows-specs branch April 21, 2016 23:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants