From a2eff0641fe0245921e49d8b0506e34536631dac Mon Sep 17 00:00:00 2001 From: "James D. Lin" <jamesderlin@users.noreply.github.com> Date: Wed, 21 Nov 2018 12:16:10 -0800 Subject: [PATCH] Fix broken #platform-selector-syntax and #platform-specific-configuration links (#963) Also adjust the platform-specific-configuration links. --- pkgs/test/doc/configuration.md | 2 +- pkgs/test_api/lib/src/frontend/on_platform.dart | 2 +- pkgs/test_api/lib/src/frontend/test_on.dart | 2 +- pkgs/test_api/lib/test_api.dart | 4 ++-- pkgs/test_core/lib/test_core.dart | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/test/doc/configuration.md b/pkgs/test/doc/configuration.md index ada871ff..fcc7e43e 100644 --- a/pkgs/test/doc/configuration.md +++ b/pkgs/test/doc/configuration.md @@ -557,7 +557,7 @@ cares about the platform the *test* is running on (like the [`@OnPlatform` annotation][@OnPlatform]). It sets configuration for particular tests that are running on matching platforms. -[@OnPlatform]: https://github.com/dart-lang/test/blob/master/README.md#platform-specific-configuration +[@OnPlatform]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-specific-configuration ### `on_os` diff --git a/pkgs/test_api/lib/src/frontend/on_platform.dart b/pkgs/test_api/lib/src/frontend/on_platform.dart index b04ad3bb..c3620a43 100644 --- a/pkgs/test_api/lib/src/frontend/on_platform.dart +++ b/pkgs/test_api/lib/src/frontend/on_platform.dart @@ -6,7 +6,7 @@ /// /// See [the README][onPlatform]. /// -/// [onPlatform]: https://github.com/dart-lang/test/blob/master/README.md#platform-specific-configuration +/// [onPlatform]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-specific-configuration class OnPlatform { final Map<String, dynamic> annotationsByPlatform; diff --git a/pkgs/test_api/lib/src/frontend/test_on.dart b/pkgs/test_api/lib/src/frontend/test_on.dart index 16cfde12..b047a6c0 100644 --- a/pkgs/test_api/lib/src/frontend/test_on.dart +++ b/pkgs/test_api/lib/src/frontend/test_on.dart @@ -6,7 +6,7 @@ /// /// For the full syntax of [expression], see [the README][]. /// -/// [the README]: https://github.com/dart-lang/test/#platform-selector-syntax +/// [the README]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-selectors class TestOn { /// The expression specifying the platform. final String expression; diff --git a/pkgs/test_api/lib/test_api.dart b/pkgs/test_api/lib/test_api.dart index c272dfa3..40c3f2be 100644 --- a/pkgs/test_api/lib/test_api.dart +++ b/pkgs/test_api/lib/test_api.dart @@ -43,7 +43,7 @@ Declarer get _declarer => Zone.current[#test.declarer] as Declarer; /// [group]s. If [testOn] is passed, it's parsed as a [platform selector][]; the /// test will only be run on matching platforms. /// -/// [platform selector]: https://github.com/dart-lang/test/#platform-selector-syntax +/// [platform selector]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-selectors /// /// If [timeout] is passed, it's used to modify or replace the default timeout /// of 30 seconds. Timeout modifications take precedence in suite-group-test @@ -123,7 +123,7 @@ void test(description, body(), /// If [testOn] is passed, it's parsed as a [platform selector][]; the test will /// only be run on matching platforms. /// -/// [platform selector]: https://github.com/dart-lang/test/#platform-selector-syntax +/// [platform selector]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-selectors /// /// If [timeout] is passed, it's used to modify or replace the default timeout /// of 30 seconds. Timeout modifications take precedence in suite-group-test diff --git a/pkgs/test_core/lib/test_core.dart b/pkgs/test_core/lib/test_core.dart index 906be6fe..c9350bd5 100644 --- a/pkgs/test_core/lib/test_core.dart +++ b/pkgs/test_core/lib/test_core.dart @@ -78,7 +78,7 @@ Declarer get _declarer { /// [group]s. If [testOn] is passed, it's parsed as a [platform selector][]; the /// test will only be run on matching platforms. /// -/// [platform selector]: https://github.com/dart-lang/test/#platform-selector-syntax +/// [platform selector]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-selectors /// /// If [timeout] is passed, it's used to modify or replace the default timeout /// of 30 seconds. Timeout modifications take precedence in suite-group-test @@ -158,7 +158,7 @@ void test(description, body(), /// If [testOn] is passed, it's parsed as a [platform selector][]; the test will /// only be run on matching platforms. /// -/// [platform selector]: https://github.com/dart-lang/test/#platform-selector-syntax +/// [platform selector]: https://github.com/dart-lang/test/tree/master/pkgs/test#platform-selectors /// /// If [timeout] is passed, it's used to modify or replace the default timeout /// of 30 seconds. Timeout modifications take precedence in suite-group-test -- GitLab