Commit 5f9e5605 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by Ian Hickson

Fix analyzer errors (#11284)

parent 9480a3e5
...@@ -34,7 +34,7 @@ void main() { ...@@ -34,7 +34,7 @@ void main() {
test('RenderPhysicalModel compositing on Fuchsia', () { test('RenderPhysicalModel compositing on Fuchsia', () {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia; debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
final root = new RenderPhysicalModel(color: new Color(0xffff00ff)); final RenderPhysicalModel root = new RenderPhysicalModel(color: const Color(0xffff00ff));
layout(root, phase: EnginePhase.composite); layout(root, phase: EnginePhase.composite);
expect(root.needsCompositing, isFalse); expect(root.needsCompositing, isFalse);
...@@ -54,7 +54,7 @@ void main() { ...@@ -54,7 +54,7 @@ void main() {
test('RenderPhysicalModel compositing on non-Fuchsia', () { test('RenderPhysicalModel compositing on non-Fuchsia', () {
debugDefaultTargetPlatformOverride = TargetPlatform.iOS; debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
final root = new RenderPhysicalModel(color: new Color(0xffff00ff)); final RenderPhysicalModel root = new RenderPhysicalModel(color: const Color(0xffff00ff));
layout(root, phase: EnginePhase.composite); layout(root, phase: EnginePhase.composite);
expect(root.needsCompositing, isFalse); expect(root.needsCompositing, 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