parent
40da51f641
commit
a4e956a7cf
|
@ -3460,13 +3460,12 @@ describe('styling', () => {
|
|||
class MyApp {
|
||||
// When the first view in the list gets CD-ed, everything works.
|
||||
// When the second view gets CD-ed, the styling has already created the data structures
|
||||
// in the `TView`. As a result when
|
||||
// `[class.foo]` runs it already knows that `[class]` is a duplicate and hence it
|
||||
// should check with it. While the resolution is happening it reads the value of the
|
||||
// `[class]`, however `[class]` has not yet executed and therefore it does not have
|
||||
// normalized value in its `LView`. The result is that the assertions fails as it
|
||||
// expects an
|
||||
// `KeyValueArray`.
|
||||
// in the `TView`. As a result when `[class.foo]` runs it already knows that `[class]`
|
||||
// is a duplicate and hence it can overwrite the `[class.foo]` binding. While the
|
||||
// styling resolution is happening the algorithm reads the value of the `[class]`
|
||||
// (because it overwrites `[class.foo]`), however `[class]` has not yet executed and
|
||||
// therefore it does not have normalized value in its `LView`. The result is that the
|
||||
// assertions fails as it expects an `KeyValueArray`.
|
||||
}
|
||||
|
||||
TestBed.configureTestingModule({declarations: [MyApp, MyCmp, HostStylingsDir]});
|
||||
|
|
Loading…
Reference in New Issue