Commit 803bdf4f authored by Ioana Pandele's avatar Ioana Pandele Committed by Commit Bot

Revert "Rebase two inspector-protocol/network tests following NetworkService being enabled"

This reverts commit 9d958e98.

Reason for revert: This breaks on Linux Tests (dbg)(1)

Bug: 936778

Original change's description:
> Rebase two inspector-protocol/network tests following NetworkService being enabled
> 
> - interception-take-stream.js is only supposed to work with the network service,
>     old expectations were for errors reported when it doesn't;
> - xhr-interception-auth-fail.js change is due to actually changed semantics -- we
>     do not prompt for auth when sending XHRs in general, but if worked before
>     because we used to intercept at the lower level (URLRequestJob vs. URLLoader).
> 
> Bug: 933880
> Change-Id: I3d0a1cae30b11af3ca50bd64d4123b294e42b59b
> Reviewed-on: https://chromium-review.googlesource.com/c/1492046
> Commit-Queue: Andrey Kosyakov <caseq@chromium.org>
> Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
> Auto-Submit: Andrey Kosyakov <caseq@chromium.org>
> Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#636207}

TBR=dgozman@chromium.org,caseq@chromium.org

Change-Id: I09e4ddd90b87bce6486c425028cf3826b1626132
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 933880
Reviewed-on: https://chromium-review.googlesource.com/c/1493907Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
Commit-Queue: Ioana Pandele <ioanap@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636401}
parent 50e95e97
......@@ -5864,6 +5864,8 @@ crbug.com/933346 [ Debug ] external/wpt/orientation-sensor/RelativeOrientationSe
# These started failing when network service was enabled by default.
crbug.com/933880 external/wpt/service-workers/service-worker/request-end-to-end.https.html [ Failure ]
crbug.com/933880 http/tests/inspector-protocol/network/interception-take-stream.js [ Failure ]
crbug.com/933880 http/tests/inspector-protocol/network/xhr-interception-auth-fail.js [ Failure ]
# This passes in content_shell but not in chrome with network service disabled,
# because content_shell does not add the about: handler. With network service
# enabled this fails in both content_shell and chrome.
......
Tests that resource bodies can be taken as streams.
Running test: testBasicUsage
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testLargeRead
data: (100000) eof: false
eof: true
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testSmallNonOverlappingReads
data: (10000)
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testSmallOverlappingReads
data: (100000)
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testRead0
data: (0) eof: false
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testTakeTwice
Trying to take stream twice: Can only get response body on requests captured after headers received.
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testReadAfterCancel
data: The_quick_brown_fox_jumps_over_the_lazy_dog_0123456789The_quick_brown_fox_jumps_over_the_lazy_dog_01 (100) eof: false
eof: true
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testContinueAfterBodyTaken
Attempting to continue as is after taking request: Unable to continue request as is after body is taken
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
Running test: testReadAfterClose
Attempting read after close: Invalid stream handle
Error taking stream: Network.takeResponseBodyForInterceptionAsStream is only currently supported with --enable-features=NetworkService
......@@ -9,6 +9,8 @@ allowRequest ID 1
Network.responseReceived xhr-iframe-auth-fail.html 200 text/html
Network.requestIntercepted ID 2 GET unauthorised.pl type: XHR
allowRequest ID 2
Auth required for ID 2
----- Use Default Auth -----
Network.responseReceived unauthorised.pl 401 text/plain
Page.frameStoppedLoading
xhr.status = 401
......
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