[tests] Fix JSTests
Bug: chromium:848622 Change-Id: I8fff648fc4867cfbad1ee762652a5e628c66aeaa Reviewed-on: https://chromium-review.googlesource.com/1086929 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#53520}
This commit is contained in:
parent
d123f30b6d
commit
62b714e237
@ -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();
|
||||
}
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user