diff options
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" +} |