Skip to content

Commit b3fb148

Browse files
authored
Remove support for Internet Explorer (#2114)
Closes #1614 Use should be replaced by the edge browser. It has been 2 years since we removed support for internet explorer in dart2js. We have not been testing internet explorer integration, and it may already be broken by dart2js changes. Remove every reference to `ie` or internet explorer in the repo. Treat this as non-breaking for `package:test` even though there is a small risk of breaking some users still using internet explorer and it happens to still be working.
1 parent 48a2bc3 commit b3fb148

File tree

15 files changed

+13
-147
lines changed

15 files changed

+13
-147
lines changed

pkgs/test/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
feature, which is why we are making this change in a non-breaking release.
1313
* If you do require this feature, file an issue and we can look at adding it
1414
back.
15+
* **BREAKING**: Fully remove support for Internet Explorer.
1516
* Fix running of tests defined under `lib/` with relative imports to other
1617
libraries in the package.
1718

pkgs/test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ only supports boolean operations. The following identifiers are defined:
348348

349349
* `safari`: Whether the test is running on Apple Safari.
350350

351-
* `ie`: Whether the test is running on Microsoft Internet Explorer.
351+
* `edge`: Whether the test is running on Microsoft Edge browser.
352352

353353
* `node`: Whether the test is running on Node.js.
354354

pkgs/test/dart_test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ tags:
3939
add_tags: [dart2js]
4040
test_on: mac-os
4141

42-
ie:
43-
add_tags: [dart2js]
44-
test_on: windows
45-
skip: https://github.com/dart-lang/test/issues/1614
4642
edge:
4743
add_tags: [dart2js]
4844
test_on: windows

pkgs/test/doc/configuration.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ tested on supported platforms.
185185

186186
```yaml
187187
tags:
188-
# Internet Explorer doesn't support promises yet.
189-
promises: {test_on: "browser && !ie"}
188+
# Test on browsers other than firefox
189+
some_feature: {test_on: "browser && !firefox"}
190190
```
191191

192192
The field can also be used at the top level of the configuration file to
@@ -351,11 +351,10 @@ to quickly select a given set of tests.
351351

352352
```yaml
353353
presets:
354-
# Pass "-P ie" to run only Internet Explorer tests.
355-
ie:
354+
# Pass "-P feature" to run only tests with "feature name" in the name.
355+
feature:
356356
plain_names:
357-
- "IE"
358-
- "Internet Explorer"
357+
- "feature name"
359358
```
360359

361360
This field is not supported in the
@@ -611,7 +610,7 @@ tags:
611610
chrome: {add_tags: [browser]}
612611
firefox: {add_tags: [browser]}
613612
safari: {add_tags: [browser]}
614-
ie: {add_tags: [browser]}
613+
edge: {add_tags: [browser]}
615614
```
616615

617616
This field is not supported in the

pkgs/test/lib/src/executable.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Future<void> main(List<String> args) async {
1717
Runtime.edge,
1818
Runtime.firefox,
1919
Runtime.safari,
20-
Runtime.internetExplorer
2120
], BrowserPlatform.start);
2221

2322
await executable.main(args);

pkgs/test/lib/src/runner/browser/browser_manager.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import '../executable_settings.dart';
2323
import 'browser.dart';
2424
import 'chrome.dart';
2525
import 'firefox.dart';
26-
import 'internet_explorer.dart';
2726
import 'microsoft_edge.dart';
2827
import 'safari.dart';
2928

@@ -158,7 +157,6 @@ class BrowserManager {
158157
Runtime.chrome => Chrome(url, configuration, settings: settings),
159158
Runtime.firefox => Firefox(url, settings: settings),
160159
Runtime.safari => Safari(url, settings: settings),
161-
Runtime.internetExplorer => InternetExplorer(url, settings: settings),
162160
Runtime.edge => MicrosoftEdge(url, configuration, settings: settings),
163161
_ => throw ArgumentError('$browser is not a browser.'),
164162
};

pkgs/test/lib/src/runner/browser/default_settings.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ final defaultSettings = UnmodifiableMapView({
2727
macOSExecutable: '/Applications/Firefox.app/Contents/MacOS/firefox-bin',
2828
windowsExecutable: r'Mozilla Firefox\firefox.exe',
2929
environmentOverride: 'FIREFOX_EXECUTABLE'),
30-
Runtime.internetExplorer:
31-
ExecutableSettings(windowsExecutable: r'Internet Explorer\iexplore.exe'),
3230
Runtime.safari: ExecutableSettings(
3331
macOSExecutable: '/Applications/Safari.app/Contents/MacOS/Safari',
3432
environmentOverride: 'SAFARI_EXECUTABLE'),

pkgs/test/lib/src/runner/browser/internet_explorer.dart

Lines changed: 0 additions & 34 deletions
This file was deleted.

pkgs/test/test/runner/browser/internet_explorer_test.dart

Lines changed: 0 additions & 84 deletions
This file was deleted.

pkgs/test/test/runner/compiler_runtime_matrix_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ void main() {
2222
for (var runtime in Runtime.builtIn) {
2323
for (var compiler in runtime.supportedCompilers) {
2424
// Ignore the platforms we can't run on this OS.
25-
if (((runtime == Runtime.internetExplorer || runtime == Runtime.edge) &&
26-
!Platform.isWindows) ||
25+
if ((runtime == Runtime.edge && !Platform.isWindows) ||
2726
(runtime == Runtime.safari && !Platform.isMacOS)) {
2827
continue;
2928
}
@@ -116,8 +115,7 @@ void main() {
116115
},
117116
skip: compiler == Compiler.dart2wasm
118117
? 'Wasm tests are experimental and require special setup'
119-
: [Runtime.firefox, Runtime.nodeJS, Runtime.internetExplorer]
120-
.contains(runtime) &&
118+
: [Runtime.firefox, Runtime.nodeJS].contains(runtime) &&
121119
Platform.isWindows
122120
? 'https://github.com/dart-lang/test/issues/1942'
123121
: null);

0 commit comments

Comments
 (0)