projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usage of CustomeView for ScrollContainer and code refactoring accordingly. Also added...
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit
/
utc-Dali-ItemLayout.cpp
diff --git
a/automated-tests/src/dali-toolkit/utc-Dali-ItemLayout.cpp
b/automated-tests/src/dali-toolkit/utc-Dali-ItemLayout.cpp
index
447c78a
..
aa51150
100644
(file)
--- a/
automated-tests/src/dali-toolkit/utc-Dali-ItemLayout.cpp
+++ b/
automated-tests/src/dali-toolkit/utc-Dali-ItemLayout.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
5
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
6
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-291,6
+291,9
@@
int UtcDaliItemLayoutSetAndGetOrientation(void)
DALI_TEST_CHECK(flickSpeedFactor != 0.0f);
DALI_TEST_CHECK(flickSpeedFactor != 0.0f);
+ // White box test here: -( itemId / NoOfItemsPerRow(default 4) ) * NoOfItemsPerRow
+ DALI_TEST_EQUALS( -1.0f, gridLayout->GetItemScrollToPosition( 1 ), TEST_LOCATION );
+
ItemLayoutPtr depthLayout = DefaultItemLayout::New( DefaultItemLayout::DEPTH );
view.AddLayout(*depthLayout);
ItemLayoutPtr depthLayout = DefaultItemLayout::New( DefaultItemLayout::DEPTH );
view.AddLayout(*depthLayout);