Index: third_party/WebKit/LayoutTests/svg/dom/integer-optional-integer-value-range.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/integer-optional-integer-value-range.html b/third_party/WebKit/LayoutTests/svg/dom/integer-optional-integer-value-range.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50e408ee2b914c23e7281be4bf0251b90a7ef8df |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/dom/integer-optional-integer-value-range.html |
@@ -0,0 +1,20 @@ |
+<!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
|
+<title>SVGIntegerOptionalInteger value range</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+test(function() { |
+ var element = document.createElementNS('http://www.w3.org/2000/svg', 'feConvolveMatrix'); |
+ element.setAttribute('order', '2147483648'); |
+ assert_equals(element.orderX.baseVal, 2147483647); |
+ |
+ element.setAttribute('order', '-2147483649'); |
+ assert_equals(element.orderX.baseVal, -2147483648); |
+}, document.title+', outside range of int.'); |
+ |
+test(function() { |
+ var element = document.createElementNS('http://www.w3.org/2000/svg', 'feConvolveMatrix'); |
+ element.setAttribute('order', '2147483578'); |
+ assert_equals(element.orderX.baseVal, 2147483647); |
+}, document.title+', not exactly representable as int.'); |
+</script> |