Skip to content

Commit 965fbbe

Browse files
author
nturgut
authored
renaming variables on integration tests manager (#18975)
1 parent 14c78ff commit 965fbbe

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

lib/web_ui/dev/integration_tests_manager.dart

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ class IntegrationTestsManager {
173173
.toList();
174174

175175
final List<String> e2eTestsToRun = List<String>();
176-
final List<String> blackList =
177-
blackListsMap[getBlackListMapKey(_browser)] ?? <String>[];
176+
final List<String> blockedTests =
177+
blockedTestsListsMap[getBlockedTestsListMapKey(_browser)] ?? <String>[];
178178

179179
// The following loops over the contents of the directory and saves an
180180
// expected driver file name for each e2e test assuming any dart file
@@ -184,12 +184,12 @@ class IntegrationTestsManager {
184184
for (io.File f in entities) {
185185
final String basename = pathlib.basename(f.path);
186186
if (!basename.contains('_test.dart') && basename.endsWith('.dart')) {
187-
// Do not add the basename if it is in the blacklist.
188-
if (!blackList.contains(basename)) {
187+
// Do not add the basename if it is in the `blockedTests`.
188+
if (!blockedTests.contains(basename)) {
189189
e2eTestsToRun.add(basename);
190190
} else {
191-
print('INFO: Test $basename is skipped since it is blacklisted for '
192-
'${getBlackListMapKey(_browser)}');
191+
print('INFO: Test $basename is skipped since it is blocked for '
192+
'${getBlockedTestsListMapKey(_browser)}');
193193
}
194194
}
195195
}
@@ -356,10 +356,10 @@ class IntegrationTestsManager {
356356
}
357357
}
358358

359-
/// Prepares a key for the [blackList] map.
359+
/// Prepares a key for the [blockedTests] map.
360360
///
361361
/// Uses the browser name and the operating system name.
362-
String getBlackListMapKey(String browser) =>
362+
String getBlockedTestsListMapKey(String browser) =>
363363
'${browser}-${io.Platform.operatingSystem}';
364364

365365
/// Tests that should be skipped run for a specific platform-browser
@@ -368,11 +368,12 @@ String getBlackListMapKey(String browser) =>
368368
/// These tests might be failing or might have been implemented for a specific
369369
/// configuration.
370370
///
371-
/// For example a mobile browser only tests will be added to blacklist for
372-
/// `chrome-linux`, `safari-macos` and `chrome-macos`.
371+
/// For example when adding a tests only intended for mobile browsers, it should
372+
/// be added to [blockedTests] for `chrome-linux`, `safari-macos` and
373+
/// `chrome-macos`. It will work on `chrome-android`, `safari-ios`.
373374
///
374375
/// Note that integration tests are only running on chrome for now.
375-
const Map<String, List<String>> blackListsMap = <String, List<String>>{
376+
const Map<String, List<String>> blockedTestsListsMap = <String, List<String>>{
376377
'chrome-linux': [
377378
'target_platform_ios_e2e.dart',
378379
'target_platform_macos_e2e.dart',

0 commit comments

Comments
 (0)