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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html

Issue 1569623002: Fix-up some code relating to SRI double-requesting scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: More fixes Created 4 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/network-initiator-from-console.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html
index 7ff6f800b8f949cd91fbfc325e32421a67d041ea..34d2f40ecd3c61175fb2086f340466680797e040 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-initiator-from-console.html
@@ -7,15 +7,6 @@ var test = function()
{
InspectorTest.reloadPage(step1);
- function findRequestByURL(url)
- {
- var requests = InspectorTest.networkRequests();
- for (var i = 0; i < requests.length; ++i) {
- if (url.test(requests[i].url))
- return requests[i];
- }
- }
-
function step1()
{
InspectorTest.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestStarted, onRequest);
@@ -35,7 +26,8 @@ var test = function()
function step2()
{
- if (!findRequestByURL(/silent_script.js/))
+ var results = InspectorTest.findRequestsByURLPattern(/silent_script.js/);
+ if (results.length === 0)
return;
InspectorTest.completeTest();

Powered by Google App Engine
This is Rietveld 408576698