You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare for running tests on Windows (flutter#14112)
Seems like we don't yet run the flutter tests on Windows, but we're
close to being able to. This makes some minor changes to make that
more possible:
- fix the stack parsing code to support Windows paths
- fix the tests for the stack error handling code to handle Windows paths
- skip some tests that rely on Ahem font metrics
'#3 main \\([^)]+flutter/test/foundation/error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n'
83
+
'#3 main \\([^)]+flutter${divider}test${divider}foundation${divider}error_reporting_test\\.dart:[0-9]+:[0-9]+\\)\n'
81
84
'(.+\n)+'// TODO(ianh): when fixing #4021, also filter out frames from the test infrastructure below the first call to our main()
82
85
'\\(elided [0-9]+ frames from package dart:async\\)\n'
83
86
'\n'
@@ -107,7 +110,7 @@ Future<Null> main() async {
107
110
'word word word word word word word word word word word word word word word word word word word word '
108
111
'word word word word word word word word word word word word word word word word word word word word '
109
112
'word word word word word word word word word word word word word word word word word word word word\n'
110
-
'\'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\'\n'
113
+
'\'[^\']+flutter${divider}test${divider}foundation${divider}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\'\n'
111
114
'\n'
112
115
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
113
116
'more information in this error message to help you determine and fix the underlying cause\\.\n'
@@ -147,18 +150,18 @@ Future<Null> main() async {
147
150
expect(console.join('\n'), matches(newRegExp(
148
151
'^══╡ EXCEPTION CAUGHT BY ERROR HANDLING TEST ╞═══════════════════════════════════════════════════════\n'
149
152
'The following assertion was thrown testing the error handling logic:\n'
150
-
'\'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.\n'
153
+
'\'[^\']+flutter${divider}test${divider}foundation${divider}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.\n'
151
154
'\n'
152
155
'Either the assertion indicates an error in the framework itself, or we should provide substantially '
153
156
'more information in this error message to help you determine and fix the underlying cause\\.\n'
154
157
'In either case, please report this assertion by filing a bug on GitHub:\n'
expect(console.join('\n'), matches('Another exception was thrown: \'[^\']+flutter/test/foundation/error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.'));
176
+
expect(console.join('\n'), matches('Another exception was thrown: \'[^\']+flutter${divider}test${divider}foundation${divider}error_reporting_test\\.dart\': Failed assertion: line [0-9]+ pos [0-9]+: \'false\': is not true\\.'));
0 commit comments