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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-document-initiator.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
index 3780e5d34522ad7ca658499b9c41c3dc99f86207..b10ec60b0d418d176d709e0ad72c3113fdd185a4 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js
@@ -71,6 +71,14 @@ InspectorTest.dumpNetworkRequests = function()
InspectorTest.addResult(requests[i].url);
}
+// |url| must be a regular expression to match request URLs.
+InspectorTest.findRequestsByURLPattern = function(urlPattern)
+{
+ return InspectorTest.networkRequests().filter(function(value) {
+ return urlPattern.test(value.url)
+ });
+}
+
InspectorTest.makeSimpleXHR = function(method, url, async, callback)
{
InspectorTest.makeXHR(method, url, async, undefined, undefined, [], false, undefined, undefined, callback);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/network-document-initiator.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698