summaryrefslogtreecommitdiff
path: root/tests/url
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-07-29 13:45:58 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-07-29 13:45:58 +0200
commit06463f4865672e1faca31b740e0ea51720edff43 (patch)
treef948ba189afdcaae5454aff1b1ac7b4122f33d96 /tests/url
parent4f24f53b839a8f6bcd0e0bcb3ffaa34b74a85cb0 (diff)
downloadcrawler-06463f4865672e1faca31b740e0ea51720edff43.tar.gz
crawler-06463f4865672e1faca31b740e0ea51720edff43.tar.bz2
-
Diffstat (limited to 'tests/url')
-rw-r--r--tests/url/GNUmakefile1
-rw-r--r--tests/url/test100.MUST7
-rw-r--r--tests/url/test101.MUST7
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/url/GNUmakefile b/tests/url/GNUmakefile
index be50549..2fa56d9 100644
--- a/tests/url/GNUmakefile
+++ b/tests/url/GNUmakefile
@@ -34,3 +34,4 @@ local_test:
@-./exec_test test1 test5 "parse normal URL with default port" http://www.andreasbaumann.cc:80/index.html
@-./exec_test test1 test6 "parse normal URL with non-standard port" http://www.andreasbaumann.cc:8080/index.html
@-./exec_test test2 test100 "normalize a relative URL" http://www.andreasbaumann.cc/index.html /software.html
+ @-./exec_test test2 test101 "absolute URL in HTML content" http://www.andreasbaumann.cc/index.html http://www.yahoo.com/page.html
diff --git a/tests/url/test100.MUST b/tests/url/test100.MUST
index e69de29..40fb968 100644
--- a/tests/url/test100.MUST
+++ b/tests/url/test100.MUST
@@ -0,0 +1,7 @@
+protocol: http
+host: www.andreasbaumann.cc
+port: 80
+path: /software.html
+query:
+fragment:
+URL: http://www.andreasbaumann.cc/software.html
diff --git a/tests/url/test101.MUST b/tests/url/test101.MUST
new file mode 100644
index 0000000..b4c5eca
--- /dev/null
+++ b/tests/url/test101.MUST
@@ -0,0 +1,7 @@
+protocol: http
+host: www.yahoo.com
+port: 80
+path: /page.html
+query:
+fragment:
+URL: http://www.yahoo.com/page.html