Title: [93112] trunk/LayoutTests
- Revision
- 93112
- Author
- aro...@apple.com
- Date
- 2011-08-16 09:28:24 -0700 (Tue, 16 Aug 2011)
Log Message
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.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (93111 => 93112)
--- trunk/LayoutTests/ChangeLog 2011-08-16 16:27:54 UTC (rev 93111)
+++ trunk/LayoutTests/ChangeLog 2011-08-16 16:28:24 UTC (rev 93112)
@@ -1,3 +1,17 @@
+2011-08-16 Adam Roben <aro...@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.carl...@apple.com>
[REGRESSION] Media controls should always be enabled when scripting is disabled
Added: trunk/LayoutTests/platform/mac/http/tests/inspector/resource-har-conversion-expected.txt (0 => 93112)
--- trunk/LayoutTests/platform/mac/http/tests/inspector/resource-har-conversion-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac/http/tests/inspector/resource-har-conversion-expected.txt 2011-08-16 16:28:24 UTC (rev 93112)
@@ -0,0 +1,214 @@
+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>
+ }
+ ]
+}
+
Added: trunk/LayoutTests/platform/mac-snowleopard/http/tests/inspector/resource-har-conversion-expected.txt (0 => 93112)
--- trunk/LayoutTests/platform/mac-snowleopard/http/tests/inspector/resource-har-conversion-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-snowleopard/http/tests/inspector/resource-har-conversion-expected.txt 2011-08-16 16:28:24 UTC (rev 93112)
@@ -0,0 +1,226 @@
+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>
+ }
+ ]
+}
+
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes