Title: [185792] trunk/LayoutTests
Revision
185792
Author
[email protected]
Date
2015-06-20 07:26:05 -0700 (Sat, 20 Jun 2015)

Log Message

REGRESSION (r185779): fast/canvas/canvas-too-large-to-draw.html broken prior to El Capitan

This layout test started failing after the fix for:

    Extremely large canvas crashes on pre-El Capitan machines
    https://bugs.webkit.org/show_bug.cgi?id=146169
    <rdar://problem/21410046>

* fast/canvas/canvas-too-large-to-draw.html: Update test for new
expectations after r185779.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (185791 => 185792)


--- trunk/LayoutTests/ChangeLog	2015-06-20 11:04:27 UTC (rev 185791)
+++ trunk/LayoutTests/ChangeLog	2015-06-20 14:26:05 UTC (rev 185792)
@@ -1,3 +1,16 @@
+2015-06-20  David Kilzer  <[email protected]>
+
+        REGRESSION (r185779): fast/canvas/canvas-too-large-to-draw.html broken prior to El Capitan
+
+        This layout test started failing after the fix for:
+
+            Extremely large canvas crashes on pre-El Capitan machines
+            https://bugs.webkit.org/show_bug.cgi?id=146169
+            <rdar://problem/21410046>
+
+        * fast/canvas/canvas-too-large-to-draw.html: Update test for new
+        expectations after r185779.
+
 2015-06-20  Yusuke Suzuki  <[email protected]>
 
         [ES6] Destructuring assignment need to accept iterables

Modified: trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html (185791 => 185792)


--- trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html	2015-06-20 11:04:27 UTC (rev 185791)
+++ trunk/LayoutTests/fast/canvas/canvas-too-large-to-draw.html	2015-06-20 14:26:05 UTC (rev 185792)
@@ -17,8 +17,9 @@
       window.testRunner.dumpAsText();
 
     var iOSPlatform = navigator.userAgent.search(/\biPhone OS\b/) != -1;
-    var MAX_WIDTH = iOSPlatform ? Math.pow(2, 12) : Math.pow(2, 14);
-    var MAX_HEIGHT = iOSPlatform ? Math.pow(2, 12) : Math.pow(2, 14);
+    var OSXYosemiteOrOlder = navigator.userAgent.search(/\bMac OS X 10_(8|9|10)(_[0-9]+)?\b/) != -1;
+    var MAX_WIDTH = iOSPlatform ? Math.pow(2, 12) : (OSXYosemiteOrOlder ? Math.pow(2, 13) : Math.pow(2, 14));
+    var MAX_HEIGHT = MAX_WIDTH;
 
     function fillCanvas(id, width, height) {
       var canvas = document.getElementById(id);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to