angular-cn/packages/upgrade/test/common
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
..
component_info_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
downgrade_component_adapter_spec.ts test(upgrade): re-enable tests fixed in ivy (#27454) 2018-12-04 20:01:37 -08:00
downgrade_injectable_spec.ts fix(upgrade): improve downgrading-related error messages (#26217) 2018-11-05 16:33:55 -08:00
test_helpers.ts build: improve error message for upgrade test helper (#27706) 2018-12-17 16:45:18 -08:00