Skip to content

Commit

Permalink
deps: deactivate failing tests corresponding to experimental features
Browse files Browse the repository at this point in the history
This comments out three tests that consistently fail on v13.x.
The test can be activated again in case the necessary code change
lands on v13.x for the tests to pass.

PR-URL: #31289
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
BridgeAR authored and Trott committed Jan 11, 2020
1 parent 4a702c3 commit 6f95f01
Showing 1 changed file with 146 additions and 146 deletions.
292 changes: 146 additions & 146 deletions deps/v8/test/cctest/interpreter/test-bytecode-generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2884,129 +2884,129 @@ TEST(PrivateAccessorAccess) {
i::FLAG_harmony_private_methods = old_methods_flag;
}

TEST(StaticPrivateMethodDeclaration) {
bool old_methods_flag = i::FLAG_harmony_private_methods;
i::FLAG_harmony_private_methods = true;
InitializedIgnitionHandleScope scope;
BytecodeExpectationsPrinter printer(CcTest::isolate());

const char* snippets[] = {
"{\n"
" class A {\n"
" static #a() { return 1; }\n"
" }\n"
"}\n",

"{\n"
" class A {\n"
" static get #a() { return 1; }\n"
" }\n"
"}\n",

"{\n"
" class A {\n"
" static set #a(val) { }\n"
" }\n"
"}\n",

"{\n"
" class A {\n"
" static get #a() { return 1; }\n"
" static set #a(val) { }\n"
" }\n"
"}\n",

"{\n"
" class A {\n"
" static #a() { }\n"
" #b() { }\n"
" }\n"
"}\n"};

CHECK(CompareTexts(BuildActual(printer, snippets),
LoadGolden("StaticPrivateMethodDeclaration.golden")));
i::FLAG_harmony_private_methods = old_methods_flag;
}

TEST(StaticPrivateMethodAccess) {
bool old_methods_flag = i::FLAG_harmony_private_methods;
i::FLAG_harmony_private_methods = true;
InitializedIgnitionHandleScope scope;
BytecodeExpectationsPrinter printer(CcTest::isolate());
printer.set_wrap(false);
printer.set_test_function_name("test");

const char* snippets[] = {
"class A {\n"
" static #a() { return 1; }\n"
" static test() { return this.#a(); }\n"
"}\n"
"\n"
"var test = A.test;\n"
"test();\n",

"class B {\n"
" static #b() { return 1; }\n"
" static test() { this.#b = 1; }\n"
"}\n"
"\n"
"var test = B.test;\n"
"test();\n",

"class C {\n"
" static #c() { return 1; }\n"
" static test() { this.#c++; }\n"
"}\n"
"\n"
"var test = C.test;\n"
"test();\n",

"class D {\n"
" static get #d() { return 1; }\n"
" static set #d(val) { }\n"
"\n"
" static test() {\n"
" this.#d++;\n"
" this.#d = 1;\n"
" return this.#d;\n"
" }\n"
"}\n"
"\n"
"var test = D.test;\n"
"test();\n",

"class E {\n"
" static get #e() { return 1; }\n"
" static test() { this.#e++; }\n"
"}\n"
"var test = E.test;\n"
"test();\n",

"class F {\n"
" static set #f(val) { }\n"
" static test() { this.#f++; }\n"
"}\n"
"var test = F.test;\n"
"test();\n",

"class G {\n"
" static get #d() { return 1; }\n"
" static test() { this.#d = 1; }\n"
"}\n"
"var test = G.test;\n"
"test();\n",

"class H {\n"
" set #h(val) { }\n"
" static test() { this.#h; }\n"
"}\n"
"var test = H.test;\n"
"test();\n"};

CHECK(CompareTexts(BuildActual(printer, snippets),
LoadGolden("StaticPrivateMethodAccess.golden")));
i::FLAG_harmony_private_methods = old_methods_flag;
}
// TEST(StaticPrivateMethodDeclaration) {
// bool old_methods_flag = i::FLAG_harmony_private_methods;
// i::FLAG_harmony_private_methods = true;
// InitializedIgnitionHandleScope scope;
// BytecodeExpectationsPrinter printer(CcTest::isolate());

// const char* snippets[] = {
// "{\n"
// " class A {\n"
// " static #a() { return 1; }\n"
// " }\n"
// "}\n",

// "{\n"
// " class A {\n"
// " static get #a() { return 1; }\n"
// " }\n"
// "}\n",

// "{\n"
// " class A {\n"
// " static set #a(val) { }\n"
// " }\n"
// "}\n",

// "{\n"
// " class A {\n"
// " static get #a() { return 1; }\n"
// " static set #a(val) { }\n"
// " }\n"
// "}\n",

