-
Notifications
You must be signed in to change notification settings - Fork 29
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
Insert assertion ID string to rendered documents #318
Comments
Ah, there are other assertion classes in tables. Update the script, but it does not display cleanly... <script>
// Prepend 'ASSERTION "assertion-id":' to assertion sentence
document.addEventListener('DOMContentLoaded', () => {
// let ReSpec do syntax highlighting first
document.respec.ready.then(() => {
if (location.search == "?testfest") {
document.querySelectorAll(".rfc2119-assertion").forEach(n => {
let c = document.createElement("code")
c.append("ASSERTION \""+n.id+"\":");
c.style.color="blue";
n.prepend(c);
});
document.querySelectorAll(".rfc2119-default-assertion").forEach(n => {
let c = document.createElement("code")
c.append("ASSERTION \""+n.id+"\":");
c.style.color="blue";
n.firstElementChild.prepend(c);
});
document.querySelectorAll(".rfc2119-table-assertion").forEach(n => {
let c = document.createElement("code")
c.append("ASSERTION \""+n.id+"\":");
c.style.color="blue";
n.firstElementChild.prepend(c);
});
}
});
});
</script> |
This is actually pretty cool and would help a lot with testing. I agree that it does not look good but it is better than nothing and totally ok if we do it only during testing |
the implementation report does include all the assertions AND links into the document so you can see context. Unfortunately you have to download report.html (for Discovery) and report11.html (for TD) and render it locally to see the links. |
I think this is not needed anymore right? The TD spec has a link to it and it is rendered at https://w3c.github.io/wot-thing-description/testing/report11.html |
@mmccool @egekorkan ,
In Testfest instruction:
If you embed the script below to spec document, the assertion ID will be prepended as a string in the rendered HTML only when the query string
?testfest
is added. How about embedding this script in each spec document to make it easier to create themanual.csv
?Before (or no
?testfest
query string):After:
The text was updated successfully, but these errors were encountered: