-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes flutter/flutter#129843
- Loading branch information
Showing
9 changed files
with
124 additions
and
27 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 was deleted.
Oops, something went wrong.
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
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,23 @@ | ||
// 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 'dart:io' show Platform; | ||
|
||
import 'package:flutter/foundation.dart'; | ||
|
||
// Detects if we're running the tests on the main channel. | ||
// | ||
// This is useful for _tests_ that depend on _Flutter_ features that have not | ||
// yet rolled to stable. Avoid using this to skip tests of _RFW_ features that | ||
// aren't compatible with stable. Those should wait until the stable release | ||
// channel is updated so that RFW can be compatible with it. | ||
bool get isMainChannel { | ||
assert(!kIsWeb, 'isMainChannel is not available on web'); | ||
return !Platform.environment.containsKey('CHANNEL') || | ||
Platform.environment['CHANNEL'] == 'main' || | ||
Platform.environment['CHANNEL'] == 'master'; | ||
} | ||
|
||
// See Contributing section of README.md file. | ||
final bool runGoldens = !kIsWeb && Platform.isLinux && isMainChannel; |