
Cherry-pick the beta branch test https://github.com/flutter/flutter/pull/157136 back to master so this doesn't regress in the next beta. This is the framework test for https://github.com/flutter/flutter/issues/157016 on master. Engine fix can be merged once this merges.