Skip to content

Commit

Permalink
Add CDDL dfns types to extracts schema (#1751)
Browse files Browse the repository at this point in the history
Forgotten when adding support to CDDL types...
  • Loading branch information
tidoust authored Jan 20, 2025
1 parent 04da78b commit 5ebfdf2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schemas/browserlib/extract-dfns.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

"element", "element-state", "element-attr", "attr-value",

"cddl-module", "cddl-type", "cddl-parameter", "cddl-key", "cddl-value",

"scheme", "http-header",

"grammar", "abstract-op", "dfn"
Expand Down
8 changes: 8 additions & 0 deletions tests/extract-dfns.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,14 @@ When initialize(<var>newItem</var>) is called, the following steps are run:</p>`
htmlProse: "<dfn>Foo</dfn> enters a bar."
}]
},

{
title: "extracts CDDL definitions",
html: `<p>
<dfn id='foo' data-dfn-type='cddl-type'>Foo</dfn> is a CDDL type.
</p>`,
changesToBaseDfn: [{type: 'cddl-type'}]
},
];

describe("Test definition extraction", function () {
Expand Down

0 comments on commit 5ebfdf2

Please sign in to comment.