Title: [124326] trunk
Revision
124326
Author
[email protected]
Date
2012-08-01 05:03:09 -0700 (Wed, 01 Aug 2012)

Log Message

Attempt to fix flakiness of color-suggestion-picker-appearance.html
https://bugs.webkit.org/show_bug.cgi?id=92848

Reviewed by Kent Tamura.

Source/WebCore:

* Resources/colorSuggestionPicker.js:
(ColorPicker.prototype._layout): We put the width and height into
variables so we don't call window.onresize twice.

LayoutTests:

We observed console.log bleeding into the next test.

* platform/chromium/fast/forms/color/color-suggestion-picker-appearance.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (124325 => 124326)


--- trunk/LayoutTests/ChangeLog	2012-08-01 11:51:42 UTC (rev 124325)
+++ trunk/LayoutTests/ChangeLog	2012-08-01 12:03:09 UTC (rev 124326)
@@ -1,3 +1,14 @@
+2012-08-01  Keishi Hattori  <[email protected]>
+
+        Attempt to fix flakiness of color-suggestion-picker-appearance.html
+        https://bugs.webkit.org/show_bug.cgi?id=92848
+
+        Reviewed by Kent Tamura.
+
+        We observed console.log bleeding into the next test.
+
+        * platform/chromium/fast/forms/color/color-suggestion-picker-appearance.html:
+
 2012-08-01  Alexander Pavlov  <[email protected]>
 
         [Chromium] Unreviewed, suppress fast/forms/input-widths.html failure, which is due to r124314.

Modified: trunk/LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-appearance.html (124325 => 124326)


--- trunk/LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-appearance.html	2012-08-01 11:51:42 UTC (rev 124325)
+++ trunk/LayoutTests/platform/chromium/fast/forms/color/color-suggestion-picker-appearance.html	2012-08-01 12:03:09 UTC (rev 124326)
@@ -34,7 +34,7 @@
 var pickerWindow = document.getElementById('mock-page-popup').contentWindow;
 pickerWindow._onresize_ = function() {
     console.log(pickerWindow.pagePopupController);
-    testRunner.notifyDone();
+    setTimeout(function() {testRunner.notifyDone();}, 0);
 }
 </script>
 </body>

Modified: trunk/Source/WebCore/ChangeLog (124325 => 124326)


--- trunk/Source/WebCore/ChangeLog	2012-08-01 11:51:42 UTC (rev 124325)
+++ trunk/Source/WebCore/ChangeLog	2012-08-01 12:03:09 UTC (rev 124326)
@@ -1,3 +1,14 @@
+2012-08-01  Keishi Hattori  <[email protected]>
+
+        Attempt to fix flakiness of color-suggestion-picker-appearance.html
+        https://bugs.webkit.org/show_bug.cgi?id=92848
+
+        Reviewed by Kent Tamura.
+
+        * Resources/colorSuggestionPicker.js:
+        (ColorPicker.prototype._layout): We put the width and height into
+        variables so we don't call window.onresize twice.
+
 2012-08-01  Carlos Garcia Campos  <[email protected]>
 
         Unreviewed. Fix GTK+ build with recent version of GTK+.

Modified: trunk/Source/WebCore/Resources/colorSuggestionPicker.js (124325 => 124326)


--- trunk/Source/WebCore/Resources/colorSuggestionPicker.js	2012-08-01 11:51:42 UTC (rev 124325)
+++ trunk/Source/WebCore/Resources/colorSuggestionPicker.js	2012-08-01 12:03:09 UTC (rev 124326)
@@ -171,11 +171,13 @@
     var otherButton = createElement("button", "other-color", this._config.otherColorLabel);
     otherButton.addEventListener("click", chooseOtherColor, false);
     this._element.appendChild(otherButton);
+    var elementWidth = this._element.offsetWidth;
+    var elementHeight = this._element.offsetHeight;
     if (window.frameElement) {
-        window.frameElement.style.width = this._element.offsetWidth + "px";
-        window.frameElement.style.height = this._element.offsetHeight + "px";
+        window.frameElement.style.width = elementWidth + "px";
+        window.frameElement.style.height = elementHeight + "px";
     } else {
-        window.resizeTo(this._element.offsetWidth, this._element.offsetHeight);
+        window.resizeTo(elementWidth, elementHeight);
     }
 };
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to