forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from gspencergoog/master
Pulling to make workspace up to date wrt master.
- Loading branch information
Showing
334 changed files
with
9,168 additions
and
3,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Dart SDK dependency | ||
=================== | ||
|
||
The Dart SDK is downloaded from one of [the supported channels](https://www.dartlang.org/install/archive), | ||
cached in `bin/cache/dart-sdk` and is used to run Flutter Dart code. | ||
|
||
The file `bin/internal/dart-sdk.version` determines the version of Dart SDK | ||
that will be downloaded. Normally it points to the `dev` channel (for example, | ||
`1.24.0-dev.6.7`), but it can also point to particular bleeding edge build | ||
of Dart (for example, `hash/c0617d20158955d99d6447036237fe2639ba088c`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.24.0-dev.3.0 | ||
1.24.0-dev.6.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
75c74dc463d56e17be10315cfde409010fd8f90b | ||
18fdfb86bb3876fcbb4e1d25e5b2aad0c5cd669f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
dev/benchmarks/complex_layout/test_driver/semantics_perf.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'package:flutter_driver/driver_extension.dart'; | ||
import 'package:complex_layout/main.dart' as app; | ||
|
||
void main() { | ||
enableFlutterDriverExtension(); | ||
app.main(); | ||
} |
43 changes: 43 additions & 0 deletions
43
dev/benchmarks/complex_layout/test_driver/semantics_perf_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'dart:async'; | ||
import 'dart:convert'; | ||
import 'dart:io'; | ||
|
||
import 'package:flutter_driver/flutter_driver.dart'; | ||
import 'package:path/path.dart' as p; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
group('semantics performance test', () { | ||
FlutterDriver driver; | ||
|
||
setUpAll(() async { | ||
driver = await FlutterDriver.connect(printCommunication: true); | ||
}); | ||
|
||
tearDownAll(() async { | ||
if (driver != null) | ||
driver.close(); | ||
}); | ||
|
||
test('inital tree creation', () async { | ||
// Let app become fully idle. | ||
await new Future<Null>.delayed(const Duration(seconds: 1)); | ||
|
||
final Timeline timeline = await driver.traceAction(() async { | ||
expect(await driver.setSemantics(true), isTrue); | ||
}); | ||
|
||
final Iterable<TimelineEvent> semanticsEvents = timeline.events.where((TimelineEvent event) => event.name == "Semantics"); | ||
if (semanticsEvents.length != 1) | ||
fail('Expected exactly one semantics event, got ${semanticsEvents.length}'); | ||
final Duration semanticsTreeCreation = semanticsEvents.first.duration; | ||
|
||
final String json = JSON.encode(<String, dynamic>{'initialSemanticsTreeCreation': semanticsTreeCreation.inMilliseconds}); | ||
new File(p.join(testOutputsDirectory, 'complex_layout_semantics_perf.json')).writeAsStringSync(json); | ||
}); | ||
}); | ||
} |
Oops, something went wrong.