Commit 62b714e2 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[tests] Fix JSTests

Bug: chromium:848622
Change-Id: I8fff648fc4867cfbad1ee762652a5e628c66aeaa
Reviewed-on: https://chromium-review.googlesource.com/1086929Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53520}
parent d123f30b
...@@ -122,7 +122,8 @@ ...@@ -122,7 +122,8 @@
function SmiNoIteratorFromSetup() { function SmiNoIteratorFromSetup() {
func = (v, i) => v + i; func = (v, i) => v + i;
array = smi_array; array = smi_array;
arg = {length: array.length} Object.assign(arg, array); arg = {length: array.length};
Object.assign(arg, array);
} }
function TransplantedFromSetup() { function TransplantedFromSetup() {
......
...@@ -15,6 +15,6 @@ function SetupMegamorphic() { ...@@ -15,6 +15,6 @@ function SetupMegamorphic() {
Array.prototype.sort.call({}); Array.prototype.sort.call({});
} }
benchy('Base', Sort, SetupMegamorphic); createSuite('Base', 1000, Sort, SetupMegamorphic);
benchy('MultipleCompareFns', CreateSortFn([cmp_smaller, cmp_greater]), createSuite('MultipleCompareFns', 1000,
SetupMegamorphic); CreateSortFn([cmp_smaller, cmp_greater]), SetupMegamorphic);
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
(function() { (function() {
createSuite('Debugger.paused', 10000, DebuggerPaused, Setup, TearDown); createSuite('Debugger.paused', 10000, DebuggerPaused, Setup, TearDown);
createSuite( createSuite(
'Debugger.getPossibleBreakpoints', 10000, DebuggerGetPossibleBreakpoints, 'Debugger.getPossibleBreakpoints', 10000, DebuggerGetPossibleBreakpoints,
...@@ -39,13 +40,14 @@ function SetupGetPossibleBreakpoints() { ...@@ -39,13 +40,14 @@ function SetupGetPossibleBreakpoints() {
return false; return false;
} }
}\n`; }\n`;
} };
listener = function(msg) { listener = function(msg) {
if (msg.method === 'Debugger.scriptParsed') { if (msg.method === 'Debugger.scriptParsed') {
scriptId = msg.params.scriptId; scriptId = msg.params.scriptId;
listener = null; listener = null;
} }
} SendMessage('Runtime.evaluate', {expression}); };
SendMessage('Runtime.evaluate', {expression});
} }
function DebuggerGetPossibleBreakpoints() { function DebuggerGetPossibleBreakpoints() {
...@@ -69,4 +71,5 @@ function AsyncStacksInstrumentation() { ...@@ -69,4 +71,5 @@ function AsyncStacksInstrumentation() {
p = p.then(() => done = true); p = p.then(() => done = true);
while (!done) %RunMicrotasks(); while (!done) %RunMicrotasks();
} }
})(); })();
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