angular-cn/packages/upgrade/test
Paul Gschwendtner 87d7b747d2 build: improve error message for upgrade test helper (#27706)
Currently whenever the upgrade test helper fails to load a given AngularJS version, the error that will be rejected is technically not an error because the `onerror` callback is not returning an error, but an "ErrorEvent".

Since that `ErrorEvent` is basically just rejected, browsers will print
the error as followed:

```
Failed: [object Event]
```

This is not helpful at all and also implies that there _might_ be more
information hidden within the `Event` instance. Unfortunately that's not
the case (at least on browsers we test against) and the logic to extract
the data from the event would be not worth the effort, we just return a
simple custom `Error` that won't imply that there is more information
hidden.

PR Close #27706
2018-12-17 16:45:18 -08:00
..
common build: improve error message for upgrade test helper (#27706) 2018-12-17 16:45:18 -08:00
dynamic fix(upgrade): upgrade Directive facade should not return different instance from constructor (#27660) 2018-12-17 14:51:34 -08:00
static test(upgrade): update test failure cause descriptions (#27660) 2018-12-17 14:51:34 -08:00
BUILD.bazel test(upgrade): re-enable tests that have been fixed (#27305) 2018-11-29 21:29:27 -08:00