This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[url_launcher_web] Remove package:platform_detect #3071
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ef6267e
[url_launcher_web] Remove dependency in platform_detect.dart package
ditman 55e2d28
Migrate tests to integration_test package.
ditman cf34499
dartfmt -w .
ditman 83cb622
Remove TestOn notice.
ditman 8980f76
Bump version and update changelog.
ditman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
| # Running browser_tests | ||
|
|
||
| Make sure you have updated to the latest Flutter master. | ||
|
|
||
| 1. Check what version of Chrome is running on the machine you're running tests on. | ||
|
|
||
| 2. Download and install driver for that version from here: | ||
| * <https://chromedriver.chromium.org/downloads> | ||
|
|
||
| 3. Start the driver using `chromedriver --port=4444` | ||
|
|
||
| 4. Change into the `test` directory of your clone. | ||
|
|
||
| 5. Run tests: `flutter drive -d web-server --browser-name=chrome --target=test_driver/TEST_NAME_integration.dart`, or (in Linux): | ||
|
|
||
| * Single: `./run_test test_driver/TEST_NAME_integration.dart` | ||
| * All: `./run_test` |
This file contains hidden or 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,22 @@ | ||
| // Copyright 2013 The Flutter 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/material.dart'; | ||
|
|
||
| void main() { | ||
| runApp(MyApp()); | ||
| } | ||
|
|
||
| /// App for testing | ||
| class MyApp extends StatefulWidget { | ||
| @override | ||
| _MyAppState createState() => _MyAppState(); | ||
| } | ||
|
|
||
| class _MyAppState extends State<MyApp> { | ||
| @override | ||
| Widget build(BuildContext context) { | ||
| return Text('Testing... Look at the console output for results!'); | ||
| } | ||
| } |
This file contains hidden or 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,22 @@ | ||
| name: regular_integration_tests | ||
| publish_to: none | ||
|
|
||
| environment: | ||
| sdk: ">=2.2.2 <3.0.0" | ||
|
|
||
| dependencies: | ||
| flutter: | ||
| sdk: flutter | ||
|
|
||
| dev_dependencies: | ||
| flutter_driver: | ||
| sdk: flutter | ||
| flutter_test: | ||
| sdk: flutter | ||
| http: ^0.12.2 | ||
| mockito: ^4.1.1 | ||
| url_launcher_web: | ||
| path: ../ | ||
| integration_test: | ||
| path: ../../../integration_test | ||
|
|
This file contains hidden or 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,17 @@ | ||
| #!/usr/bin/bash | ||
| if pgrep -lf chromedriver > /dev/null; then | ||
| echo "chromedriver is running." | ||
|
|
||
| if [ $# -eq 0 ]; then | ||
| echo "No target specified, running all tests..." | ||
| find test_driver/ -iname *_integration.dart | xargs -n1 -i -t flutter drive -d web-server --web-port=7357 --browser-name=chrome --target='{}' | ||
| else | ||
| echo "Running test target: $1..." | ||
| set -x | ||
| flutter drive -d web-server --web-port=7357 --browser-name=chrome --target=$1 | ||
| fi | ||
|
|
||
| else | ||
| echo "chromedriver is not running." | ||
| fi | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.