"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "aio/tests/e2e/src/onerror.e2e-spec.ts" between
angular-11.0.1.tar.gz and angular-11.0.2.tar.gz

About: Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript.

onerror.e2e-spec.ts  (angular-11.0.1):onerror.e2e-spec.ts  (angular-11.0.2)
import { browser } from 'protractor'; import { browser } from 'protractor';
import { SitePage } from './app.po'; import { SitePage } from './app.po';
/* tslint:disable:max-line-length */ /* tslint:disable:max-line-length */
describe('onerror handler', () => { describe('onerror handler', () => {
let page: SitePage; let page: SitePage;
beforeAll(() => { beforeAll(async () => {
page = new SitePage(); page = new SitePage();
page.navigateTo(''); await page.navigateTo('');
}); });
it('(called without an error object) should call ga with a payload based on th e message, url, row and column arguments', async () => { it('(called without an error object) should call ga with a payload based on th e message, url, row and column arguments', async () => {
const message1 = await callOnError('Error: some error message', 'some-file.j s', 12, 3, undefined); const message1 = await callOnError('Error: some error message', 'some-file.j s', 12, 3, undefined);
expect(message1).toEqual('some error message\nsome-file.js:12:3'); expect(message1).toEqual('some error message\nsome-file.js:12:3');
const message2 = await callOnError('Error: some error message', undefined, u ndefined, undefined, undefined); const message2 = await callOnError('Error: some error message', undefined, u ndefined, undefined, undefined);
expect(message2).toEqual('some error message\nnull:?:?'); expect(message2).toEqual('some error message\nnull:?:?');
}); });
it('(called without an error object) should call ga with a payload that is no longer that 150 characters', async () => { it('(called without an error object) should call ga with a payload that is no longer that 150 characters', async () => {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)