netwerk/test/urlparse_win.dat
author Mike Hommey <mh+mozilla@glandium.org>
Mon, 11 Jun 2012 08:23:29 +0200
changeset 101676 c7e76fae10e569921c485dcf6033a4b80436344c
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
Backout changeset a78601d88586 (bug 759115) because of B2G bustage

# Any blank lines and those beginning with # are comments and 
# ignored. To add additional test cases that could potentially 
# break URL parsing in mozilla add the input URL on a new line 
# and follow it with the expected output for the standard URL 
# parser and one line for the case when the URL is really 
# created. Then run urltest with the -std option and without it 
# on this file and hopefully the expected output should match 
# the one from the program. 
#   - Gagan Saksena 03/28/00
# 
# This version is specifically for PC platforms like Windows or OS/2.
# It has testcases for the file protocol targeting typical 
# drive:/path filesystems
#

# testing different versions of file urls
file:c:
file,,,,-1,/,c:,,,,,file:///c%3A
file,,,,-1,/c:/,,,,,,file:///c:/

file:c:/
file,,,,-1,/c:/,,,,,,file:///c:/
file,,,,-1,/c:/,,,,,,file:///c:/

file:/c:/
file,,,,-1,/c:/,,,,,,file:///c:/
file,,,,-1,/c:/,,,,,,file:///c:/

file://c:/
file,,,,-1,/c:/,,,,,,file:///c:/
file,,,,-1,/c:/,,,,,,file:///c:/

file:///c:/
file,,,,-1,/c:/,,,,,,file:///c:/
file,,,,-1,/c:/,,,,,,file:///c:/

# testing UNC filepaths
file:server/path
file,,,server,-1,/,path,,,,,file://server/path
file,,,,-1,///server/,path,,,,,file://///server/path

file:/server/path
file,,,,-1,/server/,path,,,,,file:///server/path
file,,,,-1,///server/,path,,,,,file://///server/path

file://server/path
file,,,server,-1,/,path,,,,,file://server/path
file,,,server,-1,///,path,,,,,file://server///path

file:///server/path
file,,,,-1,/server/,path,,,,,file:///server/path
file,,,,-1,///server/,path,,,,,file://///server/path

file:////server/path
file,,,,-1,//server/,path,,,,,file:////server/path
file,,,,-1,///server/,path,,,,,file://///server/path

file://///server/path
file,,,,-1,///server/,path,,,,,file://///server/path
file,,,,-1,///server/,path,,,,,file://///server/path