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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html

Issue 2573323002: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: Created 4 years 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/font-face-expected.txt » ('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/font-face.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
index 3be4b01abf05d4cc6908a25539c8914e2886864b..801cb8e56b3b644ab5c54c9807952b76b993f22e 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face.html
@@ -9,17 +9,17 @@
}
function test() {
- function onRequest(eventType, event)
+ function onRequest(event)
{
var request = event.data;
if (request.name() === 'done') {
InspectorTest.completeTest();
return;
}
- InspectorTest.addResult(eventType + ": " + request.name());
+ InspectorTest.addResult(event.type.toString() + ": " + request.name());
}
- InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.RequestStarted, onRequest.bind(null, "RequestStarted"));
- InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.RequestFinished, onRequest.bind(null, "RequestFinished"));
+ InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.RequestStarted, onRequest);
+ InspectorTest.networkManager.addEventListener(SDK.NetworkManager.Events.RequestFinished, onRequest);
InspectorTest.evaluateInPage("createIFrame()");
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/network/font-face-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698