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
789c2f1f
Commit
789c2f1f
authored
Mar 14, 2017
by
Mikkel Nygaard Ravn
Committed by
GitHub
Mar 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed endianness unit test (#8753)
parent
8eac6cd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
message_codecs_test.dart
packages/flutter/test/services/message_codecs_test.dart
+9
-9
No files found.
packages/flutter/test/services/message_codecs_test.dart
View file @
789c2f1f
...
@@ -66,27 +66,27 @@ void main() {
...
@@ -66,27 +66,27 @@ void main() {
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
-
0x7fffffff
-
1
,
-
0x7fffffff
-
1
,
<
int
>[
3
,
0x
80
,
0x00
,
0x00
,
0x0
0
],
<
int
>[
3
,
0x
00
,
0x00
,
0x00
,
0x8
0
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
-
0x7fffffff
-
2
,
-
0x7fffffff
-
2
,
<
int
>[
4
,
0xff
,
0xff
,
0xff
,
0x
ff
,
0x7
f
,
0xff
,
0xff
,
0xff
],
<
int
>[
4
,
0xff
,
0xff
,
0xff
,
0x
7f
,
0xf
f
,
0xff
,
0xff
,
0xff
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
0x7fffffff
,
0x7fffffff
,
<
int
>[
3
,
0x
7f
,
0xff
,
0xff
,
0xf
f
],
<
int
>[
3
,
0x
ff
,
0xff
,
0xff
,
0x7
f
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
0x7fffffff
+
1
,
0x7fffffff
+
1
,
<
int
>[
4
,
0x00
,
0x00
,
0x00
,
0x
00
,
0x8
0
,
0x00
,
0x00
,
0x00
],
<
int
>[
4
,
0x00
,
0x00
,
0x00
,
0x
80
,
0x0
0
,
0x00
,
0x00
,
0x00
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
-
0x7fffffffffffffff
-
1
,
-
0x7fffffffffffffff
-
1
,
<
int
>[
4
,
0x
80
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x0
0
],
<
int
>[
4
,
0x
00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x8
0
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
...
@@ -96,7 +96,7 @@ void main() {
...
@@ -96,7 +96,7 @@ void main() {
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
0x7fffffffffffffff
,
0x7fffffffffffffff
,
<
int
>[
4
,
0x
7f
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xf
f
],
<
int
>[
4
,
0x
ff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0x7
f
],
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
...
@@ -113,7 +113,7 @@ void main() {
...
@@ -113,7 +113,7 @@ void main() {
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
new
Uint8List
(
254
),
new
Uint8List
(
254
),
<
int
>[
8
,
254
,
0
,
254
]..
addAll
(
new
List
<
int
>.
filled
(
254
,
0
)),
<
int
>[
8
,
254
,
254
,
0
]..
addAll
(
new
List
<
int
>.
filled
(
254
,
0
)),
);
);
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
...
@@ -123,7 +123,7 @@ void main() {
...
@@ -123,7 +123,7 @@ void main() {
_checkEncoding
<
dynamic
>(
_checkEncoding
<
dynamic
>(
standard
,
standard
,
new
Uint8List
(
0xffff
+
1
),
new
Uint8List
(
0xffff
+
1
),
<
int
>[
8
,
255
,
0
,
1
,
0
,
0
]..
addAll
(
new
List
<
int
>.
filled
(
0xffff
+
1
,
0
)),
<
int
>[
8
,
255
,
0
,
0
,
1
,
0
]..
addAll
(
new
List
<
int
>.
filled
(
0xffff
+
1
,
0
)),
);
);
});
});
test
(
'should encode and decode simple messages'
,
()
{
test
(
'should encode and decode simple messages'
,
()
{
...
@@ -251,4 +251,4 @@ bool _deepEqualsMap(Map<dynamic, dynamic> valueA, Map<dynamic, dynamic> valueB)
...
@@ -251,4 +251,4 @@ bool _deepEqualsMap(Map<dynamic, dynamic> valueA, Map<dynamic, dynamic> valueB)
return
false
;
return
false
;
}
}
return
true
;
return
true
;
}
}
\ No newline at end of file
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