@ -27,12 +27,16 @@ export class AppComponent {
|
||||
}
|
||||
}
|
||||
|
||||
create() { this.show = true; }
|
||||
create() {
|
||||
this.show = true;
|
||||
}
|
||||
|
||||
update() {
|
||||
this.msg = this.msg === 'hello' ? 'bye' : 'hello';
|
||||
this.list[0].text = this.msg;
|
||||
}
|
||||
|
||||
destroy() { this.show = false; }
|
||||
destroy() {
|
||||
this.show = false;
|
||||
}
|
||||
}
|
||||
|
@ -10,8 +10,7 @@ import {$, browser} from 'protractor';
|
||||
import {runBenchmark} from '../../../e2e_util/perf_util';
|
||||
|
||||
describe('class bindings perf', () => {
|
||||
|
||||
it('should work for update', async() => {
|
||||
it('should work for update', async () => {
|
||||
browser.rootEl = '#root';
|
||||
await runBenchmark({
|
||||
id: 'create',
|
||||
@ -23,7 +22,7 @@ describe('class bindings perf', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should work for update', async() => {
|
||||
it('should work for update', async () => {
|
||||
browser.rootEl = '#root';
|
||||
await runBenchmark({
|
||||
id: 'update',
|
||||
@ -34,5 +33,4 @@ describe('class bindings perf', () => {
|
||||
work: () => $('#update').click()
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user