mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(virtual-scroll): make cards test deterministic (#19049)
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
const items = [];
|
||||
for (var i = 0; i < 1000; i++) {
|
||||
items.push({
|
||||
content: lorem.substring(0, (Math.random() * (lorem.length - 100)) + 100)
|
||||
content: lorem.substring(0, lorem.length * ((i % 4)+1) / 5)
|
||||
});
|
||||
}
|
||||
virtual.items = items;
|
||||
|
||||
Reference in New Issue
Block a user