// "{\n"
// " class A {\n"
// " static #a() { }\n"
// " #b() { }\n"
// " }\n"
// "}\n"};

// CHECK(CompareTexts(BuildActual(printer, snippets),
// LoadGolden("StaticPrivateMethodDeclaration.golden")));
// i::FLAG_harmony_private_methods = old_methods_flag;
// }

// TEST(StaticPrivateMethodAccess) {
// bool old_methods_flag = i::FLAG_harmony_private_methods;
// i::FLAG_harmony_private_methods = true;
// InitializedIgnitionHandleScope scope;
// BytecodeExpectationsPrinter printer(CcTest::isolate());
// printer.set_wrap(false);
// printer.set_test_function_name("test");

// const char* snippets[] = {
// "class A {\n"
// " static #a() { return 1; }\n"
// " static test() { return this.#a(); }\n"
// "}\n"
// "\n"
// "var test = A.test;\n"
// "test();\n",

// "class B {\n"
// " static #b() { return 1; }\n"
// " static test() { this.#b = 1; }\n"
// "}\n"
// "\n"
// "var test = B.test;\n"
// "test();\n",

// "class C {\n"
// " static #c() { return 1; }\n"
// " static test() { this.#c++; }\n"
// "}\n"
// "\n"
// "var test = C.test;\n"
// "test();\n",

// "class D {\n"
// " static get #d() { return 1; }\n"
// " static set #d(val) { }\n"
// "\n"
// " static test() {\n"
// " this.#d++;\n"
// " this.#d = 1;\n"
// " return this.#d;\n"
// " }\n"
// "}\n"
// "\n"
// "var test = D.test;\n"
// "test();\n",

// "class E {\n"
// " static get #e() { return 1; }\n"
// " static test() { this.#e++; }\n"
// "}\n"
// "var test = E.test;\n"
// "test();\n",

// "class F {\n"
// " static set #f(val) { }\n"
// " static test() { this.#f++; }\n"
// "}\n"
// "var test = F.test;\n"
// "test();\n",

// "class G {\n"
// " static get #d() { return 1; }\n"
// " static test() { this.#d = 1; }\n"
// "}\n"
// "var test = G.test;\n"
// "test();\n",

// "class H {\n"
// " set #h(val) { }\n"
// " static test() { this.#h; }\n"
// "}\n"
// "var test = H.test;\n"
// "test();\n"};

// CHECK(CompareTexts(BuildActual(printer, snippets),
// LoadGolden("StaticPrivateMethodAccess.golden")));
// i::FLAG_harmony_private_methods = old_methods_flag;
// }

TEST(PrivateAccessorDeclaration) {
bool old_methods_flag = i::FLAG_harmony_private_methods;
Expand Down Expand Up @@ -3222,34 +3222,34 @@ TEST(Modules) {
LoadGolden("Modules.golden")));
}

TEST(AsyncModules) {
bool previous_top_level_await_flag = i::FLAG_harmony_top_level_await;
i::FLAG_harmony_top_level_await = true;
InitializedIgnitionHandleScope scope;
BytecodeExpectationsPrinter printer(CcTest::isolate());
printer.set_wrap(false);
printer.set_module(true);
printer.set_top_level(true);
// TEST(AsyncModules) {
// bool previous_top_level_await_flag = i::FLAG_harmony_top_level_await;
// i::FLAG_harmony_top_level_await = true;
// InitializedIgnitionHandleScope scope;
// BytecodeExpectationsPrinter printer(CcTest::isolate());
// printer.set_wrap(false);
// printer.set_module(true);
// printer.set_top_level(true);

const char* snippets[] = {
"await 42;\n",
// const char* snippets[] = {
// "await 42;\n",

"await import(\"foo\");\n",
// "await import(\"foo\");\n",

"await 42;\n"
"async function foo() {\n"
" await 42;\n"
"}\n"
"foo();\n",
// "await 42;\n"
// "async function foo() {\n"
// " await 42;\n"
// "}\n"
// "foo();\n",

"import * as foo from \"bar\";\n"
"await import(\"goo\");\n",
};
// "import * as foo from \"bar\";\n"
// "await import(\"goo\");\n",
// };

CHECK(CompareTexts(BuildActual(printer, snippets),
LoadGolden("AsyncModules.golden")));
i::FLAG_harmony_top_level_await = previous_top_level_await_flag;
}
// CHECK(CompareTexts(BuildActual(printer, snippets),
// LoadGolden("AsyncModules.golden")));
// i::FLAG_harmony_top_level_await = previous_top_level_await_flag;
// }

TEST(SuperCallAndSpread) {
InitializedIgnitionHandleScope scope;
Expand Down

0 comments on commit 6f95f01

Please sign in to comment.