Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fbf83912
Unverified
Commit
fbf83912
authored
Nov 17, 2021
by
Alexander Dahlberg
Committed by
GitHub
Nov 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed leak and removed no-shuffle tag in window_test.dart (#93604)
parent
0ff8519b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
window_test.dart
packages/flutter_test/test/window_test.dart
+2
-6
No files found.
packages/flutter_test/test/window_test.dart
View file @
fbf83912
...
...
@@ -2,12 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
// dependencies have been fixed.
// https://github.com/flutter/flutter/issues/85160
// Fails with "flutter test --test-randomize-ordering-seed=123"
@Tags
(<
String
>[
'no-shuffle'
])
import
'dart:ui'
as
ui
show
window
;
import
'dart:ui'
show
Size
,
Locale
,
WindowPadding
,
AccessibilityFeatures
,
Brightness
;
...
...
@@ -193,11 +187,13 @@ void main() {
});
testWidgets
(
'TestWindow sends fake locales when WidgetsBindingObserver notifiers are called'
,
(
WidgetTester
tester
)
async
{
final
List
<
Locale
>
defaultLocales
=
WidgetsBinding
.
instance
!.
window
.
locales
;
final
TestObserver
observer
=
TestObserver
();
retrieveTestBinding
(
tester
).
addObserver
(
observer
);
final
List
<
Locale
>
expectedValue
=
<
Locale
>[
const
Locale
(
'fake_language_code'
)];
retrieveTestBinding
(
tester
).
window
.
localesTestValue
=
expectedValue
;
expect
(
observer
.
locales
,
equals
(
expectedValue
));
retrieveTestBinding
(
tester
).
window
.
localesTestValue
=
defaultLocales
;
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment