Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt

Issue 94893003: Support for json media types as (non-image) mime types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test via synthetic NetworkRequest Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt
diff --git a/LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt b/LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt
index 6df098fc95c5a6576d4fbbaa22ee07b94fc14779..f6e6531367dddf5afe076f990df2142269dffe30 100644
--- a/LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt
+++ b/LayoutTests/http/tests/inspector/network/async-xhr-json-mime-type-expected.txt
@@ -1,10 +1,30 @@
CONSOLE MESSAGE: line 6: XHR loaded: 1
-Tests XHR network resource content for asynchronous requests with application/json mime type. Bug 80684
+CONSOLE MESSAGE: line 6: XHR loaded: 2
+Tests that the content of resources with JSON MIME types can be accessed.
+When loaded by asynchronous XHR requests (Bug 80684) or within iframes/documents.
-http://127.0.0.1:8000/inspector/network/resources/json.php
-resource.type: xhr
-resource.content before requesting content: undefined
-resource.content after requesting content: {"number": "42"}
+Running: test1
+request.url: http://127.0.0.1:8000/inspector/network/resources/json.php?type=application%2Fjson
+request.type: xhr
+request.mimeType: application/json
+request.content: {"number": "42"}
+
+request.url: http://127.0.0.1:8000/inspector/network/resources/json.php?type=application%2Fjson
+request.type: document
+request.mimeType: application/json
+request.content: {"number": "42"}
+
+
+Running: test2
+request.url: http://127.0.0.1:8000/inspector/network/resources/json.php?type=application%2Fvnd.document%2Bjson
+request.type: xhr
+request.mimeType: application/vnd.document+json
+request.content: {"number": "42"}
+
+request.url: http://127.0.0.1:8000/inspector/network/resources/json.php?type=application%2Fvnd.document%2Bjson
+request.type: document
+request.mimeType: application/vnd.document+json
+request.content: {"number": "42"}

Powered by Google App Engine
This is Rietveld 408576698