Bug 1194546 - Ensure that the timeout to allow the transaction to expire waits long enough. r=botond

--HG--
extra : commitid : C6hifevCLzO
This commit is contained in:
Kartikaya Gupta 2015-11-04 14:23:14 -05:00
Родитель 489b582b4b
Коммит 1ca49c085c
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -84,7 +84,9 @@ function* runTest() {
yield scrollWheelOver(outer, 10);
// Wait for the transaction timeout to elapse.
yield window.setTimeout(driveTest, timeout);
// timeout * 5 is used to make it less likely that the timeout is less than
// the system timestamp resolution
yield window.setTimeout(driveTest, timeout * 5);
// Now scroll down. The transaction having timed out, the event
// should pick up a new target, and that should be |inner|.
@ -103,7 +105,9 @@ function* runTest() {
}
// Wait for the transaction timeout to elapse.
yield window.setTimeout(driveTest, timeout);
// timeout * 5 is used to make it less likely that the timeout is less than
// the system timestamp resolution
yield window.setTimeout(driveTest, timeout * 5);
// Continued downward scrolling should scroll |outer| to the bottom.
prevScrollTop = outer.scrollTop;