Commit 942d1fa6 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1157 from Hixie/minor-fixes

Minor cleanups (spelling mistakes, unneeded casts)
parents f81175eb 0376c35a
...@@ -21,12 +21,12 @@ class InnerComponent extends StatefulComponent { ...@@ -21,12 +21,12 @@ class InnerComponent extends StatefulComponent {
} }
} }
class OutterContainer extends StatefulComponent { class OuterContainer extends StatefulComponent {
OutterContainer({ this.child }); OuterContainer({ this.child });
InnerComponent child; InnerComponent child;
void syncConstructorArguments(OutterContainer source) { void syncConstructorArguments(OuterContainer source) {
child = source.child; child = source.child;
} }
...@@ -41,22 +41,22 @@ void main() { ...@@ -41,22 +41,22 @@ void main() {
WidgetTester tester = new WidgetTester(); WidgetTester tester = new WidgetTester();
InnerComponent inner; InnerComponent inner;
OutterContainer outter; OuterContainer outer;
tester.pumpFrame(() { tester.pumpFrame(() {
return new OutterContainer(child: new InnerComponent()); return new OuterContainer(child: new InnerComponent());
}); });
tester.pumpFrame(() { tester.pumpFrame(() {
inner = new InnerComponent(); inner = new InnerComponent();
outter = new OutterContainer(child: inner); outer = new OuterContainer(child: inner);
return outter; return outer;
}); });
expect(inner._didInitState, isFalse); expect(inner._didInitState, isFalse);
expect(inner.parent, isNull); expect(inner.parent, isNull);
outter.setState(() {}); outer.setState(() {});
scheduler.beginFrame(0.0); scheduler.beginFrame(0.0);
expect(inner._didInitState, isFalse); expect(inner._didInitState, isFalse);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment