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

Side by Side Diff: test/debugger/protocol/basic-round-trip.js

Issue 2425973002: [debugger] basic test infrastructure for new debugger test api. (Closed)
Patch Set: fix 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var received = 0;
6
7 function receive(message) {
8 var message_obj = JSON.parse(message);
9 assertEquals(3, message_obj.result.result.value);
10 received++;
11 }
12
13 var message = JSON.stringify({
14 id : 1,
15 method : "Runtime.evaluate",
16 params : {
17 expression: "function f() { return 2 }; 3"
18 }
19 });
20
21 send(message);
22
23 assertEquals(1, received);
24 assertEquals(2, f());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698