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

Fixes for 0.7 and add some basic tests #6

Merged
merged 5 commits into from
Aug 15, 2018
Merged

Conversation

tkoolen
Copy link
Contributor

@tkoolen tkoolen commented Aug 14, 2018

Also fixes #5.

@tkoolen
Copy link
Contributor Author

tkoolen commented Aug 14, 2018

Alright, tests are passing on 0.6 again, and tests also pass on 1.0 (without depwarns) with:

@codecov-io
Copy link

codecov-io commented Aug 14, 2018

Codecov Report

Merging #6 into master will increase coverage by 92.13%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master       #6       +/-   ##
===========================================
+ Coverage    2.59%   94.73%   +92.13%     
===========================================
  Files           4        3        -1     
  Lines          77       19       -58     
===========================================
+ Hits            2       18       +16     
+ Misses         75        1       -74
Impacted Files Coverage Δ
src/layout.jl 100% <ø> (+96.15%) ⬆️
src/CSSUtil.jl 83.33% <ø> (+74.24%) ⬆️
src/theme.jl 100% <100%> (+100%) ⬆️
src/markdown.jl

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b73d647...3ae9b11. Read the comment docs.

@@ -23,7 +23,7 @@ function flex(elem=nothing)
style(elem, "display"=>"flex")
end

function container(xs...)
function container(xs::AbstractVector)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was necessary because after the Node -> node change, this would otherwise create a PersistentVector{Vector{Node}} instead of a PersistentVector{Node}.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, this fixes #5.

Copy link

Choose a reason for hiding this comment

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

Nice! Probably worth adding a container(xs...) = container([xs...]) method as well: this function is exported so we should try to preserve the multi-argument method.

test/runtests.jl Outdated

# write your own tests here
@test 1 == 1
if isdefined(WebIO, :node) # TODO: remove once a new WebIO tag is in
Copy link

Choose a reason for hiding this comment

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

It just got tagged, could you update this?

@tkoolen
Copy link
Contributor Author

tkoolen commented Aug 15, 2018

All done. Should I disallow failures on 1.0 on Travis?

@piever
Copy link

piever commented Aug 15, 2018

Yes, if it's already passing on 1.0 we don't need to allow failures. Other than that, LGTM.

Btw, you JuliaRobotics guys really are heroes, you and Robin have fixed so many things lately in the web stack!

@piever
Copy link

piever commented Aug 15, 2018

And one last thing: the README also needs to be updated to node

@tkoolen
Copy link
Contributor Author

tkoolen commented Aug 15, 2018

Thanks!

Addressed comments.

Just for clarity: to get CI to pass on 1.0 we still need the WebIO tag, but after that tag CSSUtil is good on 1.0.

@piever piever merged commit b8aa497 into JuliaGizmos:master Aug 15, 2018
@tkoolen tkoolen deleted the tk/0.7 branch August 15, 2018 16:06
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.

node reorganization breaks CSSUtil
3 participants