Title: [94696] trunk/LayoutTests
- Revision
- 94696
- Author
- [email protected]
- Date
- 2011-09-07 12:14:30 -0700 (Wed, 07 Sep 2011)
Log Message
css2.1/t090204-display-change-01-b-ao.html is not attaching event listener properly
https://bugs.webkit.org/show_bug.cgi?id=67725
Reviewed by David Hyatt.
Fixed the test to properly attach load event listener on window instead of document.
Since this broken test also caught a bug fixed in r94693, I made a copy of this version in fast/css.
* css2.1/t090204-display-change-01-b-ao.html:
* fast/css/line-after-floating-div.html: Copied from LayoutTests/css2.1/t090204-display-change-01-b-ao.html.
* platform/mac/css2.1/t090204-display-change-01-b-ao-expected.png:
* platform/mac/css2.1/t090204-display-change-01-b-ao-expected.txt:
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (94695 => 94696)
--- trunk/LayoutTests/ChangeLog 2011-09-07 18:59:55 UTC (rev 94695)
+++ trunk/LayoutTests/ChangeLog 2011-09-07 19:14:30 UTC (rev 94696)
@@ -1,3 +1,19 @@
+2011-09-07 Ryosuke Niwa <[email protected]>
+
+ css2.1/t090204-display-change-01-b-ao.html is not attaching event listener properly
+ https://bugs.webkit.org/show_bug.cgi?id=67725
+
+ Reviewed by David Hyatt.
+
+ Fixed the test to properly attach load event listener on window instead of document.
+
+ Since this broken test also caught a bug fixed in r94693, I made a copy of this version in fast/css.
+
+ * css2.1/t090204-display-change-01-b-ao.html:
+ * fast/css/line-after-floating-div.html: Copied from LayoutTests/css2.1/t090204-display-change-01-b-ao.html.
+ * platform/mac/css2.1/t090204-display-change-01-b-ao-expected.png:
+ * platform/mac/css2.1/t090204-display-change-01-b-ao-expected.txt:
+
2011-09-03 Robert Hogan <[email protected]>
Elements with position:absolute don't move to correct position after images load
Modified: trunk/LayoutTests/css2.1/t090204-display-change-01-b-ao.html (94695 => 94696)
--- trunk/LayoutTests/css2.1/t090204-display-change-01-b-ao.html 2011-09-07 18:59:55 UTC (rev 94695)
+++ trunk/LayoutTests/css2.1/t090204-display-change-01-b-ao.html 2011-09-07 19:14:30 UTC (rev 94696)
@@ -7,7 +7,7 @@
function test() {
document.getElementById('float').style.display = 'none';
}
- document.addEventListener("load", test, false);
+ window.addEventListener("load", test, false);
</script>
<style>
#float { width: 100%; float:left; }
Copied: trunk/LayoutTests/fast/css/line-after-floating-div.html (from rev 94692, trunk/LayoutTests/css2.1/t090204-display-change-01-b-ao.html) (0 => 94696)
--- trunk/LayoutTests/fast/css/line-after-floating-div.html (rev 0)
+++ trunk/LayoutTests/fast/css/line-after-floating-div.html 2011-09-07 19:14:30 UTC (rev 94696)
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
+<html>
+ <head>
+ <title>CSS 2.1 Test Suite: Updating layout on display changes</title>
+ <link rel="help" href=""
+ <style>
+ #float { width: 100%; float:left; }
+ div { background: red; color: green; width: 1em; font-family: Ahem; }
+ </style>
+ </head>
+ <body>
+ <p>There should be no red below, only green.</p>
+ <div id="float">X</div>
+ <div>
+ X
+ </div>
+ </body>
+</html>
\ No newline at end of file
Modified: trunk/LayoutTests/platform/mac/css2.1/t090204-display-change-01-b-ao-expected.png
(Binary files differ)
Modified: trunk/LayoutTests/platform/mac/css2.1/t090204-display-change-01-b-ao-expected.txt (94695 => 94696)
--- trunk/LayoutTests/platform/mac/css2.1/t090204-display-change-01-b-ao-expected.txt 2011-09-07 18:59:55 UTC (rev 94695)
+++ trunk/LayoutTests/platform/mac/css2.1/t090204-display-change-01-b-ao-expected.txt 2011-09-07 19:14:30 UTC (rev 94696)
@@ -1,14 +1,11 @@
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
-layer at (0,0) size 800x90
- RenderBlock {HTML} at (0,0) size 800x90
- RenderBody {BODY} at (8,16) size 784x66
+layer at (0,0) size 800x74
+ RenderBlock {HTML} at (0,0) size 800x74
+ RenderBody {BODY} at (8,16) size 784x50
RenderBlock {P} at (0,0) size 784x18
RenderText {#text} at (0,0) size 268x18
text run at (0,0) width 268: "There should be no red below, only green."
- RenderBlock (floating) {DIV} at (0,34) size 784x16 [color=#008000] [bgcolor=#FF0000]
+ RenderBlock {DIV} at (0,34) size 16x16 [color=#008000] [bgcolor=#FF0000]
RenderText {#text} at (0,0) size 16x16
text run at (0,0) width 16: "X"
- RenderBlock {DIV} at (0,34) size 16x32 [color=#008000] [bgcolor=#FF0000]
- RenderText {#text} at (0,16) size 16x16
- text run at (0,16) width 16: "X"
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes