add @cabanier's test from #797 to the updated style
Merge pull request #970 from patrickkettner/new_canvas_apis

add @cabanier's test from #797 to the updated style
make xhr2 test more accurate with FF3.6
Merge pull request #1178 from patrickkettner/xhr2forff

make xhr2 test more accurate with FF3.6