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

Unified Diff: test/mjsunit/debug-mirror-cache.js

Issue 1282793002: Debugger: load debugger builtins as normal native JS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: use InstallFunctions and InstallConstants Created 5 years, 4 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 | « src/string.js ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-mirror-cache.js
diff --git a/test/mjsunit/debug-mirror-cache.js b/test/mjsunit/debug-mirror-cache.js
index c690aa01332f98ebd79b8e2685733d5d452164c2..8ac6d9a70d993efc002df64eb8121a75e38fb3d0 100644
--- a/test/mjsunit/debug-mirror-cache.js
+++ b/test/mjsunit/debug-mirror-cache.js
@@ -51,8 +51,7 @@ function listener(event, exec_state, event_data, data) {
listenerCallCount++;
// Check that mirror cache is cleared when entering debugger.
- assertEquals(0, debug.next_handle_, "Mirror cache not cleared");
- assertEquals(0, debug.mirror_cache_.length, "Mirror cache not cleared");
+ assertTrue(debug.MirrorCacheIsEmpty(), "Mirror cache not cleared");
// Get the debug command processor in paused state.
var dcp = exec_state.debugCommandProcessor(false);
@@ -66,8 +65,7 @@ function listener(event, exec_state, event_data, data) {
Debug.scripts();
// Some mirrors where cached.
- assertFalse(debug.next_handle_ == 0, "Mirror cache not used");
- assertFalse(debug.mirror_cache_.length == 0, "Mirror cache not used");
+ assertFalse(debug.MirrorCacheIsEmpty(), "Mirror cache not used");
}
} catch (e) {
print(e);
« no previous file with comments | « src/string.js ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698