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); |