#35 First pass at unit tests

This commit is contained in:
Pierre-Olivier Latour
2014-04-10 20:22:44 -07:00
parent 7b51023373
commit 1b6e4f6491
32 changed files with 621 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 221
Content-Type: text/html; charset=utf-8
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:22 GMT
<!DOCTYPE html>
<html><head><meta charset="utf-8"></head><body>
<ul>
<li><a href="Copy.txt">Copy.txt</a></li>
<li><a href="images/">images/</a></li>
<li><a href="PDF%20Reports/">PDF Reports/</a></li>
</ul>
</body></html>
+9
View File
@@ -0,0 +1,9 @@
GET / HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
+14
View File
@@ -0,0 +1,14 @@
HTTP/1.1 200 OK
Connection: Close
Server: GCDWebServer
Content-Type: text/plain
Last-Modified: Thu, 10 Apr 2014 11:10:14 GMT
Date: Fri, 11 Apr 2014 02:42:24 GMT
Accept-Ranges: bytes
Content-Length: 271
Cache-Control: no-cache
Etag: 73212403/1397128214/0
For the colorful.
Color is more than just a hue. It expresses a feeling. Makes a statement. Declares an allegiance. Color reveals your personality. iPhone 5c, in five anything-but-shy colors, does just that. Its not just for lovers of color. Its for the colorful.
+10
View File
@@ -0,0 +1,10 @@
GET /Copy.txt HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
+15
View File
@@ -0,0 +1,15 @@
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 218
Content-Type: text/html; charset=utf-8
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:27 GMT
<!DOCTYPE html>
<html><head><meta charset="utf-8"></head><body>
<ul>
<li><a href="capable_green_ipad_l.png">capable_green_ipad_l.png</a></li>
<li><a href="hero_mba_11.jpg">hero_mba_11.jpg</a></li>
</ul>
</body></html>
+10
View File
@@ -0,0 +1,10 @@
GET /images/ HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
GET /images/capable_green_ipad_l.png HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/images/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
GET /images/hero_mba_11.jpg HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/images/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
+7
View File
@@ -0,0 +1,7 @@
HTTP/1.1 304 Not Modified
Last-Modified: Thu, 10 Apr 2014 21:46:56 GMT
Etag: 73209474/1397166416/0
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:34 GMT
+12
View File
@@ -0,0 +1,12 @@
GET /images/capable_green_ipad_l.png HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/images/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
If-None-Match: 73209474/1397166416/0
If-Modified-Since: Thu, 10 Apr 2014 21:46:56 GMT
+7
View File
@@ -0,0 +1,7 @@
HTTP/1.1 304 Not Modified
Last-Modified: Thu, 10 Apr 2014 21:51:14 GMT
Etag: 73212154/1397166674/0
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:37 GMT
+12
View File
@@ -0,0 +1,12 @@
GET /images/hero_mba_11.jpg HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/images/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
If-None-Match: 73212154/1397166674/0
If-Modified-Since: Thu, 10 Apr 2014 21:51:14 GMT
+14
View File
@@ -0,0 +1,14 @@
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 199
Content-Type: text/html; charset=utf-8
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:40 GMT
<!DOCTYPE html>
<html><head><meta charset="utf-8"></head><body>
<ul>
<li><a href="Apple%20Economic%20Impact%20on%20Cupertino.pdf">Apple Economic Impact on Cupertino.pdf</a></li>
</ul>
</body></html>
+10
View File
@@ -0,0 +1,10 @@
GET /PDF%20Reports/ HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
GET /PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
DNT: 1
Referer: http://localhost:8080/PDF%20Reports/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
+7
View File
@@ -0,0 +1,7 @@
HTTP/1.1 304 Not Modified
Last-Modified: Wed, 01 May 2013 12:01:13 GMT
Etag: 73212107/1367409673/0
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:42 GMT
+13
View File
@@ -0,0 +1,13 @@
GET /PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf HTTP/1.1
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
Accept: */*
DNT: 1
Referer: http://localhost:8080/PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Range: bytes=0-32767
If-None-Match: 73212107/1367409673/0
If-Modified-Since: Wed, 01 May 2013 12:01:13 GMT
+7
View File
@@ -0,0 +1,7 @@
HTTP/1.1 304 Not Modified
Last-Modified: Wed, 01 May 2013 12:01:13 GMT
Etag: 73212107/1367409673/0
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:42:42 GMT
+13
View File
@@ -0,0 +1,13 @@
GET /PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf HTTP/1.1
Host: localhost:8080
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36
Accept: */*
DNT: 1
Referer: http://localhost:8080/PDF%20Reports/Apple%20Economic%20Impact%20on%20Cupertino.pdf
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,fr;q=0.6
Range: bytes=32768-181951
If-None-Match: 73212107/1367409673/0
If-Modified-Since: Wed, 01 May 2013 12:01:13 GMT
+8
View File
@@ -0,0 +1,8 @@
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 221
Content-Type: text/html; charset=utf-8
Connection: Close
Server: GCDWebServer
Date: Fri, 11 Apr 2014 02:43:00 GMT
+5
View File
@@ -0,0 +1,5 @@
HEAD / HTTP/1.1
User-Agent: curl/7.30.0
Host: localhost:8080
Accept: */*