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

Unified Diff: test/mjsunit/debug-version.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-suspend.js ('k') | test/mjsunit/div-mod.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-version.js
diff --git a/test/mjsunit/debug-version.js b/test/mjsunit/debug-version.js
index b1bc1e8d82e6935dc30a0d26adee74ebf46fbc6c..0f08609a661c7c53d58ac01997d4be48bd45f50e 100644
--- a/test/mjsunit/debug-version.js
+++ b/test/mjsunit/debug-version.js
@@ -27,13 +27,13 @@
// 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 base_version_request = '"seq":0,"type":"request","command":"version"'
+var base_version_request = '"seq":0,"type":"request","command":"version"';
function safeEval(code) {
try {
@@ -50,7 +50,7 @@ function testArguments(exec_state) {
assertTrue(dcp.isRunning());
- var version_request = '{' + base_version_request + '}'
+ var version_request = '{' + base_version_request + '}';
var version_response = safeEval(dcp.processDebugJSONRequest(version_request));
assertTrue(version_response.success);
@@ -61,7 +61,8 @@ function testArguments(exec_state) {
var version_pattern = /^\d*\.\d*\.\d*/;
- assertTrue(!!(version_string.match(version_pattern)), "unexpected format of version: " + version_string);
+ assertTrue(!!(version_string.match(version_pattern)),
+ "unexpected format of version: " + version_string);
}
function listener(event, exec_state, event_data, data) {
@@ -75,9 +76,9 @@ function listener(event, exec_state, event_data, data) {
listenerComplete = true;
}
} catch (e) {
- exception = e
- };
-};
+ exception = e;
+ }
+}
// Add the debug event listener.
Debug.setListener(listener);
@@ -85,6 +86,6 @@ Debug.setListener(listener);
// Stop debugger and check that suspend command changes running flag.
debugger;
-assertFalse(exception, "exception in listener")
+assertFalse(exception, "exception in listener");
// Make sure that the debug event listener vas invoked.
assertTrue(listenerComplete, "listener did not run to completion");
« no previous file with comments | « test/mjsunit/debug-suspend.js ('k') | test/mjsunit/div-mod.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698