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

Unified Diff: test/mjsunit/debug-setbreakpoint.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-scripts-request.js ('k') | test/mjsunit/debug-setexceptionbreak.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-setbreakpoint.js
diff --git a/test/mjsunit/debug-setbreakpoint.js b/test/mjsunit/debug-setbreakpoint.js
index 90dfcd136bd38b437cd22b5fe9f1be0c47d35fa4..5088228d31658f114e8434efe51f861fc82be526 100644
--- a/test/mjsunit/debug-setbreakpoint.js
+++ b/test/mjsunit/debug-setbreakpoint.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;
// Simple function which stores the last debug event.
var listenerComplete = false;
@@ -38,7 +38,7 @@ var h_script_id = 0;
var f_line = 0;
var g_line = 0;
-var base_request = '"seq":0,"type":"request","command":"setbreakpoint"'
+var base_request = '"seq":0,"type":"request","command":"setbreakpoint"';
function safeEval(code) {
try {
@@ -50,7 +50,7 @@ function safeEval(code) {
}
function testArguments(dcp, arguments, success, is_script) {
- 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) {
@@ -73,7 +73,7 @@ function listener(event, exec_state, event_data, data) {
var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
// Test some illegal setbreakpoint requests.
- var request = '{' + base_request + '}'
+ var request = '{' + base_request + '}';
var response = safeEval(dcp.processDebugJSONRequest(request));
assertFalse(response.success);
@@ -129,26 +129,26 @@ 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 f() {
- a=1
-};
+ a=1;
+}
function g() {
// Comment.
f();
-};
+}
eval('function h(){}');
eval('function sourceUrlFunc() { a = 2; }\n//@ sourceURL=sourceUrlScript');
-o = {a:function(){},b:function(){}}
+o = {a:function(){},b:function(){}};
// Check the script ids for the test functions.
f_script_id = Debug.findScript(f).id;
@@ -183,8 +183,9 @@ assertTrue(listenerComplete, "listener did not run to completion: " + exception)
var breakListenerCalled = false;
function breakListener(event) {
- if (event == Debug.DebugEvent.Break)
+ if (event == Debug.DebugEvent.Break) {
breakListenerCalled = true;
+ }
}
Debug.setListener(breakListener);
« no previous file with comments | « test/mjsunit/debug-scripts-request.js ('k') | test/mjsunit/debug-setexceptionbreak.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698