move clearInterval, clearTimeout, setInterval and setTimeout to global_timeout_and_interval_symbols as they do not exist in the test sandbox.

This commit is contained in:
kzc 2017-09-06 13:56:06 -04:00
parent b1b088a128
commit 364147a3cf

View File

@ -240,8 +240,6 @@ issue_2233_1: {
input: {
Array.isArray;
Boolean;
//clearInterval;
//clearTimeout;
console.log;
Date;
decodeURI;
@ -265,8 +263,6 @@ issue_2233_1: {
String.fromCharCode;
RangeError;
ReferenceError;
//setInterval;
//setTimeout;
SyntaxError;
TypeError;
unescape;
@ -276,6 +272,23 @@ issue_2233_1: {
expect_stdout: true
}
global_timeout_and_interval_symbols: {
options = {
pure_getters: "strict",
side_effects: true,
unsafe: true,
}
input: {
// These global symbols do not exist in the test sandbox
// and must be tested separately.
clearInterval;
clearTimeout;
setInterval;
setTimeout;
}
expect: {}
}
issue_2233_2: {
options = {
pure_getters: "strict",