Commit 2516ae4c authored by aroben@apple.com's avatar aroben@apple.com

Add Lion/Windows expected results for an Inspector test

The only difference from the cross-platform results is that the .js resources are now given
a MIME type of "text/plain".

This test reloads the page before dumping it in HAR format. In Lion (and Safari 5.1 on
Windows), CFNetwork no longer uses the file extension as a fallback when determining the
MIME type for 304 cached responses. This matches Chrome. See <rdar://problem/9313303>.

* platform/mac-snowleopard/http/tests/inspector/resource-har-conversion-expected.txt: Copied from http/tests/inspector/resource-har-conversion-expected.txt.
* platform/mac/http/tests/inspector/resource-har-conversion-expected.txt: Added.

git-svn-id: svn://svn.chromium.org/blink/trunk@93112 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 50d446d9
2011-08-16 Adam Roben <aroben@apple.com>
Add Lion/Windows expected results for an Inspector test
The only difference from the cross-platform results is that the .js resources are now given
a MIME type of "text/plain".
This test reloads the page before dumping it in HAR format. In Lion (and Safari 5.1 on
Windows), CFNetwork no longer uses the file extension as a fallback when determining the
MIME type for 304 cached responses. This matches Chrome. See <rdar://problem/9313303>.
* platform/mac-snowleopard/http/tests/inspector/resource-har-conversion-expected.txt: Copied from http/tests/inspector/resource-har-conversion-expected.txt.
* platform/mac/http/tests/inspector/resource-har-conversion-expected.txt: Added.
2011-08-16 Eric Carlson <eric.carlson@apple.com>
[REGRESSION] Media controls should always be enabled when scripting is disabled
Tests conversion of Inspector's resource representation into HAR format.
Page reloaded.
{
version : <string>
creator : {
name : "WebInspector"
version : <string>
}
pages : [
{
startedDateTime : <object>
id : <string>
title : ""
pageTimings : {
onContentLoad : <number>
onLoad : <number>
}
}
]
entries : [
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/inspector-test.js"
httpVersion : "HTTP/1.1"
headers : <object>
queryString : [
]
cookies : [
{
name : "a"
value : "b"
path : "/path"
domain : "example.com"
expires : null
httpOnly : false
secure : false
}
{
name : "a1"
value : "b1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
{
name : "c1"
value : "d1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
]
headersSize : <number>
bodySize : <number>
}
response : {
status : 304
statusText : "Not Modified"
httpVersion : "HTTP/1.1"
headers : <object>
cookies : [
{
name : "x"
value : "y"
path : "/path"
domain : "example.com"
expires : null
httpOnly : true
secure : true
}
{
name : "x1"
value : "y1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
{
name : "z2"
value : "y2"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
]
content : {
size : <number>
compression : <number>
mimeType : "application/x-javascript"
}
redirectURL : ""
headersSize : <number>
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
httpVersion : "HTTP/1.1"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : <number>
bodySize : <number>
}
response : {
status : 200
statusText : "OK"
httpVersion : "HTTP/1.1"
headers : <object>
cookies : [
]
content : {
size : <number>
compression : <number>
mimeType : "text/html"
}
redirectURL : ""
headersSize : <number>
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/resources-test.js"
httpVersion : "HTTP/1.1"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : <number>
bodySize : <number>
}
response : {
status : 304
statusText : "Not Modified"
httpVersion : "HTTP/1.1"
headers : <object>
cookies : [
]
content : {
size : <number>
compression : <number>
mimeType : "application/x-javascript"
}
redirectURL : ""
headersSize : <number>
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "POST"
url : "http://127.0.0.1:8000/inspector/resources/post-target.cgi"
httpVersion : "HTTP/1.1"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : <number>
bodySize : <number>
postData : {
mimeType : "text/xml"
text : "<xml></xml>"
}
}
response : {
status : 200
statusText : "OK"
httpVersion : "HTTP/1.1"
headers : <object>
cookies : [
]
content : {
size : <number>
compression : <number>
mimeType : "application/xml"
}
redirectURL : ""
headersSize : <number>
bodySize : <number>
}
cache : {
}
timings : <object>
}
]
}
Tests conversion of Inspector's resource representation into HAR format.
Page reloaded.
{
version : <string>
creator : {
name : "WebInspector"
version : <string>
}
pages : [
{
startedDateTime : <object>
id : <string>
title : ""
pageTimings : {
onContentLoad : <number>
onLoad : <number>
}
}
]
entries : [
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/inspector-test.js"
headers : <object>
queryString : [
]
cookies : [
{
name : "a"
value : "b"
path : "/path"
domain : "example.com"
expires : null
httpOnly : false
secure : false
}
{
name : "a1"
value : "b1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
{
name : "c1"
value : "d1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
]
headersSize : -1
bodySize : <number>
}
response : {
status : 304
statusText : "Not Modified"
headers : <object>
cookies : [
{
name : "x"
value : "y"
path : "/path"
domain : "example.com"
expires : null
httpOnly : true
secure : true
}
{
name : "x1"
value : "y1"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
{
name : "z2"
value : "y2"
path : undefined
domain : undefined
expires : null
httpOnly : false
secure : false
}
]
content : {
size : <number>
mimeType : "text/plain"
}
redirectURL : ""
headersSize : -1
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : -1
bodySize : <number>
}
response : {
status : 200
statusText : "OK"
headers : <object>
cookies : [
]
content : {
size : <number>
mimeType : "text/html"
}
redirectURL : ""
headersSize : -1
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "GET"
url : "http://127.0.0.1:8000/inspector/resources-test.js"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : -1
bodySize : <number>
}
response : {
status : 304
statusText : "Not Modified"
headers : <object>
cookies : [
]
content : {
size : <number>
mimeType : "text/plain"
}
redirectURL : ""
headersSize : -1
bodySize : <number>
}
cache : {
}
timings : <object>
}
{
pageref : "http://127.0.0.1:8000/inspector/resource-har-conversion.html"
startedDateTime : <object>
time : <number>
request : {
method : "POST"
url : "http://127.0.0.1:8000/inspector/resources/post-target.cgi"
headers : <object>
queryString : [
]
cookies : [
]
headersSize : -1
bodySize : <number>
postData : {
mimeType : "text/xml"
text : "<xml></xml>"
}
}
response : {
status : 200
statusText : "OK"
headers : <object>
cookies : [
]
content : {
size : <number>
mimeType : "application/xml"
}
redirectURL : ""
headersSize : -1
bodySize : <number>
}
cache : {
}
timings : <object>
}
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment