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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html

Issue 2626553002: [Devtools][Code health] Changed NetworkRequest.url to proper getter/setter (Closed)
Patch Set: changes Created 3 years, 11 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: third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html
index 0f8dc6a72ff70724660dee9965f7b05e9490603b..4435eef3c8c1afbd7e0d6d4e33a63faf923d6235 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network-preflight-options.html
@@ -66,9 +66,9 @@ var test = function()
function onRequest(event)
{
var request = event.data;
- var idMatch = /\?id=([0-9]*)&/.exec(request.url);
+ var idMatch = /\?id=([0-9]*)&/.exec(request.url());
var requestId = idMatch[1];
- var requestMessage = requestId + " " + request.resourceType() + ":" + request.requestMethod + " " + request.url.replace(/[&?]date=\d+/, "");
+ var requestMessage = requestId + " " + request.resourceType() + ":" + request.requestMethod + " " + request.url().replace(/[&?]date=\d+/, "");
requestMessages.push(requestMessage);
if (request.requestMethod === "POST" && ++postRequestsCount === 4) {
requestMessages.sort();

Powered by Google App Engine
This is Rietveld 408576698