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
