Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lexborisov/Modest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/myurl/data/relative_win.test')
-rw-r--r--test/myurl/data/relative_win.test77
1 files changed, 77 insertions, 0 deletions
diff --git a/test/myurl/data/relative_win.test b/test/myurl/data/relative_win.test
new file mode 100644
index 0000000..f1297c4
--- /dev/null
+++ b/test/myurl/data/relative_win.test
@@ -0,0 +1,77 @@
+type 3
+
+%URL:http://host/
+%BASE:file:///C:/foo
+%EXPECT:http://host/
+
+%URL:bar
+%BASE:file:///C:/foo
+%EXPECT:file:///C:/bar
+
+%URL:../../../bar.html
+%BASE:file:///C:/foo
+%EXPECT:file:///bar.html
+
+%URL:/../bar.html
+%BASE:file:///C:/foo
+%EXPECT:file:///C:/bar.html
+
+%URL:\\\\another\\path
+%BASE:http://host/a
+%EXPECT:http://another//path
+
+%URL://c:/foo
+%BASE:file:///C:/something
+%EXPECT:file:///c:/foo
+
+%URL://localhost/c:/foo
+%BASE:file:///C:/something
+%EXPECT:file:///c:/foo
+
+%URL:c:
+%BASE:file:///C:/foo
+%EXPECT:c:
+
+%URL:c:/foo
+%BASE:file:///C:/foo
+%EXPECT:c:/foo
+
+%URL:c:\\foo
+%BASE:http://host/a
+%EXPECT:c:\\foo
+
+%URL:/z:/bar
+%BASE:file:///C:/foo
+%EXPECT:file:///C:/z:/bar
+
+%URL:/bar
+%BASE:file:///C:/foo
+%EXPECT:file:///C:/bar
+
+%URL:/bar
+%BASE:file://localhost/C:/foo
+%EXPECT:file:///C:/bar
+
+%URL:/bar
+%BASE:file:///localhost/C:/foo
+%EXPECT:file:///bar
+
+%URL:/bar
+%BASE:file:///localhost/C:/foo
+%EXPECT:file:///bar
+
+%URL:bar
+%BASE:file:///localhost/C:/foo
+%EXPECT:file:///localhost/C:/bar
+
+%URL:/bar
+%BASE:file:///C:/foo/com/
+%EXPECT:file:///C:/bar
+
+%URL://somehost/path
+%BASE:file:///C:/something
+%EXPECT:file://somehost/path
+
+%URL:/\\//somehost/path
+%BASE:file:///C:/something
+%EXPECT:file://///somehost/path