Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/js-test.js"></script> | |
| 3 <script> | |
| 4 description("Tests that the OffScreenCanvas can handle invalid arguments"); | |
| 5 | |
| 6 var width; | |
| 7 var height; | |
| 8 | |
| 9 var setWidth = Math.pow(2, 31); | |
|
Justin Novosad
2015/12/03 17:05:55
Explain that the overflow is an implementation-spe
xidachen
2015/12/03 18:41:40
Done.
| |
| 10 var setHeight = Math.pow(2, 31); | |
| 11 var canvas1 = new OffScreenCanvas(setWidth, setHeight); | |
|
Justin Novosad
2015/12/03 17:05:54
You should also validate setting the size through
xidachen
2015/12/03 18:41:40
The case of setting the size through the attribute
| |
| 12 | |
| 13 width = canvas1.width; | |
| 14 height = canvas1.height; | |
| 15 shouldBe("width", "setWidth-1"); | |
| 16 shouldBe("height", "setHeight-1"); | |
| 17 </script> | |
| OLD | NEW |