Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: test/cctest/test-parsing.cc

Issue 1817353007: Fix "use types" directive in modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index e50eb0db7a1d55fe124e42868b28732d9b3ab7e4..767393e04bc7843a24c5c572755c4a93ddab77da 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -7512,6 +7512,18 @@ TEST(TypedVariableDeclarations) {
always_flags, arraysize(always_flags));
RunParserSyncTest(typed_context_data, typed_error_data, kError, NULL, 0,
always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(untyped_context_data, untyped_data, kSuccess, NULL, 0,
+ always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(typed_context_data, untyped_data, kSuccess, NULL, 0,
+ always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(untyped_context_data, typed_data, kError, NULL, 0,
+ always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(typed_context_data, typed_data, kSuccess, NULL, 0,
+ always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(untyped_context_data, typed_error_data, kError, NULL,
+ 0, always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(typed_context_data, typed_error_data, kError, NULL, 0,
+ always_flags, arraysize(always_flags));
}
TEST(TypedModeChecks) {
@@ -7540,6 +7552,10 @@ TEST(TypedModeChecks) {
always_flags, arraysize(always_flags));
RunParserSyncTest(strict_context_data, strict_error_data, kError, NULL, 0,
always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(strict_context_data, typed_data, kSuccess, NULL, 0,
+ always_flags, arraysize(always_flags));
+ RunModuleParserSyncTest(strict_context_data, strict_error_data, kError, NULL,
+ 0, always_flags, arraysize(always_flags));
}
TEST(TypedModeIllegalInFunctionScope) {
@@ -7557,10 +7573,13 @@ TEST(TypedModeIllegalInFunctionScope) {
};
RunParserSyncTest(context_data, error_data, kSuccess);
+ RunModuleParserSyncTest(context_data, error_data, kSuccess);
static const ParserFlag typed_flags[] = {kAllowTypes};
RunParserSyncTest(context_data, error_data, kError, NULL, 0,
typed_flags, arraysize(typed_flags));
+ RunModuleParserSyncTest(context_data, error_data, kError, NULL, 0,
+ typed_flags, arraysize(typed_flags));
}
TEST(TypedModeSimpleTypes) {
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698