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 @@
function SmiNoIteratorFromSetup() {
func = (v, i) => v + i;
array = smi_array;
arg = {length: array.length} Object.assign(arg, array);
arg = {length: array.length};
Object.assign(arg, array);
}
function TransplantedFromSetup() {
......
......@@ -15,6 +15,6 @@ function SetupMegamorphic() {
Array.prototype.sort.call({});
}
benchy('Base', Sort, SetupMegamorphic);
benchy('MultipleCompareFns', CreateSortFn([cmp_smaller, cmp_greater]),
SetupMegamorphic);
createSuite('Base', 1000, Sort, SetupMegamorphic);
createSuite('MultipleCompareFns', 1000,
CreateSortFn([cmp_smaller, cmp_greater]), SetupMegamorphic);
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
(function() {
createSuite('Debugger.paused', 10000, DebuggerPaused, Setup, TearDown);
createSuite(
'Debugger.getPossibleBreakpoints', 10000, DebuggerGetPossibleBreakpoints,
......@@ -39,13 +40,14 @@ function SetupGetPossibleBreakpoints() {
return false;
}
}\n`;
}
};
listener = function(msg) {
if (msg.method === 'Debugger.scriptParsed') {
scriptId = msg.params.scriptId;
listener = null;
}
} SendMessage('Runtime.evaluate', {expression});
};
SendMessage('Runtime.evaluate', {expression});
}
function DebuggerGetPossibleBreakpoints() {
......@@ -69,4 +71,5 @@ function AsyncStacksInstrumentation() {
p = p.then(() => done = true);
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