• Greg Spencer's avatar
    Add/rewrite tests for FocusScope. (#28169) · 89512e46
    Greg Spencer authored
    In anticipation of changing a lot of the focus code, I'm adding some tests for the FocusScope.
    
    As a result, I was able to find and fix a bug where there was an incorrect assert.
    
    I also added some more documentation.
    
    Several of the tests enforce what I think is incorrect behavior related to passing focus off when the widget tree gets rebuilt without focus nodes that were previously there, but I'm not going to change that behavior in this PR.
    
    I also renamed focus_test.dart to focus_scope_test.dart to be more in line with our naming conventions.
    89512e46
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...