Title: [98083] trunk/LayoutTests
- Revision
- 98083
- Author
- tk...@chromium.org
- Date
- 2011-10-21 01:24:08 -0700 (Fri, 21 Oct 2011)
Log Message
Add tests to check behavior of border attribute with a large number or an invalid value.
https://bugs.webkit.org/show_bug.cgi?id=69055
Reviewed by Daniel Bates.
r96290 changed the behavior of integer parsing so that large
number strings which can not be represented in 32 bit integers
makes an error. However, border attribute behavior wasn't changed
by r96290 because its default value is 0 and
parseHTMLNonNegativeInteger() had set 0 in a case of overflow.
* fast/dom/HTMLImageElement/image-with-invalid-border-expected.html: Added.
* fast/dom/HTMLImageElement/image-with-invalid-border.html: Added.
* fast/dom/HTMLInputElement/input-with-invalid-border-expected.html: Added.
* fast/dom/HTMLInputElement/input-with-invalid-border.html: Added.
* fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html: Added.
* fast/dom/HTMLObjectElement/object-with-invalid-border.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (98082 => 98083)
--- trunk/LayoutTests/ChangeLog 2011-10-21 08:19:03 UTC (rev 98082)
+++ trunk/LayoutTests/ChangeLog 2011-10-21 08:24:08 UTC (rev 98083)
@@ -1,3 +1,23 @@
+2011-10-03 Kent Tamura <tk...@chromium.org>
+
+ Add tests to check behavior of border attribute with a large number or an invalid value.
+ https://bugs.webkit.org/show_bug.cgi?id=69055
+
+ Reviewed by Daniel Bates.
+
+ r96290 changed the behavior of integer parsing so that large
+ number strings which can not be represented in 32 bit integers
+ makes an error. However, border attribute behavior wasn't changed
+ by r96290 because its default value is 0 and
+ parseHTMLNonNegativeInteger() had set 0 in a case of overflow.
+
+ * fast/dom/HTMLImageElement/image-with-invalid-border-expected.html: Added.
+ * fast/dom/HTMLImageElement/image-with-invalid-border.html: Added.
+ * fast/dom/HTMLInputElement/input-with-invalid-border-expected.html: Added.
+ * fast/dom/HTMLInputElement/input-with-invalid-border.html: Added.
+ * fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html: Added.
+ * fast/dom/HTMLObjectElement/object-with-invalid-border.html: Added.
+
2011-10-20 Andrey Kosyakov <ca...@chromium.org>
Web Inspector: make extension tests pass on chromium
Added: trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border-expected.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border-expected.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border-expected.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Img elements with invalid border attribute should have the same appearance as an img element without border attribute.</p>
+<img src=""
+<img src=""
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border-expected.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Img elements with invalid border attribute should have the same appearance as an img element without border attribute.</p>
+<img src="" border="invalid">
+<img src="" border="9999999999">
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLImageElement/image-with-invalid-border.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border-expected.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border-expected.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border-expected.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Image input elements with invalid border attribute should have the same appearance as an image input element without border attribute.</p>
+<input type="image">
+<input type="image">
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border-expected.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Image input elements with invalid border attribute should have the same appearance as an image input element without border attribute.</p>
+<input type="image" border="invalid">
+<input type="image" border="9999999999">
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLInputElement/input-with-invalid-border.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Object elements with invalid border attribute should have the same appearance as an object element without border attribute.</p>
+<object></object>
+<object></object>
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border-expected.html
___________________________________________________________________
Added: svn:eol-style
Added: trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border.html (0 => 98083)
--- trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border.html (rev 0)
+++ trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border.html 2011-10-21 08:24:08 UTC (rev 98083)
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<body>
+<p>Object elements with invalid border attribute should have the same appearance as an object element without border attribute.</p>
+<object border="invalid"></object>
+<object border="9999999999"></object>
+</body>
Property changes on: trunk/LayoutTests/fast/dom/HTMLObjectElement/object-with-invalid-border.html
___________________________________________________________________
Added: svn:eol-style
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes