Skip to content

Commit d5b497c

Browse files
Fix unit tests (#111)
1 parent 1363236 commit d5b497c

File tree

3 files changed

+40
-24
lines changed

3 files changed

+40
-24
lines changed

example/lib/generated_plugin_registrant.dart

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Generated file. Do not edit.
33
//
44

5+
// ignore_for_file: directives_ordering
56
// ignore_for_file: lines_longer_than_80_chars
67

78
import 'package:url_launcher_web/url_launcher_web.dart';

pubspec.lock

+28-14
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: _fe_analyzer_shared
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "17.0.0"
10+
version: "31.0.0"
1111
analyzer:
1212
dependency: transitive
1313
description:
1414
name: analyzer
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.1.0"
17+
version: "2.8.0"
1818
args:
1919
dependency: transitive
2020
description:
@@ -28,7 +28,7 @@ packages:
2828
name: async
2929
url: "https://pub.dartlang.org"
3030
source: hosted
31-
version: "2.5.0"
31+
version: "2.8.2"
3232
boolean_selector:
3333
dependency: transitive
3434
description:
@@ -42,14 +42,14 @@ packages:
4242
name: characters
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.1.0"
45+
version: "1.2.0"
4646
charcode:
4747
dependency: transitive
4848
description:
4949
name: charcode
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.2.0"
52+
version: "1.3.1"
5353
cli_util:
5454
dependency: transitive
5555
description:
@@ -116,6 +116,13 @@ packages:
116116
description: flutter
117117
source: sdk
118118
version: "0.0.0"
119+
frontend_server_client:
120+
dependency: transitive
121+
description:
122+
name: frontend_server_client
123+
url: "https://pub.dartlang.org"
124+
source: hosted
125+
version: "2.1.3"
119126
glob:
120127
dependency: transitive
121128
description:
@@ -171,14 +178,21 @@ packages:
171178
name: matcher
172179
url: "https://pub.dartlang.org"
173180
source: hosted
174-
version: "0.12.10"
181+
version: "0.12.11"
182+
material_color_utilities:
183+
dependency: transitive
184+
description:
185+
name: material_color_utilities
186+
url: "https://pub.dartlang.org"
187+
source: hosted
188+
version: "0.1.3"
175189
meta:
176190
dependency: transitive
177191
description:
178192
name: meta
179193
url: "https://pub.dartlang.org"
180194
source: hosted
181-
version: "1.3.0"
195+
version: "1.7.0"
182196
mime:
183197
dependency: transitive
184198
description:
@@ -192,7 +206,7 @@ packages:
192206
name: node_preamble
193207
url: "https://pub.dartlang.org"
194208
source: hosted
195-
version: "1.4.13"
209+
version: "2.0.1"
196210
package_config:
197211
dependency: transitive
198212
description:
@@ -281,7 +295,7 @@ packages:
281295
name: source_span
282296
url: "https://pub.dartlang.org"
283297
source: hosted
284-
version: "1.8.0"
298+
version: "1.8.1"
285299
stack_trace:
286300
dependency: transitive
287301
description:
@@ -316,21 +330,21 @@ packages:
316330
name: test
317331
url: "https://pub.dartlang.org"
318332
source: hosted
319-
version: "1.16.5"
333+
version: "1.19.5"
320334
test_api:
321335
dependency: transitive
322336
description:
323337
name: test_api
324338
url: "https://pub.dartlang.org"
325339
source: hosted
326-
version: "0.2.19"
340+
version: "0.4.8"
327341
test_core:
328342
dependency: transitive
329343
description:
330344
name: test_core
331345
url: "https://pub.dartlang.org"
332346
source: hosted
333-
version: "0.3.15"
347+
version: "0.4.9"
334348
typed_data:
335349
dependency: transitive
336350
description:
@@ -344,7 +358,7 @@ packages:
344358
name: vector_math
345359
url: "https://pub.dartlang.org"
346360
source: hosted
347-
version: "2.1.0"
361+
version: "2.1.1"
348362
vm_service:
349363
dependency: transitive
350364
description:
@@ -381,5 +395,5 @@ packages:
381395
source: hosted
382396
version: "3.1.0"
383397
sdks:
384-
dart: ">=2.12.0 <3.0.0"
398+
dart: ">=2.14.0 <3.0.0"
385399
flutter: ">=1.13.8"

test/flutter_linkify_test.dart

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@ import 'package:flutter_linkify/flutter_linkify.dart';
33
import 'package:flutter_test/flutter_test.dart';
44

55
void main() {
6-
testWidgets('Linkify renders text', (tester) async {
6+
testWidgets('SelectableLinkify renders text', (tester) async {
77
await tester.pumpWidget(MaterialApp(
8-
home: Linkify(
8+
home: SelectableLinkify(
99
text: 'Test https://google.com',
1010
),
1111
));
1212

1313
expect(find.text('Test google.com'), findsOneWidget);
1414
});
1515

16-
testWidgets('Linkify renders text without humanizing', (tester) async {
16+
testWidgets('SelectableLinkify renders text without humanizing',
17+
(tester) async {
1718
await tester.pumpWidget(MaterialApp(
18-
home: Linkify(
19+
home: SelectableLinkify(
1920
text: 'Test https://google.com',
2021
options: LinkifyOptions(
2122
humanize: false,
@@ -26,9 +27,9 @@ void main() {
2627
expect(find.text('Test https://google.com'), findsOneWidget);
2728
});
2829

29-
testWidgets('Linkify renders text with loose URLs', (tester) async {
30+
testWidgets('SelectableLinkify renders text with loose URLs', (tester) async {
3031
await tester.pumpWidget(MaterialApp(
31-
home: Linkify(
32+
home: SelectableLinkify(
3233
text: 'Test google.com',
3334
options: LinkifyOptions(
3435
looseUrl: true,
@@ -39,19 +40,19 @@ void main() {
3940
expect(find.text('Test google.com'), findsOneWidget);
4041
});
4142

42-
testWidgets('Linkify renders without remove WWW', (tester) async {
43+
testWidgets('SelectableLinkify renders without remove WWW', (tester) async {
4344
await tester.pumpWidget(MaterialApp(
44-
home: Linkify(
45+
home: SelectableLinkify(
4546
text: 'Test www.google.com',
4647
),
4748
));
4849

4950
expect(find.text('Test www.google.com'), findsOneWidget);
5051
});
5152

52-
testWidgets('Linkify renders with remove WWW', (tester) async {
53+
testWidgets('SelectableLinkify renders with remove WWW', (tester) async {
5354
await tester.pumpWidget(MaterialApp(
54-
home: Linkify(
55+
home: SelectableLinkify(
5556
text: 'Test www.google.com',
5657
options: LinkifyOptions(
5758
removeWww: true,

0 commit comments

Comments
 (0)