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
4b98c056
Unverified
Commit
4b98c056
authored
Apr 09, 2020
by
Jonah Williams
Committed by
GitHub
Apr 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix and re-land "re-enable `android_view_test` (#54214)" (#54312)" (#54387)
This reverts commit
13052b10
.
parent
292bbd87
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
24 deletions
+8
-24
SimplePlatformView.java
.../flutter/integration/androidviews/SimplePlatformView.java
+4
-10
motion_events_page.dart
...tegration_tests/android_views/lib/motion_events_page.dart
+0
-7
wm_integrations.dart
dev/integration_tests/android_views/lib/wm_integrations.dart
+1
-1
main_test.dart
...ntegration_tests/android_views/test_driver/main_test.dart
+3
-6
No files found.
dev/integration_tests/android_views/android/app/src/main/java/io/flutter/integration/androidviews/SimplePlatformView.java
View file @
4b98c056
...
@@ -52,27 +52,21 @@ public class SimplePlatformView implements PlatformView, MethodChannel.MethodCal
...
@@ -52,27 +52,21 @@ public class SimplePlatformView implements PlatformView, MethodChannel.MethodCal
touchPipe
.
disable
();
touchPipe
.
disable
();
result
.
success
(
null
);
result
.
success
(
null
);
return
;
return
;
case
"showA
ndHideA
lertDialog"
:
case
"showAlertDialog"
:
showA
ndHideA
lertDialog
(
result
);
showAlertDialog
(
result
);
return
;
return
;
}
}
result
.
notImplemented
();
result
.
notImplemented
();
}
}
private
void
showA
ndHideA
lertDialog
(
MethodChannel
.
Result
result
)
{
private
void
showAlertDialog
(
MethodChannel
.
Result
result
)
{
Context
context
=
view
.
getContext
();
Context
context
=
view
.
getContext
();
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
context
);
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
context
);
TextView
textView
=
new
TextView
(
context
);
TextView
textView
=
new
TextView
(
context
);
textView
.
setText
(
"
This alert dialog will close in 1 second
"
);
textView
.
setText
(
"
Alert!
"
);
builder
.
setView
(
textView
);
builder
.
setView
(
textView
);
final
AlertDialog
alertDialog
=
builder
.
show
();
final
AlertDialog
alertDialog
=
builder
.
show
();
result
.
success
(
null
);
result
.
success
(
null
);
view
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
alertDialog
.
hide
();
}
},
1000
);
}
}
}
}
dev/integration_tests/android_views/lib/motion_events_page.dart
View file @
4b98c056
...
@@ -105,13 +105,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
...
@@ -105,13 +105,6 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
child:
const
Text
(
'PLAY FILE'
),
child:
const
Text
(
'PLAY FILE'
),
onPressed:
()
{
playEventsFile
();
},
onPressed:
()
{
playEventsFile
();
},
),
),
Expanded
(
child:
RaisedButton
(
key:
const
ValueKey
<
String
>(
'back'
),
child:
const
Text
(
'BACK'
),
onPressed:
()
{
Navigator
.
pop
(
context
);
},
),
),
],
],
),
),
],
],
...
...
dev/integration_tests/android_views/lib/wm_integrations.dart
View file @
4b98c056
...
@@ -84,7 +84,7 @@ class WindowManagerBodyState extends State<WindowManagerBody> {
...
@@ -84,7 +84,7 @@ class WindowManagerBodyState extends State<WindowManagerBody> {
});
});
}
}
try
{
try
{
await
viewChannel
.
invokeMethod
<
void
>(
'showA
ndHideA
lertDialog'
);
await
viewChannel
.
invokeMethod
<
void
>(
'showAlertDialog'
);
setState
(()
{
setState
(()
{
lastTestStatus
=
_LastTestStatus
.
success
;
lastTestStatus
=
_LastTestStatus
.
success
;
});
});
...
...
dev/integration_tests/android_views/test_driver/main_test.dart
View file @
4b98c056
...
@@ -17,8 +17,6 @@ Future<void> main() async {
...
@@ -17,8 +17,6 @@ Future<void> main() async {
driver
.
close
();
driver
.
close
();
});
});
// Each test below must return back to the home page after finishing.
test
(
'MotionEvent recomposition'
,
()
async
{
test
(
'MotionEvent recomposition'
,
()
async
{
final
SerializableFinder
motionEventsListTile
=
final
SerializableFinder
motionEventsListTile
=
find
.
byValueKey
(
'MotionEventsListTile'
);
find
.
byValueKey
(
'MotionEventsListTile'
);
...
@@ -26,8 +24,9 @@ Future<void> main() async {
...
@@ -26,8 +24,9 @@ Future<void> main() async {
await
driver
.
waitFor
(
find
.
byValueKey
(
'PlatformView'
));
await
driver
.
waitFor
(
find
.
byValueKey
(
'PlatformView'
));
final
String
errorMessage
=
await
driver
.
requestData
(
'run test'
);
final
String
errorMessage
=
await
driver
.
requestData
(
'run test'
);
expect
(
errorMessage
,
''
);
expect
(
errorMessage
,
''
);
await
driver
.
tap
(
find
.
byValueKey
(
'back'
));
},
});
// TODO(amirh): enable this test https://github.com/flutter/flutter/issues/54022
skip:
true
);
test
(
'AlertDialog from platform view context'
,
()
async
{
test
(
'AlertDialog from platform view context'
,
()
async
{
final
SerializableFinder
wmListTile
=
final
SerializableFinder
wmListTile
=
...
@@ -39,7 +38,5 @@ Future<void> main() async {
...
@@ -39,7 +38,5 @@ Future<void> main() async {
await
driver
.
tap
(
showAlertDialog
);
await
driver
.
tap
(
showAlertDialog
);
final
String
status
=
await
driver
.
getText
(
find
.
byValueKey
(
'Status'
));
final
String
status
=
await
driver
.
getText
(
find
.
byValueKey
(
'Status'
));
expect
(
status
,
'Success'
);
expect
(
status
,
'Success'
);
await
driver
.
waitFor
(
find
.
pageBack
());
await
driver
.
tap
(
find
.
pageBack
());
});
});
}
}
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