From 5ebfdf2f64a1faab8558f842e2f84436e54def3f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Daoust?=
Date: Mon, 20 Jan 2025 11:26:38 +0100
Subject: [PATCH] Add CDDL dfns types to extracts schema (#1751)
Forgotten when adding support to CDDL types...
---
schemas/browserlib/extract-dfns.json | 2 ++
tests/extract-dfns.js | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/schemas/browserlib/extract-dfns.json b/schemas/browserlib/extract-dfns.json
index 47b0deba..c219e639 100644
--- a/schemas/browserlib/extract-dfns.json
+++ b/schemas/browserlib/extract-dfns.json
@@ -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"
diff --git a/tests/extract-dfns.js b/tests/extract-dfns.js
index 47c6acdf..1e80644a 100644
--- a/tests/extract-dfns.js
+++ b/tests/extract-dfns.js
@@ -726,6 +726,14 @@ When initialize(newItem) is called, the following steps are run:
`
htmlProse: "Foo enters a bar."
}]
},
+
+ {
+ title: "extracts CDDL definitions",
+ html: `
+ Foo is a CDDL type.
+
`,
+ changesToBaseDfn: [{type: 'cddl-type'}]
+ },
];
describe("Test definition extraction", function () {