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

Unified Diff: test/debugger/debug/debug-evaluate-locals.js

Issue 2505363002: [debug-wrapper] Adapt tests, breakpoint.actual_location (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
Index: test/debugger/debug/debug-evaluate-locals.js
diff --git a/test/mjsunit/debug-evaluate-locals.js b/test/debugger/debug/debug-evaluate-locals.js
similarity index 93%
rename from test/mjsunit/debug-evaluate-locals.js
rename to test/debugger/debug/debug-evaluate-locals.js
index 1788bd8ce2ea882ed2395a919a9472383adf686e..0108acf2ff4dfa6becec9148cf88c17cf52d02a7 100644
--- a/test/mjsunit/debug-evaluate-locals.js
+++ b/test/debugger/debug/debug-evaluate-locals.js
@@ -25,8 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --expose-debug-as debug
-// Get the Debug object exposed from the debug context global object.
Debug = debug.Debug
listenerComplete = false;
@@ -65,14 +63,16 @@ function g() {
}
function checkFrame1(frame) {
- // Frame 1 (g) has normal variable a (and arguments).
+ // Frame 1 (g) has normal variable a, b (and arguments).
var count = frame.localCount();
- assertEquals(2, count);
+ assertEquals(3, count);
for (var i = 0; i < count; ++i) {
var name = frame.localName(i);
var value = frame.localValue(i).value();
if (name == 'a') {
assertEquals(3, value);
+ } else if (name == 'b') {
+ assertEquals(4, value);
} else {
assertEquals('arguments', name);
}
@@ -119,11 +119,11 @@ function listener(event, exec_state, event_data, data) {
assertEquals(3, exec_state.frame(1).evaluate('a').value());
assertEquals(4, exec_state.frame(1).evaluate('b').value());
assertEquals("function",
- typeof exec_state.frame(1).evaluate('eval').value());
+ exec_state.frame(1).evaluate('typeof eval').value());
assertEquals(5, exec_state.frame(2).evaluate('a').value());
assertEquals(6, exec_state.frame(2).evaluate('b').value());
assertEquals("function",
- typeof exec_state.frame(2).evaluate('eval').value());
+ exec_state.frame(2).evaluate('typeof eval').value());
assertEquals("foo",
exec_state.frame(0).evaluate('a = "foo"').value());
assertEquals("bar",
« no previous file with comments | « test/debugger/debug/compiler/osr-typing-debug-change.js ('k') | test/debugger/debug/debug-liveedit-double-call.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698