Commit 787de93f authored by yangguo's avatar yangguo Committed by Commit bot

Make deserialize-script-id test more robust.

R=machenbach@chromium.org
BUG=v8:4127
LOG=N

Review URL: https://codereview.chromium.org/1215123002

Cr-Commit-Position: refs/heads/master@{#29464}
parent 619570b3
...@@ -10,13 +10,8 @@ Debug.setListener(function(){}); ...@@ -10,13 +10,8 @@ Debug.setListener(function(){});
var scripts = %DebugGetLoadedScripts(); var scripts = %DebugGetLoadedScripts();
scripts.sort(function(a, b) { return a.id - b.id; }); scripts.sort(function(a, b) { return a.id - b.id; });
var user_script_count = 0;
scripts.reduce(function(prev, cur) { scripts.reduce(function(prev, cur) {
assertTrue(prev === undefined || prev.id != cur.id); assertTrue(prev === undefined || prev.id != cur.id);
if (cur.type == 2) user_script_count++;
}); });
// Found mjsunit.js and this script.
assertEquals(2, user_script_count);
Debug.setListener(null); Debug.setListener(null);
...@@ -592,9 +592,6 @@ ...@@ -592,9 +592,6 @@
# BUG(v8:3435) # BUG(v8:3435)
'debug-script-breakpoints': [PASS, FAIL], 'debug-script-breakpoints': [PASS, FAIL],
# BUG(v8:4127)
'deserialize-script-id': [PASS, ['no_snap == True', FLAKY]],
}], # 'system == windows' }], # 'system == windows'
############################################################################## ##############################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment