From fa1d323f59347a7dc7c3d59a93a74debf8fbf8d9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 23 Nov 2017 10:13:58 -0500 Subject: [PATCH] add namespace tests --- .../samples/namespace-invalid-unguessable/errors.json | 8 ++++++++ .../samples/namespace-invalid-unguessable/input.html | 5 +++++ test/validator/samples/namespace-non-literal/errors.json | 8 ++++++++ test/validator/samples/namespace-non-literal/input.html | 7 +++++++ 4 files changed, 28 insertions(+) create mode 100644 test/validator/samples/namespace-invalid-unguessable/errors.json create mode 100644 test/validator/samples/namespace-invalid-unguessable/input.html create mode 100644 test/validator/samples/namespace-non-literal/errors.json create mode 100644 test/validator/samples/namespace-non-literal/input.html diff --git a/test/validator/samples/namespace-invalid-unguessable/errors.json b/test/validator/samples/namespace-invalid-unguessable/errors.json new file mode 100644 index 0000000000..5c5d55ad13 --- /dev/null +++ b/test/validator/samples/namespace-invalid-unguessable/errors.json @@ -0,0 +1,8 @@ +[{ + "message": "Invalid namespace 'lol'", + "pos": 29, + "loc": { + "line": 3, + "column": 2 + } +}] diff --git a/test/validator/samples/namespace-invalid-unguessable/input.html b/test/validator/samples/namespace-invalid-unguessable/input.html new file mode 100644 index 0000000000..26494e2112 --- /dev/null +++ b/test/validator/samples/namespace-invalid-unguessable/input.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/test/validator/samples/namespace-non-literal/errors.json b/test/validator/samples/namespace-non-literal/errors.json new file mode 100644 index 0000000000..75e1bd7712 --- /dev/null +++ b/test/validator/samples/namespace-non-literal/errors.json @@ -0,0 +1,8 @@ +[{ + "message": "The 'namespace' property must be a string literal representing a valid namespace", + "pos": 79, + "loc": { + "line": 5, + "column": 2 + } +}] diff --git a/test/validator/samples/namespace-non-literal/input.html b/test/validator/samples/namespace-non-literal/input.html new file mode 100644 index 0000000000..41bb790c37 --- /dev/null +++ b/test/validator/samples/namespace-non-literal/input.html @@ -0,0 +1,7 @@ + \ No newline at end of file