refactor(ivy): Move instructions back to ɵɵ (#30546)
There is an encoding issue with using delta `Δ`, where the browser will attempt to detect the file encoding if the character set is not explicitly declared on a `<script/>` tag, and Chrome will find the `Δ` character and decide it is window-1252 encoding, which misinterprets the `Δ` character to be some other character that is not a valid JS identifier character So back to the frog eyes we go. ``` __ /ɵɵ\ ( -- ) - I am ineffable. I am forever. _/ \_ / \ / \ == == == ``` PR Close #30546
This commit is contained in:
@ -8,14 +8,14 @@
|
||||
|
||||
import {getLContext} from '../../src/render3/context_discovery';
|
||||
import {LViewDebug, toDebug} from '../../src/render3/debug';
|
||||
import {RenderFlags, ΔdefineComponent, ΔelementEnd, ΔelementStart, Δtext} from '../../src/render3/index';
|
||||
import {RenderFlags, ɵɵdefineComponent, ɵɵelementEnd, ɵɵelementStart, ɵɵtext} from '../../src/render3/index';
|
||||
|
||||
import {ComponentFixture} from './render_util';
|
||||
|
||||
describe('Debug Representation', () => {
|
||||
it('should generate a human readable version', () => {
|
||||
class MyComponent {
|
||||
static ngComponentDef = ΔdefineComponent({
|
||||
static ngComponentDef = ɵɵdefineComponent({
|
||||
type: MyComponent,
|
||||
selectors: [['my-comp']],
|
||||
vars: 0,
|
||||
@ -23,9 +23,9 @@ describe('Debug Representation', () => {
|
||||
factory: () => new MyComponent(),
|
||||
template: function(rf: RenderFlags, ctx: MyComponent) {
|
||||
if (rf == RenderFlags.Create) {
|
||||
ΔelementStart(0, 'div', ['id', '123']);
|
||||
Δtext(1, 'Hello World');
|
||||
ΔelementEnd();
|
||||
ɵɵelementStart(0, 'div', ['id', '123']);
|
||||
ɵɵtext(1, 'Hello World');
|
||||
ɵɵelementEnd();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user