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
8bc9e1b8
Commit
8bc9e1b8
authored
Nov 16, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #384 from Hixie/resilient-tests
More resilient Widget tests
parents
81e1c835
d041f3ea
Changes
47
Hide whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
195 additions
and
1 deletion
+195
-1
align_test.dart
packages/unit/test/widget/align_test.dart
+4
-0
animated_container_test.dart
packages/unit/test/widget/animated_container_test.dart
+4
-0
block_test.dart
packages/unit/test/widget/block_test.dart
+4
-0
bottom_sheet_test.dart
packages/unit/test/widget/bottom_sheet_test.dart
+4
-0
box_decoration_test.dart
packages/unit/test/widget/box_decoration_test.dart
+4
-0
build_scope_test.dart
packages/unit/test/widget/build_scope_test.dart
+4
-0
center_test.dart
packages/unit/test/widget/center_test.dart
+4
-0
coordinates_test.dart
packages/unit/test/widget/coordinates_test.dart
+4
-0
custom_multi_child_layout_test.dart
...ages/unit/test/widget/custom_multi_child_layout_test.dart
+4
-0
custom_one_child_layout_test.dart
packages/unit/test/widget/custom_one_child_layout_test.dart
+4
-0
date_picker_test.dart
packages/unit/test/widget/date_picker_test.dart
+4
-0
dismissable_test.dart
packages/unit/test/widget/dismissable_test.dart
+5
-0
draggable_test.dart
packages/unit/test/widget/draggable_test.dart
+4
-0
drawer_test.dart
packages/unit/test/widget/drawer_test.dart
+4
-0
duplicate_key_test.dart
packages/unit/test/widget/duplicate_key_test.dart
+4
-0
flex_test.dart
packages/unit/test/widget/flex_test.dart
+4
-0
focus_test.dart
packages/unit/test/widget/focus_test.dart
+4
-0
fractionally_sized_box_test.dart
packages/unit/test/widget/fractionally_sized_box_test.dart
+4
-0
gesture_detector_test.dart
packages/unit/test/widget/gesture_detector_test.dart
+4
-0
heroes_test.dart
packages/unit/test/widget/heroes_test.dart
+4
-0
homogeneous_viewport_test.dart
packages/unit/test/widget/homogeneous_viewport_test.dart
+4
-0
input_test.dart
packages/unit/test/widget/input_test.dart
+4
-0
listener_test.dart
packages/unit/test/widget/listener_test.dart
+4
-0
mixed_viewport_test.dart
packages/unit/test/widget/mixed_viewport_test.dart
+4
-0
multichild_test.dart
packages/unit/test/widget/multichild_test.dart
+4
-0
navigator_test.dart
packages/unit/test/widget/navigator_test.dart
+4
-0
pageable_list_test.dart
packages/unit/test/widget/pageable_list_test.dart
+4
-0
parent_data_test.dart
packages/unit/test/widget/parent_data_test.dart
+4
-0
positioned_test.dart
packages/unit/test/widget/positioned_test.dart
+4
-0
progress_indicator_test.dart
packages/unit/test/widget/progress_indicator_test.dart
+4
-0
render_object_widget_test.dart
packages/unit/test/widget/render_object_widget_test.dart
+4
-0
scrollable_list_hit_testing_test.dart
...es/unit/test/widget/scrollable_list_hit_testing_test.dart
+4
-0
scrollable_list_horizontal_test.dart
...ges/unit/test/widget/scrollable_list_horizontal_test.dart
+4
-0
scrollable_list_vertical_test.dart
packages/unit/test/widget/scrollable_list_vertical_test.dart
+4
-0
scrollable_list_with_inherited_test.dart
...unit/test/widget/scrollable_list_with_inherited_test.dart
+4
-0
set_state_test.dart
packages/unit/test/widget/set_state_test.dart
+4
-0
shader_mask_test.dart
packages/unit/test/widget/shader_mask_test.dart
+4
-0
size_observer_test.dart
packages/unit/test/widget/size_observer_test.dart
+4
-0
snack_bar_test.dart
packages/unit/test/widget/snack_bar_test.dart
+4
-0
stack_test.dart
packages/unit/test/widget/stack_test.dart
+4
-0
stateful_component_test.dart
packages/unit/test/widget/stateful_component_test.dart
+4
-0
stateful_components_test.dart
packages/unit/test/widget/stateful_components_test.dart
+4
-0
syncing_test.dart
packages/unit/test/widget/syncing_test.dart
+4
-0
tabs_test.dart
packages/unit/test/widget/tabs_test.dart
+4
-0
test_widgets.dart
packages/unit/test/widget/test_widgets.dart
+4
-0
transform_test.dart
packages/unit/test/widget/transform_test.dart
+4
-0
widget_tester.dart
packages/unit/test/widget/widget_tester.dart
+10
-1
No files found.
packages/unit/test/widget/align_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/animated_container_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/animation.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/unit/test/widget/block_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/bottom_sheet_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/box_decoration_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/build_scope_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/animation.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/center_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/coordinates_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/custom_multi_child_layout_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/custom_one_child_layout_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/date_picker_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/dismissable_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
@@ -280,3 +284,4 @@ void main() {
});
});
}
packages/unit/test/widget/draggable_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/drawer_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/duplicate_key_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/flex_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/focus_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/fractionally_sized_box_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/gesture_detector_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/heroes_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/homogeneous_viewport_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/input_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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:mojo_services/keyboard/keyboard.mojom.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/services.dart'
;
...
...
packages/unit/test/widget/listener_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/mixed_viewport_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/multichild_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/navigator_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/pageable_list_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/parent_data_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/positioned_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/animation.dart'
;
import
'package:flutter/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/unit/test/widget/progress_indicator_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/material.dart'
;
...
...
packages/unit/test/widget/render_object_widget_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/scrollable_list_hit_testing_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/scrollable_list_horizontal_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/scrollable_list_vertical_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/scrollable_list_with_inherited_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/set_state_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/shader_mask_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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:ui'
as
ui
;
import
'package:flutter/painting.dart'
;
...
...
packages/unit/test/widget/size_observer_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
...
...
packages/unit/test/widget/snack_bar_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/stack_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/stateful_component_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/rendering.dart'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/stateful_components_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/syncing_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/tabs_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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'
;
import
'package:flutter/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/test_widgets.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/transform_test.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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/widgets.dart'
;
import
'package:test/test.dart'
;
...
...
packages/unit/test/widget/widget_tester.dart
View file @
8bc9e1b8
// Copyright 2015 The Chromium 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:ui'
as
ui
;
import
'package:flutter/animation.dart'
;
import
'package:flutter/gestures.dart'
;
import
'package:flutter/rendering.dart'
;
...
...
@@ -29,7 +35,10 @@ typedef Point SizeToPointFunction(Size size);
class
WidgetTester
{
WidgetTester
.
_
(
FakeAsync
async
)
:
async
=
async
,
clock
=
async
.
getClock
(
new
DateTime
.
utc
(
2015
,
1
,
1
));
clock
=
async
.
getClock
(
new
DateTime
.
utc
(
2015
,
1
,
1
))
{
timeDilation
=
1.0
;
ui
.
window
.
onBeginFrame
=
null
;
}
final
FakeAsync
async
;
final
Clock
clock
;
...
...
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