Remove a Gecko profiler specific test case

This commit is contained in:
André Bargull 2025-04-30 14:15:29 +02:00 committed by Ms2ger
parent 2497ed0ae9
commit 965e505fb8
2 changed files with 1 additions and 53 deletions

View File

@ -1,7 +1,6 @@
/*---
defines: [printBugNumber, inSection, printStatus, writeHeaderToLog,
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer,
enableGeckoProfilingWithSlowAssertions, enableGeckoProfiling, disableGeckoProfiling]
assertThrownErrorContains, assertThrowsInstanceOfWithMessageCheck, newGlobal, print, assertEq, reportCompare, reportMatch, createIsHTMLDDA, createExternalArrayBuffer]
---*/
function printBugNumber() {}
@ -68,7 +67,3 @@ if (globalThis.createExternalArrayBuffer === undefined) {
return new ArrayBuffer(size);
}
}
if (globalThis.enableGeckoProfilingWithSlowAssertions === undefined) {
globalThis.enableGeckoProfilingWithSlowAssertions = globalThis.enableGeckoProfiling =
globalThis.disableGeckoProfiling = () => {}
}

View File

@ -1,47 +0,0 @@
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
/*---
includes: [sm/non262.js, sm/non262-shell.js, sm/non262-extensions-shell.js]
flags:
- noStrict
description: |
pending
esid: pending
---*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 822041;
var summary = "Live generators should not cache Gecko Profiler state";
print(BUGNUMBER + ": " + summary);
function* gen() {
var x = yield turnoff();
yield x;
yield 'bye';
}
function turnoff() {
print("Turning off profiler\n");
disableGeckoProfiling();
return 'hi';
}
for (var slowAsserts of [ true, false ]) {
// The slowAssertions setting is not expected to matter
if (slowAsserts)
enableGeckoProfilingWithSlowAssertions();
else
enableGeckoProfiling();
g = gen();
assert.sameValue(g.next().value, 'hi');
assert.sameValue(g.next('gurgitating...').value, 'gurgitating...');
for (var x of g)
assert.sameValue(x, 'bye');
}
// This is really a crashtest