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

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

Issue 669148: Fix weird issue with test case where certain global function... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-scopes.js
===================================================================
--- test/mjsunit/debug-scopes.js (revision 4027)
+++ test/mjsunit/debug-scopes.js (working copy)
@@ -84,16 +84,16 @@
var scope = exec_state.frame().scope(i);
assertTrue(scope.isScope());
assertEquals(scopes[i], scope.scopeType());
-
+
// Check the global object when hitting the global scope.
if (scopes[i] == debug.ScopeType.Global) {
assertEquals(this, scope.scopeObject().value());
}
}
-
+
// Get the debug command processor.
var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
-
+
// Send a scopes request and check the result.
var json;
request_json = '{"seq":0,"type":"request","command":"scopes"}'
@@ -133,7 +133,7 @@
}
count++;
}
-
+
// 'arguments' and might be exposed in the local and closure scope. Just
// ignore this.
var scope_size = scope.scopeObject().properties().length;
@@ -156,7 +156,7 @@
// Get the debug command processor.
var dcp = exec_state.debugCommandProcessor("unspecified_running_state");
-
+
// Send a scope request for information on a single scope and check the
// result.
request_json = '{"seq":0,"type":"request","command":"scope","arguments":{"number":'
@@ -622,7 +622,7 @@
with ({j:13}){
return function() {
var x = 14;
- with ({a:15}) {
+ with ({a:15}) {
with ({b:16}) {
debugger;
some_global = a;
@@ -707,7 +707,7 @@
BeginTest("Catch block 3");
-function catch_block_1() {
+function catch_block_3() {
// Do eval to dynamically declare a local variable so that the context's
// extension slot is initialized with JSContextExtensionObject.
eval("var y = 78;");
@@ -726,12 +726,12 @@
CheckScopeContent({e:'Exception'}, 0, exec_state);
CheckScopeContent({y:78}, 1, exec_state);
}
-catch_block_1()
+catch_block_3()
EndTest();
BeginTest("Catch block 4");
-function catch_block_2() {
+function catch_block_4() {
// Do eval to dynamically declare a local variable so that the context's
// extension slot is initialized with JSContextExtensionObject.
eval("var y = 98;");
@@ -753,7 +753,7 @@
CheckScopeContent({e:'Exception'}, 1, exec_state);
CheckScopeContent({y:98}, 2, exec_state);
}
-catch_block_2()
+catch_block_4()
EndTest();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698