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
e9ca9cc1
Unverified
Commit
e9ca9cc1
authored
Jan 27, 2023
by
Michael Goderbauer
Committed by
GitHub
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to dart:ui's window singelton (#119296)
parent
ab2232a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
gesture_binding_test.dart
packages/flutter/test/gestures/gesture_binding_test.dart
+1
-1
mouse_tracker_test.dart
packages/flutter/test/rendering/mouse_tracker_test.dart
+1
-1
independent_widget_layout_test.dart
.../flutter/test/widgets/independent_widget_layout_test.dart
+2
-4
No files found.
packages/flutter/test/gestures/gesture_binding_test.dart
View file @
e9ca9cc1
...
...
@@ -350,7 +350,7 @@ void main() {
final
List
<
PointerEvent
>
events
=
<
PointerEvent
>[];
binding
.
callback
=
events
.
add
;
ui
.
window
.
onPointerDataPacket
?.
call
(
packet
);
binding
.
platformDispatcher
.
onPointerDataPacket
?.
call
(
packet
);
expect
(
events
.
length
,
3
);
expect
(
events
[
0
],
isA
<
PointerPanZoomStartEvent
>());
expect
(
events
[
1
],
isA
<
PointerPanZoomUpdateEvent
>());
...
...
packages/flutter/test/rendering/mouse_tracker_test.dart
View file @
e9ca9cc1
...
...
@@ -134,7 +134,7 @@ void main() {
test
(
'should not crash if the first event is a Removed event'
,
()
{
final
List
<
PointerEvent
>
events
=
<
PointerEvent
>[];
setUpWithOneAnnotation
(
logEvents:
events
);
ui
.
window
.
onPointerDataPacket
!(
ui
.
PointerDataPacket
(
data:
<
ui
.
PointerData
>[
binding
.
platformDispatcher
.
onPointerDataPacket
!(
ui
.
PointerDataPacket
(
data:
<
ui
.
PointerData
>[
_pointerData
(
PointerChange
.
remove
,
Offset
.
zero
),
]));
events
.
clear
();
...
...
packages/flutter/test/widgets/independent_widget_layout_test.dart
View file @
e9ca9cc1
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:ui'
as
ui
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
@@ -11,7 +9,7 @@ import 'package:flutter_test/flutter_test.dart';
const
Size
_kTestViewSize
=
Size
(
800.0
,
600.0
);
class
ScheduledFrameTrackingWindow
extends
TestWindow
{
ScheduledFrameTrackingWindow
(
)
:
super
(
window:
ui
.
window
);
ScheduledFrameTrackingWindow
(
{
required
super
.
window
}
);
int
_scheduledFrameCount
=
0
;
int
get
scheduledFrameCount
=>
_scheduledFrameCount
;
...
...
@@ -28,7 +26,7 @@ class ScheduledFrameTrackingWindow extends TestWindow {
}
class
ScheduledFrameTrackingBindings
extends
AutomatedTestWidgetsFlutterBinding
{
final
ScheduledFrameTrackingWindow
_window
=
ScheduledFrameTrackingWindow
(
);
late
final
ScheduledFrameTrackingWindow
_window
=
ScheduledFrameTrackingWindow
(
window:
super
.
window
);
@override
ScheduledFrameTrackingWindow
get
window
=>
_window
;
...
...
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