diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-07-22 17:23:06 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-07-22 17:23:06 +0200 |
commit | e3c86f7ff37de0af10b4165216da14bf0f91dc0b (patch) | |
tree | c7c90caf88900ff165b6dea6de0e55f5fc3c3be0 /tests | |
parent | f5b0a89729e85736a87aa310aafe11f5807f3428 (diff) | |
download | hydrilla-e3c86f7ff37de0af10b4165216da14bf0f91dc0b.tar.gz hydrilla-e3c86f7ff37de0af10b4165216da14bf0f91dc0b.zip |
add sample site resources
Diffstat (limited to 'tests')
-rw-r--r-- | tests/README.txt | 3 | ||||
-rw-r--r-- | tests/content/bhello/index.json | 9 | ||||
-rw-r--r-- | tests/content/pmyfsfhello/index.json | 5 | ||||
-rw-r--r-- | tests/content/sbad/index.json | 1 | ||||
-rw-r--r-- | tests/content/sgood/good.js | 1 | ||||
-rw-r--r-- | tests/content/sgood/index.json | 6 |
6 files changed, 25 insertions, 0 deletions
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" +} |