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
7d76a827
Unverified
Commit
7d76a827
authored
Aug 09, 2021
by
Darren Austin
Committed by
GitHub
Aug 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated skipped tests for services directory. (#87874)
parent
e2fb5cc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
30 deletions
+29
-30
message_codecs_vm_test.dart
packages/flutter/test/services/message_codecs_vm_test.dart
+1
-2
raw_keyboard_test.dart
packages/flutter/test/services/raw_keyboard_test.dart
+28
-28
No files found.
packages/flutter/test/services/message_codecs_vm_test.dart
View file @
7d76a827
...
...
@@ -5,7 +5,6 @@
@TestOn
(
'!chrome'
)
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
@@ -78,5 +77,5 @@ void main() {
];
checkEncodeDecode
<
dynamic
>(
standard
,
message
);
});
},
skip:
kIsWeb
);
},
skip:
isBrowser
);
// [intended] Javascript can't handle the big integer literals used here.
}
packages/flutter/test/services/raw_keyboard_test.dart
View file @
7d76a827
...
...
@@ -221,7 +221,7 @@ void main() {
<
LogicalKeyboardKey
>{
LogicalKeyboardKey
.
shiftLeft
,
LogicalKeyboardKey
.
keyA
},
),
);
},
skip:
isBrowser
);
// This is a macOS-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a macOS-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on iOS'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -246,7 +246,7 @@ void main() {
<
LogicalKeyboardKey
>{
LogicalKeyboardKey
.
shiftLeft
,
LogicalKeyboardKey
.
keyA
},
),
);
},
skip:
isBrowser
);
// This is an iOS-specific test.
},
skip:
isBrowser
);
//
[intended]
This is an iOS-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on Windows'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -271,7 +271,7 @@ void main() {
<
LogicalKeyboardKey
>{
LogicalKeyboardKey
.
shiftLeft
,
LogicalKeyboardKey
.
keyA
},
),
);
},
skip:
isBrowser
);
// This is a Windows-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a Windows-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on android'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -296,7 +296,7 @@ void main() {
<
LogicalKeyboardKey
>{
LogicalKeyboardKey
.
shiftLeft
,
LogicalKeyboardKey
.
keyA
},
),
);
},
skip:
isBrowser
);
// This is an Android-specific test.
},
skip:
isBrowser
);
//
[intended]
This is an Android-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on fuchsia'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -321,7 +321,7 @@ void main() {
<
LogicalKeyboardKey
>{
LogicalKeyboardKey
.
shiftLeft
,
LogicalKeyboardKey
.
keyA
},
),
);
},
skip:
isBrowser
);
// This is a Fuchsia-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a Fuchsia-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on Linux GLFW'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -352,7 +352,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is a GLFW-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a GLFW-specific test.
testWidgets
(
'keysPressed modifiers are synchronized with key events on web'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -480,7 +480,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is an Android-specific test.
},
skip:
isBrowser
);
//
[intended]
This is an Android-specific test.
testWidgets
(
'sided modifiers without a side set return all sides on macOS'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -518,7 +518,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is a macOS-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a macOS-specific test.
testWidgets
(
'sided modifiers without a side set return all sides on iOS'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -556,7 +556,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is an iOS-specific test.
},
skip:
isBrowser
);
//
[intended]
This is an iOS-specific test.
testWidgets
(
'sided modifiers without a side set return all sides on Windows'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -592,7 +592,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is a Windows-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a Windows-specific test.
testWidgets
(
'sided modifiers without a side set return all sides on Linux GLFW'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -631,7 +631,7 @@ void main() {
},
),
);
},
skip:
isBrowser
);
// This is a GLFW-specific test.
},
skip:
isBrowser
);
//
[intended]
This is a GLFW-specific test.
testWidgets
(
'sided modifiers without a side set return left sides on web'
,
(
WidgetTester
tester
)
async
{
expect
(
RawKeyboard
.
instance
.
keysPressed
,
isEmpty
);
...
...
@@ -1098,7 +1098,7 @@ void main() {
'repeatCount'
:
42
,
}).
data
,
isNot
(
equals
(
const
RawKeyEventDataAndroid
())));
});
},
skip:
isBrowser
);
// This is an Android-specific group.
},
skip:
isBrowser
);
//
[intended]
This is an Android-specific group.
group
(
'RawKeyEventDataFuchsia'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -1203,7 +1203,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
escape
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
escape
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'Modifier keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
shiftLeftKeyEvent
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1215,7 +1215,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'data.toString'
,
()
{
expect
(
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1252,7 +1252,7 @@ void main() {
'modifiers'
:
0x10
,
}).
data
,
isNot
(
equals
(
const
RawKeyEventDataFuchsia
())));
});
},
skip:
isBrowser
);
// This is a Fuchsia-specific group.
},
skip:
isBrowser
);
//
[intended]
This is a Fuchsia-specific group.
group
(
'RawKeyEventDataMacOs'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -1370,7 +1370,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
escape
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
escape
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'Modifier keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
shiftLeftKeyEvent
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1385,7 +1385,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'Unprintable keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
leftArrowKey
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1399,7 +1399,7 @@ void main() {
final
RawKeyEventDataMacOs
data
=
leftArrowKey
.
data
as
RawKeyEventDataMacOs
;
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
arrowLeft
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
arrowLeft
));
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'data.toString'
,
()
{
expect
(
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1437,7 +1437,7 @@ void main() {
'modifiers'
:
0x10
,
}).
data
,
isNot
(
equals
(
const
RawKeyEventDataMacOs
())));
});
},
skip:
isBrowser
);
// This is a macOS-specific group.
},
skip:
isBrowser
);
//
[intended]
This is a macOS-specific group.
group
(
'RawKeyEventDataIos'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -1555,7 +1555,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
escape
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
escape
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'Modifier keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
shiftLeftKeyEvent
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1570,7 +1570,7 @@ void main() {
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
shiftLeft
));
expect
(
data
.
keyLabel
,
isEmpty
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'Unprintable keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
leftArrowKey
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1584,7 +1584,7 @@ void main() {
final
RawKeyEventDataIos
data
=
leftArrowKey
.
data
as
RawKeyEventDataIos
;
expect
(
data
.
physicalKey
,
equals
(
PhysicalKeyboardKey
.
arrowLeft
));
expect
(
data
.
logicalKey
,
equals
(
LogicalKeyboardKey
.
arrowLeft
));
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/35347
}
);
test
(
'data.toString'
,
()
{
expect
(
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -1622,7 +1622,7 @@ void main() {
'modifiers'
:
0x10
,
}).
data
,
isNot
(
equals
(
const
RawKeyEventDataIos
())));
});
},
skip:
isBrowser
);
// This is an iOS-specific group.
},
skip:
isBrowser
);
//
[intended]
This is an iOS-specific group.
group
(
'RawKeyEventDataWindows'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -1840,7 +1840,7 @@ void main() {
'modifiers'
:
0x20
,
}).
data
,
isNot
(
equals
(
const
RawKeyEventDataWindows
())));
});
},
skip:
isBrowser
);
// This is a Windows-specific group.
},
skip:
isBrowser
);
//
[intended]
This is a Windows-specific group.
group
(
'RawKeyEventDataLinux-GLFW'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -1996,7 +1996,7 @@ void main() {
}
expect
(()
=>
_createFailingKey
(),
throwsAssertionError
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61039
}
);
test
(
'Control keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
escapeKeyEvent
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -2072,7 +2072,7 @@ void main() {
keyHelper:
KeyHelper
(
'glfw'
),
isDown:
true
)),
));
});
},
skip:
isBrowser
);
// This is a GLFW-specific group.
},
skip:
isBrowser
);
//
[intended]
This is a GLFW-specific group.
group
(
'RawKeyEventDataLinux-GTK'
,
()
{
const
Map
<
int
,
_ModifierCheck
>
modifierTests
=
<
int
,
_ModifierCheck
>{
...
...
@@ -2228,7 +2228,7 @@ void main() {
}
expect
(()
=>
_createFailingKey
(),
throwsAssertionError
);
}
,
skip:
isBrowser
);
// https://github.com/flutter/flutter/issues/61039
}
);
test
(
'Control keyboard keys are correctly translated'
,
()
{
final
RawKeyEvent
escapeKeyEvent
=
RawKeyEvent
.
fromMessage
(
const
<
String
,
dynamic
>{
...
...
@@ -2321,7 +2321,7 @@ void main() {
keyHelper:
KeyHelper
(
'gtk'
),
isDown:
true
)),
));
});
},
skip:
isBrowser
);
// This is a GTK-specific group.
},
skip:
isBrowser
);
//
[intended]
This is a GTK-specific group.
group
(
'RawKeyEventDataWeb'
,
()
{
const
Map
<
int
,
ModifierKey
>
modifierTests
=
<
int
,
ModifierKey
>{
...
...
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