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
980a574d
Unverified
Commit
980a574d
authored
Jun 10, 2019
by
Jonah Williams
Committed by
GitHub
Jun 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compatibility pass on flutter/scheduler tests for JavaScript compilation. (2) (#33350)
parent
392e825b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
test.dart
dev/bots/test.dart
+1
-0
benchmarks_test.dart
packages/flutter/test/scheduler/benchmarks_test.dart
+2
-2
scheduler_test.dart
packages/flutter/test/scheduler/scheduler_test.dart
+1
-0
No files found.
dev/bots/test.dart
View file @
980a574d
...
@@ -343,6 +343,7 @@ Future<void> _runTests() async {
...
@@ -343,6 +343,7 @@ Future<void> _runTests() async {
Future
<
void
>
_runWebTests
()
async
{
Future
<
void
>
_runWebTests
()
async
{
await
_runFlutterWebTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
),
expectFailure:
false
,
tests:
<
String
>[
await
_runFlutterWebTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter'
),
expectFailure:
false
,
tests:
<
String
>[
'test/foundation/'
,
'test/foundation/'
,
'test/scheduler/'
,
]);
]);
}
}
...
...
packages/flutter/test/scheduler/benchmarks_test.dart
View file @
980a574d
...
@@ -34,7 +34,7 @@ class TestBinding extends LiveTestWidgetsFlutterBinding {
...
@@ -34,7 +34,7 @@ class TestBinding extends LiveTestWidgetsFlutterBinding {
}
}
}
}
Future
<
void
>
main
()
async
{
void
main
(
)
{
final
TestBinding
binding
=
TestBinding
();
final
TestBinding
binding
=
TestBinding
();
test
(
'test pumpBenchmark() only runs one frame'
,
()
async
{
test
(
'test pumpBenchmark() only runs one frame'
,
()
async
{
...
@@ -67,5 +67,5 @@ Future<void> main() async {
...
@@ -67,5 +67,5 @@ Future<void> main() async {
// We are not interested in the performance of the "benchmark", we are just
// We are not interested in the performance of the "benchmark", we are just
// testing the behavior. So it's OK that asserts are enabled.
// testing the behavior. So it's OK that asserts are enabled.
mayRunWithAsserts:
true
);
mayRunWithAsserts:
true
);
});
}
,
skip:
isBrowser
);
}
}
packages/flutter/test/scheduler/scheduler_test.dart
View file @
980a574d
// Copyright 2015 The Chromium Authors. All rights reserved.
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:async'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
...
...
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