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

Unified Diff: test/mjsunit/debug-listbreakpoints.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 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 | « test/mjsunit/debug-ignore-breakpoints.js ('k') | test/mjsunit/debug-liveedit-1.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-listbreakpoints.js
diff --git a/test/mjsunit/debug-listbreakpoints.js b/test/mjsunit/debug-listbreakpoints.js
index 1d4755fd1b7f769aba68fd92e2c92d42cdc8fc30..ce40e2909abb5606c30acbfeb6f0b7f73349de25 100644
--- a/test/mjsunit/debug-listbreakpoints.js
+++ b/test/mjsunit/debug-listbreakpoints.js
@@ -27,7 +27,7 @@
// Flags: --expose-debug-as debug
// Get the Debug object exposed from the debug context global object.
-Debug = debug.Debug
+Debug = debug.Debug;
// Note: the following tests only checks the debugger handling of the
// setexceptionbreak command. It does not test whether the debugger
@@ -42,7 +42,7 @@ function g() { // line 40
var x = 5;
var y = 6;
var z = 7;
-};
+}
var first_lineno = 40; // Must be the line number of g() above.
// The first line of the file is line 0.
@@ -52,7 +52,7 @@ listenerComplete = false;
exception = false;
var breakpoint1 = -1;
-var base_request = '"seq":0,"type":"request","command":"listbreakpoints"'
+var base_request = '"seq":0,"type":"request","command":"listbreakpoints"';
function safeEval(code) {
try {
@@ -65,24 +65,24 @@ function safeEval(code) {
function clearBreakpoint(dcp, breakpoint_id) {
- var base_request = '"seq":0,"type":"request","command":"clearbreakpoint"'
- var arguments = '{"breakpoint":' + breakpoint_id + '}'
- var request = '{' + base_request + ',"arguments":' + arguments + '}'
+ var base_request = '"seq":0,"type":"request","command":"clearbreakpoint"';
+ var arguments = '{"breakpoint":' + breakpoint_id + '}';
+ var request = '{' + base_request + ',"arguments":' + arguments + '}';
var json_response = dcp.processDebugJSONRequest(request);
}
function setBreakOnException(dcp, type, enabled) {
- var base_request = '"seq":0,"type":"request","command":"setexceptionbreak"'
- var arguments = '{"type":"' + type + '","enabled":' + enabled + '}'
- var request = '{' + base_request + ',"arguments":' + arguments + '}'
+ var base_request = '"seq":0,"type":"request","command":"setexceptionbreak"';
+ var arguments = '{"type":"' + type + '","enabled":' + enabled + '}';
+ var request = '{' + base_request + ',"arguments":' + arguments + '}';
var json_response = dcp.processDebugJSONRequest(request);
}
function testArguments(dcp, success, breakpoint_ids, breakpoint_linenos,
break_on_all, break_on_uncaught) {
- var request = '{' + base_request + '}'
+ var request = '{' + base_request + '}';
var json_response = dcp.processDebugJSONRequest(request);
var response = safeEval(json_response);
var num_breakpoints = breakpoint_ids.length;
@@ -194,9 +194,9 @@ function listener(event, exec_state, event_data, data) {
}
} catch (e) {
- exception = e
- };
-};
+ exception = e;
+ }
+}
// Add the debug event listener.
Debug.setListener(listener);
@@ -206,5 +206,5 @@ breakpoint1 = Debug.setBreakPoint(g, 0, 0);
g();
// Make sure that the debug event listener vas invoked.
-assertFalse(exception, "exception in listener")
+assertFalse(exception, "exception in listener");
assertTrue(listenerComplete, "listener did not run to completion");
« no previous file with comments | « test/mjsunit/debug-ignore-breakpoints.js ('k') | test/mjsunit/debug-liveedit-1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698