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

Unified Diff: LayoutTests/http/tests/inspector/console-fetch-logging-expected.txt

Issue 1259393002: DevTools: add support for logging fetch requests when XHR logging is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed the test Created 5 years, 5 months 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/console-fetch-logging-expected.txt
diff --git a/LayoutTests/http/tests/inspector/console-fetch-logging-expected.txt b/LayoutTests/http/tests/inspector/console-fetch-logging-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2216430e66170226de492a81185cf52521b03863
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/console-fetch-logging-expected.txt
@@ -0,0 +1,28 @@
+CONSOLE MESSAGE: line 9: sending a GET request to resources/xhr-exists.html
+CONSOLE MESSAGE: line 9: sending a GET request to resources/xhr-does-not-exist.html
+CONSOLE MESSAGE: line 9: sending a POST request to resources/post-target.cgi
+CONSOLE MESSAGE: line 9: sending a GET request to http://localhost:8000/inspector/resources/xhr-exists.html
+CONSOLE ERROR: Fetch API cannot load http://localhost:8000/inspector/resources/xhr-exists.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+CONSOLE MESSAGE: line 9: sending a GET request to resources/xhr-exists.html
+CONSOLE MESSAGE: line 9: sending a GET request to resources/xhr-does-not-exist.html
+CONSOLE MESSAGE: line 9: sending a POST request to resources/post-target.cgi
+CONSOLE MESSAGE: line 9: sending a GET request to http://localhost:8000/inspector/resources/xhr-exists.html
+CONSOLE ERROR: Fetch API cannot load http://localhost:8000/inspector/resources/xhr-exists.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+Tests that fetch logging works when XMLHttpRequest Logging is Enabled and doesn't show logs when it is Disabled.
+
+console-fetch-logging.html:4 sending a GET request to resources/xhr-exists.html
+network-test.js:48 Fetch complete: GET "http://127.0.0.1:8000/inspector/resources/xhr-exists.html".makeFetch @ network-test.js:48requestHelper @ console-fetch-logging.html:11step1 @ console-fetch-logging.html:21makeRequests @ console-fetch-logging.html:16(anonymous function) @ VM:1(anonymous function) @ VM:11(anonymous function) @ VM:16
+console-fetch-logging.html:4 sending a GET request to resources/xhr-does-not-exist.html
+network-test.js:48 GET http://127.0.0.1:8000/inspector/resources/xhr-does-not-exist.html 404 (Not Found)makeFetch @ network-test.js:48requestHelper @ console-fetch-logging.html:11step2 @ console-fetch-logging.html:27
+network-test.js:48 Fetch complete: GET "http://127.0.0.1:8000/inspector/resources/xhr-does-not-exist.html".makeFetch @ network-test.js:48requestHelper @ console-fetch-logging.html:11step2 @ console-fetch-logging.html:27
+console-fetch-logging.html:4 sending a POST request to resources/post-target.cgi
+network-test.js:48 Fetch complete: POST "http://127.0.0.1:8000/inspector/resources/post-target.cgi".makeFetch @ network-test.js:48requestHelper @ console-fetch-logging.html:11step3 @ console-fetch-logging.html:33
+console-fetch-logging.html:4 sending a GET request to http://localhost:8000/inspector/resources/xhr-exists.html
+console-fetch-logging.html:1 Fetch API cannot load http://localhost:8000/inspector/resources/xhr-exists.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+console-fetch-logging.html:4 sending a GET request to resources/xhr-exists.html
+console-fetch-logging.html:4 sending a GET request to resources/xhr-does-not-exist.html
+network-test.js:48 GET http://127.0.0.1:8000/inspector/resources/xhr-does-not-exist.html 404 (Not Found)makeFetch @ network-test.js:48requestHelper @ console-fetch-logging.html:11step2 @ console-fetch-logging.html:27
+console-fetch-logging.html:4 sending a POST request to resources/post-target.cgi
+console-fetch-logging.html:4 sending a GET request to http://localhost:8000/inspector/resources/xhr-exists.html
+console-fetch-logging.html:1 Fetch API cannot load http://localhost:8000/inspector/resources/xhr-exists.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8000' is therefore not allowed access.
+

Powered by Google App Engine
This is Rietveld 408576698