B2G/gecko/image/test/unit/test_imgtools.js
/*
 * compareArrays
 *
 * Compares two arrays, and throws if there's a difference.
 */
compareArrays
Compares two arrays, and throws if there's a difference.
compareArrays Compares two arrays and throws if there ' s a difference .
function compareArrays(aArray1, aArray2) {
    do_check_eq(aArray1.length, aArray2.length);
    for (var i = 0; i < aArray1.length; i++)
        if (aArray1[i] != aArray2[i])
            throw "arrays differ at index " + i;
}
function compareArrays ( aArray1 , aArray2 ) { do_check_eq ( aArray1 . length , aArray2 . length ) ; for ( var i = 0 ; i < aArray1 . length ; i ++ ) if ( aArray1 [ i ] != aArray2 [ i ] ) throw "arrays differ at index " + i ; }
compareArrays
 Compares two arrays, and throws if there's a difference.
compareArrays Compares two arrays and throws if there ' s a difference .