Skip to content

Commit cc0527d

Browse files
fishythefishCommit Queue
authored andcommitted
Remove babel from DEPS and (dart2js) IE support from test infra.
Tested: N/A Change-Id: Ib1804b49c40cac9be52e732090e8160444ebb48d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/417948 Commit-Queue: Mayank Patke <[email protected]> Reviewed-by: Alexander Thomas <[email protected]> Reviewed-by: Bob Nystrom <[email protected]> Reviewed-by: Sigmund Cherem <[email protected]>
1 parent 945b031 commit cc0527d

21 files changed

+20
-2115
lines changed

DEPS

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,6 @@ deps = {
260260
Var("dart_root") + "/third_party/markupsafe":
261261
Var("chromium_git") + "/chromium/src/third_party/markupsafe.git" +
262262
"@" + Var("markupsafe_rev"),
263-
Var("dart_root") + "/third_party/babel": {
264-
"packages": [{
265-
"package": "dart/third_party/babel",
266-
"version": "version:7.4.5",
267-
}],
268-
"dep_type": "cipd",
269-
},
270263
Var("dart_root") + "/third_party/zlib":
271264
Var("chromium_git") + "/chromium/src/third_party/zlib.git" +
272265
"@" + Var("zlib_rev"),

docs/Building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ All tests are executed using the `test.py` script under `tools/`. You need to u
158158
$ ./tools/build.py --mode release --arch ia32 most run_ffi_unit_tests
159159
```
160160

161-
Now you can run all tests as follows (Safari, Firefox, Chrome, and IE must be installed, if you want to run the tests on them):
161+
Now you can run all tests as follows (Safari, Firefox, and Chrome must be installed, if you want to run the tests on them):
162162
```bash
163-
$ ./tools/test.py -mrelease --arch=ia32 --compiler=dartk,dart2js --runtime=vm,d8,chrome,firefox,[safari,ie10]
163+
$ ./tools/test.py -mrelease --arch=ia32 --compiler=dartk,dart2js --runtime=vm,d8,chrome,firefox,[safari]
164164
```
165165
Specify the compiler used (optional -- only necessary if you are compiling to JavaScript (required for most browsers), the default is "none") and a runtime (where the code will be run).
166166

docs/Status-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and runtimes we maintain and support.
1313
We have tens of thousands of tests and a single test may be run across a
1414
combinatorial explosion of configurations. Does the static analyzer report any
1515
errors on it? In strong mode? Does it run on the standalone VM? Can dart2js
16-
compile it? Does the resulting code run in Chrome? Firefox? IE? In checked mode?
16+
compile it? Does the resulting code run in Chrome? Firefox? In checked mode?
1717
With minification on? You get the idea.
1818

1919
Many tests are only meaningful for certain combinations of configurations. A

pkg/smith/lib/configuration.dart

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ class Configuration {
282282
name, architecture, compiler, mode, runtime, system,
283283
nnbdMode: nnbdMode,
284284
sanitizer: sanitizer,
285-
babel: stringOption("babel"),
286285
builderTag: stringOption("builder-tag"),
287286
genKernelOptions: stringListOption("gen-kernel-options"),
288287
vmOptions: stringListOption("vm-options"),
@@ -329,8 +328,6 @@ class Configuration {
329328

330329
final Sanitizer sanitizer;
331330

332-
final String babel;
333-
334331
final String builderTag;
335332

336333
final List<String> genKernelOptions;
@@ -385,7 +382,6 @@ class Configuration {
385382
this.runtime, this.system,
386383
{NnbdMode? nnbdMode,
387384
Sanitizer? sanitizer,
388-
String? babel,
389385
String? builderTag,
390386
List<String>? genKernelOptions,
391387
List<String>? vmOptions,
@@ -408,7 +404,6 @@ class Configuration {
408404
bool? useQemu})
409405
: nnbdMode = nnbdMode ?? NnbdMode.strong,
410406
sanitizer = sanitizer ?? Sanitizer.none,
411-
babel = babel ?? "",
412407
builderTag = builderTag ?? "",
413408
genKernelOptions = genKernelOptions ?? <String>[],
414409
vmOptions = vmOptions ?? <String>[],
@@ -448,7 +443,6 @@ class Configuration {
448443
this.system, {
449444
required this.nnbdMode,
450445
required this.sanitizer,
451-
required this.babel,
452446
required this.builderTag,
453447
required this.genKernelOptions,
454448
required this.vmOptions,
@@ -486,7 +480,6 @@ class Configuration {
486480
System.host,
487481
nnbdMode: source.nnbdMode,
488482
sanitizer: source.sanitizer,
489-
babel: source.babel,
490483
builderTag: source.builderTag,
491484
genKernelOptions: source.genKernelOptions,
492485
vmOptions: source.vmOptions,
@@ -523,7 +516,6 @@ class Configuration {
523516
system == other.system &&
524517
nnbdMode == other.nnbdMode &&
525518
sanitizer == other.sanitizer &&
526-
babel == other.babel &&
527519
builderTag == other.builderTag &&
528520
_listsEqual(genKernelOptions, other.genKernelOptions) &&
529521
_listsEqual(vmOptions, other.vmOptions) &&
@@ -575,7 +567,6 @@ class Configuration {
575567
runtime.hashCode ^
576568
system.hashCode ^
577569
nnbdMode.hashCode ^
578-
babel.hashCode ^
579570
builderTag.hashCode ^
580571
genKernelOptions.join(" & ").hashCode ^
581572
vmOptions.join(" & ").hashCode ^
@@ -619,7 +610,6 @@ class Configuration {
619610
fields.add("$name: [${field.join(", ")}]");
620611
}
621612

622-
if (babel.isNotEmpty) fields.add("babel: $babel");
623613
if (builderTag.isNotEmpty) fields.add("builder-tag: $builderTag");
624614
stringListField("gen-kernel-options", genKernelOptions);
625615
stringListField("vm-options", vmOptions);
@@ -676,7 +666,6 @@ class Configuration {
676666

677667
fields.add("nnbd: $nnbdMode ${other.nnbdMode}");
678668
fields.add("sanitizer: $sanitizer ${other.sanitizer}");
679-
stringField("babel", babel, other.babel);
680669
stringField("builder-tag", builderTag, other.builderTag);
681670
stringListField(
682671
"gen-kernel-options", genKernelOptions, other.genKernelOptions);
@@ -865,9 +854,6 @@ class Compiler extends NamedEnum {
865854
Runtime.firefox,
866855
Runtime.chrome,
867856
Runtime.safari,
868-
Runtime.ie9,
869-
Runtime.ie10,
870-
Runtime.ie11,
871857
Runtime.edge,
872858
Runtime.chromeOnAndroid,
873859
];
@@ -1007,9 +993,6 @@ class Runtime extends NamedEnum {
1007993
static const firefox = Runtime._('firefox');
1008994
static const chrome = Runtime._('chrome');
1009995
static const safari = Runtime._('safari');
1010-
static const ie9 = Runtime._('ie9');
1011-
static const ie10 = Runtime._('ie10');
1012-
static const ie11 = Runtime._('ie11');
1013996
static const edge = Runtime._('edge');
1014997
static const chromeOnAndroid = Runtime._('chromeOnAndroid');
1015998
static const none = Runtime._('none');
@@ -1026,9 +1009,6 @@ class Runtime extends NamedEnum {
10261009
firefox,
10271010
chrome,
10281011
safari,
1029-
ie9,
1030-
ie10,
1031-
ie11,
10321012
edge,
10331013
chromeOnAndroid,
10341014
none
@@ -1043,27 +1023,14 @@ class Runtime extends NamedEnum {
10431023

10441024
const Runtime._(super.name);
10451025

1046-
bool get isBrowser => const [
1047-
ie9,
1048-
ie10,
1049-
ie11,
1050-
edge,
1051-
safari,
1052-
chrome,
1053-
firefox,
1054-
chromeOnAndroid
1055-
].contains(this);
1056-
1057-
bool get isIE => name.startsWith("ie");
1026+
bool get isBrowser =>
1027+
const [edge, safari, chrome, firefox, chromeOnAndroid].contains(this);
10581028

10591029
bool get isSafari => name.startsWith("safari");
10601030

10611031
/// Whether this runtime is a command-line JavaScript environment.
10621032
bool get isJSCommandLine => const [d8, jsc, jsshell].contains(this);
10631033

1064-
/// If the runtime doesn't support `Window.open`, we use iframes instead.
1065-
bool get requiresIFrame => !const [ie11, ie10].contains(this);
1066-
10671034
/// The preferred compiler to use with this runtime if no other compiler is
10681035
/// specified.
10691036
Compiler get defaultCompiler {
@@ -1080,9 +1047,6 @@ class Runtime extends NamedEnum {
10801047
case firefox:
10811048
case chrome:
10821049
case safari:
1083-
case ie9:
1084-
case ie10:
1085-
case ie11:
10861050
case edge:
10871051
case chromeOnAndroid:
10881052
return Compiler.dart2js;

0 commit comments

Comments
 (0)