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