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
Allow additional logo in CG spec #821
Conversation
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. js/w3c/templates/cgbg-headers.html, line 5 [r1] (raw file):
The showLogos function embeds the logos in a p element already. I don't think you need the P in here. Comments from Reviewable |
Please be sure to add a test or two. Let me know if you need a hand or anything. |
d2a0165
to
edc766a
Compare
edc766a
to
f1d3ee7
Compare
Have fixed @marcoscaceres considering this feature exists on other templates, where would you advise adding a test? |
@nickevansuk, looks like tests/spec/w3c/headers-spec.js would be the right place to add a test. It would just be a simple like: it("adds multiple logos to CG spec", function(done) {
var ops = makeStandardOps();
var newProps = {
specSatus: "CG-DRAFT",
logos: [{}, {}]
};
Object.assign(ops.config, newProps);
makeRSDoc(ops, function(doc) {
// Find the logos
// Please avoid using jQuery here - we are trying to stop relying on it
}).then(done);
}); |
@nickevansuk, in the test above, you want to check against both |
I'll add tests for this locally, but the change is tiny and just reuses existing infra. |
Allow for additional logos in the CG spec template
This change is