@@ -417,6 +417,30 @@ void main() {
417417 });
418418 });
419419
420+ testWidgets ('editing a string input to its current value (title)' , (
421+ tester,
422+ ) async {
423+ return await tester.runAsync (() async {
424+ // Load the property editor.
425+ controller.initForTestsOnly (editableArgsResult: result1);
426+ await tester.pumpWidget (wrap (propertyEditor));
427+
428+ // Edit the title.
429+ final titleInput = _findTextFormField ('title' );
430+ await _inputText (titleInput, text: 'Hello world!' , tester: tester);
431+
432+ // Verify it doesn't trigger an edit.
433+ try {
434+ await nextEditCompleter.future.timeout (
435+ const Duration (milliseconds: 100 ),
436+ );
437+ fail ('nextEditCompleter was unexpectedly completed.' );
438+ } on TimeoutException catch (e) {
439+ expect (e, isA <TimeoutException >());
440+ }
441+ });
442+ });
443+
420444 testWidgets ('submitting a string input with TAB (title)' , (tester) async {
421445 return await tester.runAsync (() async {
422446 // Load the property editor.
@@ -474,6 +498,30 @@ void main() {
474498 });
475499 });
476500
501+ testWidgets ('editing a numeric input to its default value (height)' , (
502+ tester,
503+ ) async {
504+ return await tester.runAsync (() async {
505+ // Load the property editor.
506+ controller.initForTestsOnly (editableArgsResult: result1);
507+ await tester.pumpWidget (wrap (propertyEditor));
508+
509+ // Edit the height.
510+ final heightInput = _findTextFormField ('height' );
511+ await _inputText (heightInput, text: '20.0' , tester: tester);
512+
513+ // Verify it doesn't trigger an edit.
514+ try {
515+ await nextEditCompleter.future.timeout (
516+ const Duration (milliseconds: 100 ),
517+ );
518+ fail ('nextEditCompleter was unexpectedly completed.' );
519+ } on TimeoutException catch (e) {
520+ expect (e, isA <TimeoutException >());
521+ }
522+ });
523+ });
524+
477525 testWidgets ('submitting a numeric input with TAB (height)' , (tester) async {
478526 return await tester.runAsync (() async {
479527 // Load the property editor.
0 commit comments