OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
pdr.
2016/12/19 19:42:54
Please don't rewrite this, but for future patches
fs
2016/12/19 19:54:54
The reason for adding a layout test here is becaus
pdr.
2016/12/19 20:01:51
In terms of web exposed behavior, unittests and la
fs
2016/12/19 20:16:23
Yes, that's a large part of it. It also makes sure
| |
2 <title>SVGIntegerOptionalInteger value range</title> | |
3 <script src="../../resources/testharness.js"></script> | |
4 <script src="../../resources/testharnessreport.js"></script> | |
5 <script> | |
6 test(function() { | |
7 var element = document.createElementNS('http://www.w3.org/2000/svg', 'feConvol veMatrix'); | |
8 element.setAttribute('order', '2147483648'); | |
9 assert_equals(element.orderX.baseVal, 2147483647); | |
10 | |
11 element.setAttribute('order', '-2147483649'); | |
12 assert_equals(element.orderX.baseVal, -2147483648); | |
13 }, document.title+', outside range of int.'); | |
14 | |
15 test(function() { | |
16 var element = document.createElementNS('http://www.w3.org/2000/svg', 'feConvol veMatrix'); | |
17 element.setAttribute('order', '2147483578'); | |
18 assert_equals(element.orderX.baseVal, 2147483647); | |
19 }, document.title+', not exactly representable as int.'); | |
20 </script> | |
OLD | NEW |