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

Unified Diff: test/mjsunit/debug-changebreakpoint.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-breakpoints.js ('k') | test/mjsunit/debug-clearbreakpoint.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-changebreakpoint.js
diff --git a/test/mjsunit/debug-changebreakpoint.js b/test/mjsunit/debug-changebreakpoint.js
index 897c3e3919cab923ac1827670a47cd1cdeb487b3..8ca5aed844e8d0034405c9b90a7cb4b025f3d9b1 100644
--- a/test/mjsunit/debug-changebreakpoint.js
+++ b/test/mjsunit/debug-changebreakpoint.js
@@ -27,14 +27,14 @@
// Flags: --expose-debug-as debug
// Get the Debug object exposed from the debug context global object.
-Debug = debug.Debug
+Debug = debug.Debug;
// Simple function which stores the last debug event.
listenerComplete = false;
exception = false;
var breakpoint = -1;
-var base_request = '"seq":0,"type":"request","command":"changebreakpoint"'
+var base_request = '"seq":0,"type":"request","command":"changebreakpoint"';
function safeEval(code) {
try {
@@ -46,7 +46,7 @@ function safeEval(code) {
}
function testArguments(dcp, arguments, success) {
- var request = '{' + base_request + ',"arguments":' + arguments + '}'
+ var request = '{' + base_request + ',"arguments":' + arguments + '}';
var json_response = dcp.processDebugJSONRequest(request);
var response = safeEval(json_response);
if (success) {
@@ -63,17 +63,19 @@ function listener(event, exec_state, event_data, data) {
var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
// Test some illegal clearbreakpoint requests.
- var request = '{' + base_request + '}'
+ var request = '{' + base_request + '}';
var response = safeEval(dcp.processDebugJSONRequest(request));
assertFalse(response.success);
testArguments(dcp, '{}', false);
testArguments(dcp, '{"breakpoint":0,"condition":"false"}', false);
- testArguments(dcp, '{"breakpoint":' + (breakpoint + 1) + ',"condition":"false"}', false);
+ testArguments(dcp,
+ '{"breakpoint":' + (breakpoint + 1) + ',"condition":"false"}',
+ false);
testArguments(dcp, '{"breakpoint":"xx","condition":"false"}', false);
// Test some legal clearbreakpoint requests.
- var bp_str = '"breakpoint":' + breakpoint;;
+ var bp_str = '"breakpoint":' + breakpoint;
testArguments(dcp, '{' + bp_str + '}', true);
testArguments(dcp, '{' + bp_str + ',"enabled":"true"}', true);
testArguments(dcp, '{' + bp_str + ',"enabled":"false"}', true);
@@ -90,14 +92,14 @@ function listener(event, exec_state, event_data, data) {
listenerComplete = true;
}
} catch (e) {
- exception = e
- };
-};
+ exception = e;
+ }
+}
// Add the debug event listener.
Debug.setListener(listener);
-function g() {};
+function g() {}
// Set a break point and call to invoke the debug event listener.
breakpoint = Debug.setBreakPoint(g, 0, 0);
@@ -105,4 +107,4 @@ g();
// Make sure that the debug event listener vas invoked.
assertTrue(listenerComplete, "listener did not run to completion");
-assertFalse(exception, "exception in listener")
+assertFalse(exception, "exception in listener");
« no previous file with comments | « test/mjsunit/debug-breakpoints.js ('k') | test/mjsunit/debug-clearbreakpoint.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698