diff options
author | Omar Rizwan <omar@omar.website> | 2021-03-14 21:33:23 -0700 |
---|---|---|
committer | Omar Rizwan <omar@omar.website> | 2021-03-14 21:33:23 -0700 |
commit | 11cf48259a987ab2d48355f14b3f11d897d6c8fa (patch) | |
tree | b47087d15e0f6bb7d4c13e782bf195376cb530db /test/test-resources | |
parent | 00caad5228ef9793538a119470b203df3f3e04c1 (diff) | |
download | TabFS-11cf48259a987ab2d48355f14b3f11d897d6c8fa.tar.gz TabFS-11cf48259a987ab2d48355f14b3f11d897d6c8fa.zip |
test: separate tests from background.js, clean up and document a bit
also makes the test more lenient (subset instead of equality for tab
entries)
Diffstat (limited to 'test/test-resources')
-rw-r--r-- | test/test-resources/test-page.html | 11 | ||||
-rw-r--r-- | test/test-resources/test-script.js | 1 | ||||
-rw-r--r-- | test/test-resources/test-textarea.html | 10 |
3 files changed, 22 insertions, 0 deletions
diff --git a/test/test-resources/test-page.html b/test/test-resources/test-page.html new file mode 100644 index 0000000..5ae2887 --- /dev/null +++ b/test/test-resources/test-page.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Title of Test Page</title> + <script src="test-script.js"></script> + </head> + <body> + Body Text of Test Page + </body> +</html> diff --git a/test/test-resources/test-script.js b/test/test-resources/test-script.js new file mode 100644 index 0000000..a23567e --- /dev/null +++ b/test/test-resources/test-script.js @@ -0,0 +1 @@ +console.log('hello from test script!'); diff --git a/test/test-resources/test-textarea.html b/test/test-resources/test-textarea.html new file mode 100644 index 0000000..9c460fa --- /dev/null +++ b/test/test-resources/test-textarea.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Textarea Test Page</title> + </head> + <body> + <textarea id="ta">initial text</textarea> + </body> +</html> |