зеркало из https://github.com/mozilla/gecko-dev.git
Make some test tweaks to aid in diagnosing bug 558497. r=foopy
--HG-- extra : rebase_source : 93059d61adcecbc3bc719c782bf37091b284ba2b
This commit is contained in:
Родитель
3063e8da4c
Коммит
70e07cf056
|
@ -331,10 +331,13 @@ handlers["/handleAsyncOrdering"] = handleAsyncOrdering;
|
||||||
function stop_handleAsyncOrdering(ch, cx, status, data)
|
function stop_handleAsyncOrdering(ch, cx, status, data)
|
||||||
{
|
{
|
||||||
do_check_eq(data.length, 20 * 65536);
|
do_check_eq(data.length, 20 * 65536);
|
||||||
do_check_true(data.every(function(v) { return v === 0; }));
|
data.forEach(function(v, index)
|
||||||
|
{
|
||||||
|
if (v !== 0)
|
||||||
|
do_throw("value " + v + " at index " + index + " should be zero");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
test = new Test(PREPATH + "/handleAsyncOrdering",
|
test = new Test(PREPATH + "/handleAsyncOrdering",
|
||||||
null, null, stop_handleAsyncOrdering);
|
null, null, stop_handleAsyncOrdering);
|
||||||
tests.push(test);
|
tests.push(test);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче