-
Notifications
You must be signed in to change notification settings - Fork 17
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
Test Suite for Source Maps #15
Comments
i think we can reuse this for discussions and to gather info needed around conformance tests. Are there more ideas around requirements or potential tests? |
In addition to what Romulo mentions above, the following tests seem possible to me:
|
rust-analyzer has an interesting approach for how to associate a lookup to a definition: struct Futurable;
impl core::future::IntoFuture for Futurable {
type IntoFuture = MyFut;
}
struct MyFut;
impl core::future::Future for MyFut {
type Output = ();
fn poll(
//^^^^
self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>
) -> std::task::Poll<Self::Output>
{
()
}
}
fn f() {
Futurable.await$0;
} Notice two points, the A similar pattern could be useful for testing JS source maps. Eg a minifier could support a "keep a |
this should be broken down to smaller tasks so we can get it out of the door in more like an iterative approach. |
Add IPR check CI job
Just linking to @takikawa's current work on consumer testing https://github.com/takikawa/source-map-tests |
This seems to be progressing nicely. Going to close this issue. |
Based on previous meeting discussion about SM and testing, would be nice to have an analogue to WPT or test262 for this use case.
"requirements" or "potential tests"
The text was updated successfully, but these errors were encountered: