From e3c86f7ff37de0af10b4165216da14bf0f91dc0b Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Thu, 22 Jul 2021 17:23:06 +0200 Subject: add sample site resources --- tests/README.txt | 3 +++ tests/content/bhello/index.json | 9 +++++++++ tests/content/pmyfsfhello/index.json | 5 +++++ tests/content/sbad/index.json | 1 + tests/content/sgood/good.js | 1 + tests/content/sgood/index.json | 6 ++++++ 6 files changed, 25 insertions(+) create mode 100644 tests/README.txt create mode 100644 tests/content/bhello/index.json create mode 100644 tests/content/pmyfsfhello/index.json create mode 100644 tests/content/sbad/index.json create mode 100644 tests/content/sgood/good.js create mode 100644 tests/content/sgood/index.json (limited to 'tests') diff --git a/tests/README.txt b/tests/README.txt new file mode 100644 index 0000000..e728f79 --- /dev/null +++ b/tests/README.txt @@ -0,0 +1,3 @@ +In the future this directory will contain test cases for Hydrilla. +For now there is only a directory of example contents directory with +some broken resources. diff --git a/tests/content/bhello/index.json b/tests/content/bhello/index.json new file mode 100644 index 0000000..510499c --- /dev/null +++ b/tests/content/bhello/index.json @@ -0,0 +1,9 @@ +{ +"type" : "bag", +"name" : "hello", +"components" : [ +["script", "good"], +["script", "absent"], +["bag", "absent"] +] +} diff --git a/tests/content/pmyfsfhello/index.json b/tests/content/pmyfsfhello/index.json new file mode 100644 index 0000000..c1685f5 --- /dev/null +++ b/tests/content/pmyfsfhello/index.json @@ -0,0 +1,5 @@ +{ +"type" : "page", +"pattern" : "https://my.fsf.org", +"payload" : ["bag", "hello"] +} diff --git a/tests/content/sbad/index.json b/tests/content/sbad/index.json new file mode 100644 index 0000000..3495c02 --- /dev/null +++ b/tests/content/sbad/index.json @@ -0,0 +1 @@ +{)'fwe;32{]} diff --git a/tests/content/sgood/good.js b/tests/content/sgood/good.js new file mode 100644 index 0000000..def45e3 --- /dev/null +++ b/tests/content/sgood/good.js @@ -0,0 +1 @@ +console.log("good hello!"); diff --git a/tests/content/sgood/index.json b/tests/content/sgood/index.json new file mode 100644 index 0000000..cd44109 --- /dev/null +++ b/tests/content/sgood/index.json @@ -0,0 +1,6 @@ +{ +"type" : "script", +"name" : "good", +"sha256" : "e4dbe4dba40e8bd159fb987b0f0cf2c243d7e6b9b9dc792e58dedf1fae38b0a1", +"location" : "good.js" +} -- cgit v1.2.3