add tests for issue 1889#6
Conversation
|
That's the patch to apply once the other PR is merge. --- a/tests/messages.json
+++ b/tests/messages.json
@@ -2404,7 +2404,7 @@
"html/parser/ufffe-charref-novalid.html": "Character reference expands to a non-character (U+fffe).",
"html/parser/unassigned-charref-novalid.html": "Character reference expands to a permanently unassigned code point.",
"issues/1889-importmap-0-not-json-novalid.html": "A script \u201cscript\u201d with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must have valid JSON content.",
- "issues/1889-importmap-1-empty-json-novalid.html": "A \u201cscript\u201d element with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must contain a JSON object.",
+ "issues/1889-importmap-1-empty-json-novalid.html": "A script \u201cscript\u201d with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must have valid JSON content.",
"issues/1889-importmap-2-forbidden-property-novalid.html": "A \u201cscript\u201d element with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must contain a JSON object with no properties other than \u201cimports\u201d and \u201cscopes\u201d.",
"issues/1889-importmap-imports-empty-key-novalid.html": "A specifier map defined in a \u201cimports\u201d property within the content of a \u201cscript\u201d element with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must only contain non-empty keys.",
"issues/1889-importmap-imports-no-json-object-in-property-novalid.html": "The value of the \u201cimports\u201d property within the content of a \u201cscript\u201d element with a \u201ctype\u201d attribute whose value is \u201cimportmap\u201d must be a JSON object.",
|
|
In trying to test this, I’m finding that I no longer get what’s expected when I run this: Specifically, I end up with with a However, when I switch my local validator clone to a commit prior to validator/validator@ff0c83e and rebuild it and try, I get a non-empty So, it seems like the unexpected empty Any clues about how to troubleshoot that and fix it? No Java error messages are emitted in my local shell environment when I end up with that empty Given that, I guess I most likely have some condition in my existing code that fails because it’s based on some assumption about the what the JSON data should look like — but it now looks different due to the underlying library change. |
eb501bd to
1f34a33
Compare
These tests work as expected when validator/validator@ff0c83e is not applied.
Once validator/validator#1890 is fixed, the message is slightly changed and has to be updated: