blob: 03febf9250545f9956420ffcf8fb90a371c45748 [file] [log] [blame]
Tests name() and path() methods of NetworkRequest.
Dumping request name and path for url: http://www.example.com/foo/bar/baz?key=value
name = baz?key=value
path = www.example.com/foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/foo/bar/?key=value
name = ?key=value
path = www.example.com/foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/foo/bar/baz
name = baz
path = www.example.com/foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/foo/bar/
name = bar/
path = www.example.com/foo
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/baz?key=value
name = baz?key=value
path = www.example.com
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/?key=value
name = ?key=value
path = www.example.com
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/baz
name = baz
path = www.example.com
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://www.example.com/
name = www.example.com
path =
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/foo/bar/baz?key=value
name = baz?key=value
path = /foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/foo/bar/?key=value
name = ?key=value
path = /foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/foo/bar/baz
name = baz
path = /foo/bar
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/foo/bar/
name = bar/
path = /foo
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/baz?key=value
name = baz?key=value
path =
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/?key=value
name = ?key=value
path =
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/baz
name = baz
path =
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/
name = 127.0.0.1
path =
targetUrl = http://127.0.0.1/aFolder/aTest.html
Dumping request name and path for url: http://127.0.0.1/
name = 127.0.0.1
path =
targetUrl = data:text/html,<html><body><img src="data:,foobar" /></body></html>
Dumping request name and path for url: data:text/html,<html><body><img src="data:,foobar" /></body></html>
name = data:text/html,<htm…
path =
targetUrl = data:text/html,<html><body><img src="data:,foobar" /></body></html>
Dumping request name and path for url: data:text/html,<html><body><img src="data:,foobar" /></body></html>
name = data:text/html,<htm…
path =
targetUrl = http://127.0.0.1/