FLEX-26808 Increased a test function's timeout and added a bit more information 
to see why another is failing.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/0dff7f48
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/0dff7f48
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/0dff7f48

Branch: refs/heads/develop
Commit: 0dff7f4862f8937bd97c67ff7b02fe7245f77646
Parents: 631b09c
Author: Mihai Chira <mih...@apache.org>
Authored: Mon Sep 19 13:35:33 2016 +0200
Committer: Mihai Chira <mih...@apache.org>
Committed: Mon Sep 19 13:35:33 2016 +0200

----------------------------------------------------------------------
 .../spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/0dff7f48/frameworks/projects/spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as 
b/frameworks/projects/spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as
index de01b88..1480448 100644
--- 
a/frameworks/projects/spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as
+++ 
b/frameworks/projects/spark/tests/spark/components/DataGrid_FLEX_26808_Tests.as
@@ -188,7 +188,7 @@ package spark.components {
             _sut.selectedIndices = new <int>[0, 1];
 
             //then
-            assertTrue(ArrayUtil.arraysMatch([_firstObject, _secondObject], 
VectorUtil.toArrayObject(_sut.selectedItems)));
+            assertTrue("The first two objects should be selected", 
ArrayUtil.arraysMatch([_firstObject, _secondObject], 
VectorUtil.toArrayObject(_sut.selectedItems)));
 
             //given
             const mouseDown:MouseEvent = new MouseEvent(MouseEvent.MOUSE_DOWN, 
true, false, 5, 5, null, false, false, false);
@@ -204,7 +204,7 @@ package spark.components {
             _sut.removeEventListener(GridEvent.GRID_MOUSE_DOWN, 
onGridMouseDown);
         }
 
-        [Test(async, timeout=1000)]
+        [Test(async, timeout=1300)]
         public function test_dragging_maintains_manually_selected_items():void
         {
             //when
@@ -215,7 +215,7 @@ package spark.components {
 
             noEnterFramesRemaining = NO_ENTER_FRAMES_TO_ALLOW;
             UIImpersonator.testDisplay.addEventListener(Event.ENTER_FRAME, 
onEnterFrame);
-            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, 
test_programmatic_selection_and_dragging, 800);
+            Async.handleEvent(this, _finishNotifier, Event.COMPLETE, 
test_programmatic_selection_and_dragging, 1200);
         }
 
         private function 
test_manual_selection_of_two_items_and_dragging(event:Event, 
passThroughData:Object):void

Reply via email to