forked from mmcc007/screenshots
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into #66_landscape_mode
# Conflicts: # lib/src/run.dart # lib/src/utils.dart # test/screenshots_test.dart
- Loading branch information
Showing
33 changed files
with
907 additions
and
426 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ doc/api/ | |
# screenshots | ||
example/ios/fastlane | ||
example/android/fastlane | ||
**/**/*-diff.png | ||
|
||
# mac | ||
.DS_Store |
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
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,24 @@ | ||
# Screen capture tests | ||
# Note: flutter driver expects a pair of files eg, main.dart and main_test.dart | ||
tests: | ||
- test_driver/main.dart | ||
|
||
# Interim location of screenshots from tests before processing | ||
staging: /tmp/screenshots | ||
|
||
# A list of locales supported in app | ||
locales: | ||
- fr-CA | ||
- en-US | ||
|
||
# A list of devices to run tests on | ||
devices: | ||
ios: | ||
iPhone XS Max: | ||
iPad Pro (12.9-inch) (2nd generation): | ||
frame: false | ||
android: | ||
# Nexus 6P: | ||
|
||
# Frame screenshots | ||
frame: true |
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,11 +1,28 @@ | ||
import 'dart:async'; | ||
import 'dart:convert' as c; | ||
import 'dart:ui' as ui; | ||
|
||
import 'package:example/main.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_driver/driver_extension.dart'; | ||
import 'package:intl/intl.dart'; | ||
|
||
void main() { | ||
final DataHandler handler = (_) async { | ||
final localizations = | ||
await ExampleLocalizations.load(Locale(ui.window.locale.languageCode)); | ||
final response = { | ||
'counterIncrementButtonTooltip': | ||
localizations.counterIncrementButtonTooltip, | ||
'counterText': localizations.counterText, | ||
'title': localizations.title, | ||
'locale': Intl.defaultLocale | ||
}; | ||
return Future.value(c.jsonEncode(response)); | ||
}; | ||
// Enable integration testing with the Flutter Driver extension. | ||
// See https://flutter.io/testing/ for more info. | ||
enableFlutterDriverExtension(); | ||
enableFlutterDriverExtension(handler: handler); | ||
WidgetsApp.debugAllowBannerOverride = false; // remove debug banner | ||
runApp(MyApp()); | ||
} |
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
Oops, something went wrong.