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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-agents.html

Issue 2441933002: [DevTools] Refactor connection-related classes. (Closed)
Patch Set: tests.js Created 4 years, 2 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/service-workers/service-worker-agents.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-agents.html b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-agents.html
index 67c67d1ff5e3fb1ad848c55edefccd0aa0dd7aa2..00cda464d4875f49db043499a0c886d4599a2250 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-agents.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/service-workers/service-worker-agents.html
@@ -9,8 +9,8 @@ function test()
var scriptURL = "http://127.0.0.1:8000/inspector/service-workers/resources/service-worker-empty.js";
var scope = "http://127.0.0.1:8000/inspector/service-workers/resources/scope1/";
- InspectorTest.addSniffer(WebInspector.MainConnection.prototype, "sendMessage", function(message) {
- var messageString = JSON.stringify(message);
+ InspectorTest.addSniffer(WebInspector.MainConnection.prototype, "sendMessage", function(messageString) {
+ var message = JSON.parse(messageString);
if (!messageString.includes("Target.sendMessageToTarget"))
return;
if (messageString.includes("DOM."))

Powered by Google App Engine
This is Rietveld 408576698