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
84fe2ade
Unverified
Commit
84fe2ade
authored
Aug 02, 2019
by
Dan Field
Committed by
GitHub
Aug 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nosuchmethod window (#37417)
parent
18418dff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
window.dart
packages/flutter_test/lib/src/window.dart
+8
-0
window_test.dart
packages/flutter_test/test/window_test.dart
+5
-0
No files found.
packages/flutter_test/lib/src/window.dart
View file @
84fe2ade
...
...
@@ -373,4 +373,12 @@ class TestWindow implements Window {
clearTextScaleFactorTestValue
();
clearViewInsetsTestValue
();
}
/// This gives us some grace time when the dart:ui side adds something to
/// Window, and makes things easier when we do rolls to give us time to
/// catch up.
@override
dynamic
noSuchMethod
(
Invocation
invocation
)
{
return
null
;
}
}
packages/flutter_test/test/window_test.dart
View file @
84fe2ade
...
...
@@ -10,6 +10,11 @@ import 'package:flutter_test/flutter_test.dart';
import
'package:meta/meta.dart'
;
void
main
(
)
{
test
(
'TestWindow can handle new methods without breaking'
,
()
{
final
dynamic
testWindow
=
TestWindow
(
window:
ui
.
window
);
expect
(
testWindow
.
someNewProperty
,
null
);
});
testWidgets
(
'TestWindow can fake device pixel ratio'
,
(
WidgetTester
tester
)
async
{
verifyThatTestWindowCanFakeProperty
<
double
>(
tester:
tester
,
...
...
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