Skip to content

Commit

Permalink
Merge pull request #525 from w3c/shane-statusOverride
Browse files Browse the repository at this point in the history
Added support for overriding the publication status
  • Loading branch information
halindrome committed Feb 9, 2016
2 parents 8155ca0 + 7acda9b commit 91592c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/w3c/templates/sotd.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
{{#unless sotdAfterWGinfo}}
{{{sotdCustomParagraph}}}
{{/unless}}
{{#unless overrideStatus}}
<p>
This document was published by {{{wgHTML}}} as {{anOrA}} {{longStatus}}.
{{#if notYetRec}}
Expand Down Expand Up @@ -86,6 +87,7 @@
{{/unless}}
{{/if}}
</p>
{{/unless}}
{{#if implementationReportURI}}
<p>
Please see the Working Group's <a href='{{implementationReportURI}}'>implementation
Expand Down
18 changes: 18 additions & 0 deletions tests/spec/w3c/headers-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,23 @@ describe("W3C — Headers", function () {
expect($sotd.find("a[href='http://www.w3.org/TeamSubmission/']").length).toEqual(1);
});
});
// statusOverride
it("should allow status paragraph to be overridden", function () {
var conf = {
overrideStatus: true,
wg: "WGNAME",
wgURI: "WGURI",
wgPatentURI: "WGPATENT",
wgPublicList: "WGLIST",
};
loadWithConfig(conf, function ($ifr) {
var $sotd = $("#sotd", $ifr[0].contentDocument);
expect($sotd.find("p:contains('CUSTOM PARAGRAPH')").length).toEqual(1);
expect($sotd.find("a:contains('WGNAME')").length).toEqual(0);
expect($sotd.find("a:contains('WGLIST@w3.org')").length).toEqual(0);
expect($sotd.find("a:contains('subscribe')").length).toEqual(0);
expect($sotd.find("a:contains('disclosures')").attr("href")).toEqual("WGPATENT");
});
});
});
}());

0 comments on commit 91592c3

Please sign in to comment.