test(core): rename ivy-trusted-types integration test to trusted-types (#39614)
Since there won't be a ViewEngine-specific integration test, we don't need the Ivy prefix. PR Close #39614
This commit is contained in:
parent
569086a974
commit
ce604b909b
|
@ -69,7 +69,7 @@ INTEGRATION_TESTS = {
|
|||
"i18n": {"tags": ["no-ivy-aot"]},
|
||||
"injectable-def": {"tags": ["no-ivy-aot"]},
|
||||
"ivy-i18n": {"tags": ["no-ivy-aot"]},
|
||||
"ivy-trusted-types": {},
|
||||
"trusted-types": {},
|
||||
"language_service_plugin": {},
|
||||
"ng_elements": {"tags": ["no-ivy-aot"]},
|
||||
"ng_elements_schematics": {"tags": ["no-ivy-aot"]},
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"ivy-trusted-types": {
|
||||
"trusted-types": {
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:application": {
|
||||
|
@ -17,7 +17,7 @@
|
|||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "dist/ivy-trusted-types",
|
||||
"outputPath": "dist/trusted-types",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
|
@ -66,20 +66,20 @@
|
|||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "ivy-trusted-types:build",
|
||||
"browserTarget": "trusted-types:build",
|
||||
"headers": {
|
||||
"Content-Security-Policy": "trusted-types angular angular#unsafe-bypass; require-trusted-types-for 'script';"
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "ivy-trusted-types:build:production"
|
||||
"browserTarget": "trusted-types:build:production"
|
||||
},
|
||||
"ci": {
|
||||
"progress": false
|
||||
},
|
||||
"ci-production": {
|
||||
"browserTarget": "ivy-trusted-types:build:production",
|
||||
"browserTarget": "trusted-types:build:production",
|
||||
"progress": false
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@
|
|||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "ivy-trusted-types:build"
|
||||
"browserTarget": "trusted-types:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
|
@ -126,23 +126,23 @@
|
|||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"options": {
|
||||
"protractorConfig": "e2e/protractor.conf.js",
|
||||
"devServerTarget": "ivy-trusted-types:serve",
|
||||
"devServerTarget": "trusted-types:serve",
|
||||
"webdriverUpdate": false
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"devServerTarget": "ivy-trusted-types:serve:production"
|
||||
"devServerTarget": "trusted-types:serve:production"
|
||||
},
|
||||
"ci": {
|
||||
"devServerTarget": "ivy-trusted-types:serve:ci"
|
||||
"devServerTarget": "trusted-types:serve:ci"
|
||||
},
|
||||
"ci-production": {
|
||||
"devServerTarget": "ivy-trusted-types:serve:ci-production"
|
||||
"devServerTarget": "trusted-types:serve:ci-production"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultProject": "ivy-trusted-types"
|
||||
"defaultProject": "trusted-types"
|
||||
}
|
|
@ -10,7 +10,7 @@ describe('workspace-project App', () => {
|
|||
|
||||
it('should display welcome message', async () => {
|
||||
await page.navigateTo();
|
||||
expect(await page.getTitleText()).toEqual('ivy-trusted-types app is running!');
|
||||
expect(await page.getTitleText()).toEqual('trusted-types app is running!');
|
||||
});
|
||||
|
||||
it('should sanitize and inject bound innerHTML', async () => {
|
|
@ -21,7 +21,7 @@ module.exports = function(config) {
|
|||
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
||||
},
|
||||
coverageReporter: {
|
||||
dir: require('path').join(__dirname, './coverage/ivy-trusted-types'),
|
||||
dir: require('path').join(__dirname, './coverage/trusted-types'),
|
||||
subdir: '.',
|
||||
reporters: [
|
||||
{ type: 'html' },
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "ivy-trusted-types",
|
||||
"name": "trusted-types",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
|
@ -20,16 +20,16 @@ describe('AppComponent', () => {
|
|||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it(`should have as title 'ivy-trusted-types'`, () => {
|
||||
it(`should have as title 'trusted-types'`, () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app.title).toEqual('ivy-trusted-types');
|
||||
expect(app.title).toEqual('trusted-types');
|
||||
});
|
||||
|
||||
it('should render title', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.nativeElement;
|
||||
expect(compiled.querySelector('.content span').textContent).toContain('ivy-trusted-types app is running!');
|
||||
expect(compiled.querySelector('.content span').textContent).toContain('trusted-types app is running!');
|
||||
});
|
||||
});
|
|
@ -7,7 +7,7 @@ import {DomSanitizer, SafeHtml, SafeResourceUrl} from '@angular/platform-browser
|
|||
styleUrls: ['./app.component.css']
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'ivy-trusted-types';
|
||||
title = 'trusted-types';
|
||||
html = `<span>Hello from bound HTML</span><iframe id="bound-html-iframe"></iframe>`;
|
||||
iframeHtml = `<h1>Hello from iframe</h1>`;
|
||||
replace = `<span>Hello from second outerHTML</span>`;
|
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 948 B |
Loading…
Reference in New Issue