Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e5000f6c
Unverified
Commit
e5000f6c
authored
Dec 01, 2020
by
Jonah Williams
Committed by
GitHub
Dec 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Remove usage of --precompiled flag for web tests (#70977)
parent
7ab04428
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
29 additions
and
31 deletions
+29
-31
test.dart
dev/bots/test.dart
+2
-26
nav_bar_transition_test.dart
packages/flutter/test/cupertino/nav_bar_transition_test.dart
+1
-0
refresh_test.dart
packages/flutter/test/cupertino/refresh_test.dart
+1
-0
route_test.dart
packages/flutter/test/cupertino/route_test.dart
+1
-0
text_field_test.dart
packages/flutter/test/cupertino/text_field_test.dart
+1
-0
sector_layout_test.dart
packages/flutter/test/examples/sector_layout_test.dart
+1
-0
consolidate_response_test.dart
...es/flutter/test/foundation/consolidate_response_test.dart
+1
-0
error_reporting_test.dart
packages/flutter/test/foundation/error_reporting_test.dart
+1
-0
stack_trace_test.dart
packages/flutter/test/foundation/stack_trace_test.dart
+1
-0
data_table_test.dart
packages/flutter/test/material/data_table_test.dart
+1
-0
floating_action_button_test.dart
...es/flutter/test/material/floating_action_button_test.dart
+1
-0
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+1
-0
time_picker_test.dart
packages/flutter/test/material/time_picker_test.dart
+1
-0
message_codecs_vm_test.dart
packages/flutter/test/services/message_codecs_vm_test.dart
+1
-0
platform_messages_test.dart
packages/flutter/test/services/platform_messages_test.dart
+1
-0
color_filter_test.dart
packages/flutter/test/widgets/color_filter_test.dart
+1
-0
editable_text_cursor_test.dart
packages/flutter/test/widgets/editable_text_cursor_test.dart
+1
-0
image_resolution_test.dart
packages/flutter/test/widgets/image_resolution_test.dart
+1
-0
platform_view_test.dart
packages/flutter/test/widgets/platform_view_test.dart
+1
-0
route_notification_messages_test.dart
...lutter/test/widgets/route_notification_messages_test.dart
+1
-0
selectable_text_test.dart
packages/flutter/test/widgets/selectable_text_test.dart
+1
-0
semantics_tester_generateTestSemanticsExpressionForCurrentSemanticsTree_test.dart
...eTestSemanticsExpressionForCurrentSemanticsTree_test.dart
+1
-0
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+1
-0
widget_inspector_test.dart
packages/flutter/test/widgets/widget_inspector_test.dart
+5
-4
runner.dart
packages/flutter_tools/lib/src/test/runner.dart
+0
-1
No files found.
dev/bots/test.dart
View file @
e5000f6c
...
@@ -83,36 +83,12 @@ int get webShardCount => Platform.environment.containsKey('WEB_SHARD_COUNT')
...
@@ -83,36 +83,12 @@ int get webShardCount => Platform.environment.containsKey('WEB_SHARD_COUNT')
/// WARNING: this number must match the shard count in LUCI configs.
/// WARNING: this number must match the shard count in LUCI configs.
const
int
kWebLongRunningTestShardCount
=
3
;
const
int
kWebLongRunningTestShardCount
=
3
;
/// Tests that we don't run on Web for
various
reasons.
/// Tests that we don't run on Web for
compilation
reasons.
//
//
// TODO(yjbanov): we're getting rid of this as part of https://github.com/flutter/flutter/projects/60
// TODO(yjbanov): we're getting rid of this as part of https://github.com/flutter/flutter/projects/60
const
List
<
String
>
kWebTestFileKnownFailures
=
<
String
>[
const
List
<
String
>
kWebTestFileKnownFailures
=
<
String
>[
// This test doesn't compile because it depends on code outside the flutter package.
'test/examples/sector_layout_test.dart'
,
// This test relies on widget tracking capability in the VM.
'test/widgets/widget_inspector_test.dart'
,
'test/painting/decoration_test.dart'
,
'test/material/time_picker_test.dart'
,
'test/material/text_field_test.dart'
,
'test/material/floating_action_button_test.dart'
,
'test/widgets/selectable_text_test.dart'
,
'test/widgets/color_filter_test.dart'
,
'test/widgets/editable_text_cursor_test.dart'
,
'test/material/data_table_test.dart'
,
'test/cupertino/nav_bar_transition_test.dart'
,
'test/cupertino/refresh_test.dart'
,
'test/cupertino/text_field_test.dart'
,
'test/cupertino/route_test.dart'
,
'test/foundation/error_reporting_test.dart'
,
'test/foundation/consolidate_response_test.dart'
,
'test/foundation/stack_trace_test.dart'
,
'test/services/message_codecs_vm_test.dart'
,
'test/services/message_codecs_vm_test.dart'
,
'test/services/platform_messages_test.dart'
,
'test/examples/sector_layout_test.dart'
,
'test/widgets/image_resolution_test.dart '
,
'test/widgets/platform_view_test.dart'
,
'test/widgets/route_notification_messages_test.dart'
,
'test/widgets/semantics_tester_generateTestSemanticsExpressionForCurrentSemanticsTree_test.dart'
,
'test/widgets/text_golden_test.dart'
,
];
];
/// When you call this, you can pass additional arguments to pass custom
/// When you call this, you can pass additional arguments to pass custom
...
...
packages/flutter/test/cupertino/nav_bar_transition_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/cupertino/refresh_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:async'
;
import
'dart:async'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
...
packages/flutter/test/cupertino/route_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/cupertino/text_field_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
,
Color
;
import
'dart:ui'
as
ui
show
BoxHeightStyle
,
BoxWidthStyle
,
Color
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
...
...
packages/flutter/test/examples/sector_layout_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'../../../../examples/layers/rendering/custom_coordinate_systems.dart'
;
import
'../../../../examples/layers/rendering/custom_coordinate_systems.dart'
;
...
...
packages/flutter/test/foundation/consolidate_response_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:async'
;
import
'dart:async'
;
import
'dart:io'
;
import
'dart:io'
;
import
'dart:typed_data'
;
import
'dart:typed_data'
;
...
...
packages/flutter/test/foundation/error_reporting_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'../flutter_test_alternative.dart'
;
import
'../flutter_test_alternative.dart'
;
...
...
packages/flutter/test/foundation/stack_trace_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'../flutter_test_alternative.dart'
;
import
'../flutter_test_alternative.dart'
;
...
...
packages/flutter/test/material/data_table_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/gestures.dart'
;
...
...
packages/flutter/test/material/floating_action_button_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/material/text_field_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:math'
as
math
;
import
'dart:math'
as
math
;
import
'dart:ui'
as
ui
show
window
,
BoxHeightStyle
,
BoxWidthStyle
;
import
'dart:ui'
as
ui
show
window
,
BoxHeightStyle
,
BoxWidthStyle
;
...
...
packages/flutter/test/material/time_picker_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/flutter/test/services/message_codecs_vm_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
...
...
packages/flutter/test/services/platform_messages_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/flutter/test/widgets/color_filter_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
packages/flutter/test/widgets/editable_text_cursor_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/image_resolution_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'dart:ui'
as
ui
show
Image
;
import
'dart:ui'
as
ui
show
Image
;
...
...
packages/flutter/test/widgets/platform_view_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:async'
;
import
'dart:async'
;
import
'dart:typed_data'
;
import
'dart:typed_data'
;
import
'dart:ui'
;
import
'dart:ui'
;
...
...
packages/flutter/test/widgets/route_notification_messages_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:ui'
;
import
'dart:ui'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
...
...
packages/flutter/test/widgets/selectable_text_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
...
...
packages/flutter/test/widgets/semantics_tester_generateTestSemanticsExpressionForCurrentSemanticsTree_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:io'
;
import
'dart:io'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/flutter/test/widgets/widget_inspector_test.dart
View file @
e5000f6c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
@TestOn
(
'!chrome'
)
import
'dart:async'
;
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:convert'
;
import
'dart:math'
;
import
'dart:math'
;
...
@@ -1841,7 +1842,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -1841,7 +1842,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
_CreationLocation
location
=
knownLocations
[
id
]!;
_CreationLocation
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
// ClockText widget.
expect
(
location
.
line
,
equals
(
5
3
));
expect
(
location
.
line
,
equals
(
5
4
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
count
,
equals
(
1
));
expect
(
count
,
equals
(
1
));
...
@@ -1850,7 +1851,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -1850,7 +1851,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
9
1
));
expect
(
location
.
line
,
equals
(
9
2
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
count
,
equals
(
1
));
expect
(
count
,
equals
(
1
));
...
@@ -1875,7 +1876,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -1875,7 +1876,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// ClockText widget.
// ClockText widget.
expect
(
location
.
line
,
equals
(
5
3
));
expect
(
location
.
line
,
equals
(
5
4
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
location
.
column
,
equals
(
9
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
@@ -1884,7 +1885,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
...
@@ -1884,7 +1885,7 @@ class _TestWidgetInspectorService extends TestWidgetInspectorService {
location
=
knownLocations
[
id
]!;
location
=
knownLocations
[
id
]!;
expect
(
location
.
file
,
equals
(
file
));
expect
(
location
.
file
,
equals
(
file
));
// Text widget in _ClockTextState build method.
// Text widget in _ClockTextState build method.
expect
(
location
.
line
,
equals
(
9
1
));
expect
(
location
.
line
,
equals
(
9
2
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
location
.
column
,
equals
(
12
));
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
expect
(
count
,
equals
(
3
));
// 3 clock widget instances rebuilt.
...
...
packages/flutter_tools/lib/src/test/runner.dart
View file @
e5000f6c
...
@@ -134,7 +134,6 @@ class _FlutterTestRunnerImpl implements FlutterTestRunner {
...
@@ -134,7 +134,6 @@ class _FlutterTestRunnerImpl implements FlutterTestRunner {
}
}
testArgs
testArgs
..
add
(
'--platform=chrome'
)
..
add
(
'--platform=chrome'
)
..
add
(
'--precompiled=
$tempBuildDir
'
)
..
add
(
'--'
)
..
add
(
'--'
)
..
addAll
(
testFiles
);
..
addAll
(
testFiles
);
testWrapper
.
registerPlatformPlugin
(
testWrapper
.
registerPlatformPlugin
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment