Only write the pid-file while listening to SIGUSR signals. (#74533)
This commit is contained in:
@@ -2,19 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_driver/driver_extension.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
|
||||
String log = '';
|
||||
|
||||
void main() {
|
||||
enableFlutterDriverExtension(handler: (String message) async {
|
||||
log = 'log:';
|
||||
await WidgetsBinding.instance.reassembleApplication();
|
||||
return log;
|
||||
});
|
||||
print('called main');
|
||||
runApp(const MaterialApp(home: Test()));
|
||||
}
|
||||
|
||||
@@ -22,9 +14,7 @@ class Test extends SingleChildRenderObjectWidget {
|
||||
const Test({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
RenderTest createRenderObject(BuildContext context) {
|
||||
return RenderTest();
|
||||
}
|
||||
RenderTest createRenderObject(BuildContext context) => RenderTest();
|
||||
}
|
||||
|
||||
class RenderTest extends RenderProxyBox {
|
||||
@@ -33,11 +23,17 @@ class RenderTest extends RenderProxyBox {
|
||||
@override
|
||||
void debugPaintSize(PaintingContext context, Offset offset) {
|
||||
super.debugPaintSize(context, offset);
|
||||
log += ' debugPaintSize';
|
||||
print('called debugPaintSize');
|
||||
}
|
||||
|
||||
@override
|
||||
void paint(PaintingContext context, Offset offset) {
|
||||
log += ' paint';
|
||||
print('called paint');
|
||||
}
|
||||
|
||||
@override
|
||||
void reassemble() {
|
||||
print('called reassemble');
|
||||
super.reassemble();
|
||||
}
|
||||
}
|
||||
|
||||
41
dev/integration_tests/ui/lib/overflow.dart
Normal file
41
dev/integration_tests/ui/lib/overflow.dart
Normal file
@@ -0,0 +1,41 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void main() {
|
||||
runApp(const MaterialApp(home: Test()));
|
||||
}
|
||||
|
||||
class Test extends StatefulWidget {
|
||||
const Test({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
State<Test> createState() => _TestState();
|
||||
}
|
||||
|
||||
class _TestState extends State<Test> {
|
||||
bool _triggered = false;
|
||||
|
||||
@override
|
||||
void reassemble() {
|
||||
_triggered = true;
|
||||
super.reassemble();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!_triggered)
|
||||
return const SizedBox.shrink();
|
||||
return Row(children: const <Widget>[
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
SizedBox(width: 10000.0),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user