Comments (10)
Thanks! I hope that it's enought
from percy.
Yes! It 's working !
from percy.
Can i take it ?
from percy.
Absolutely!
Are the above details enough?
If not I'd be more than happy to go into more detail or answer any questions that you might have!
from percy.
The docs is still update ? I have the last version of the repo but tests fails when i run ./test.sh
from percy.
Tests are currently failing for a couple of cases due to some recent changes - I'll get that fixed
In the meantime you can use cargo test -p html-macro-test
to verify that the html macro still works as expected.
Let me know if you have any issues there!
from percy.
i added a test like this, and strangely it hasn't failed
fn closure_with_no_parmas() {
HtmlMacroTest {
desc: "No parameter defined for the closure",
generated: html! {
<div onclick=||{}></div>
},
expected: html! {<div></div>},
}
.test();
}
I'm missing something ?
from percy.
Ah sorry I misled you!!!
In non wasm32 targets the html macro completely ignores closures.
percy/crates/html-macro/src/parser/open_tag.rs
Lines 39 to 47 in edd4122
So we need to test this using our in browser tests
If you branch off of the latest master you'll see that I moved your test to closures.rs
here -> 404dd70
Very sorry for that! Let me know if there are any other stumbling blocks
from percy.
I want to run closure' s tests but this command does'nt work wasm-pack test crates/virtual-dom-rs --chrome --headless -- --test closures
from percy.
Ahhh I'm using functionality that hasn't been released by wasm-pack
yet.
Could you try
cargo install -f --git https://github.com/rustwasm/wasm-pack
?
Then you should be able to run the tests
from percy.
Related Issues (20)
- How alive is this project? HOT 3
- Use request_animation_frame from rust instead of Global Js call for update view HOT 3
- Free hosting? HOT 5
- Sub-routes not working? HOT 1
- Bash files in examples to rust-script? HOT 5
- Curly braces for value interpolation HOT 1
- Implement Performance Metrics HOT 2
- Implement a Formatting Tool HOT 2
- Consider Pure JS Transpilation HOT 2
- FYI: branding/naming clash HOT 1
- Crate renames HOT 1
- Docs: Broken CSS HOT 1
- Broken tests in html-macro 0.7.0 and 0.7.1 HOT 4
- Building nojs-first applications (and some thoughts about an isomorphic data layer) HOT 1
- Free Hosting for Demos HOT 1
- Allow Support for multiple parameters in `JSX` syntax HOT 4
- Spaces removed when isomorphic app is hydrated HOT 3
- File referred to in documentation doesn't exist
- Fix parenthesized blocks in html macro
- Panic happened in /allocator/free_list.rs that `new_page == 0` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from percy.