Changeset 126027 in webkit


Ignore:
Timestamp:
Aug 20, 2012 8:04:59 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Update canvas tests that are using CanvasPixelArray
https://bugs.webkit.org/show_bug.cgi?id=94474

Patch by Thiago Marcos P. Santos <thiago.santos@intel.com> on 2012-08-20
Reviewed by Andreas Kling.

CanvasPixelArray is deprecated. W3C already updated these tests on the
approved tests repository. Using Uint8ClampedArray, they now pass on
WebKit.

  • canvas/philip/tests/2d.imageData.create1.type.html:
  • canvas/philip/tests/2d.imageData.create2.type.html:
  • canvas/philip/tests/2d.imageData.get.type.html:
  • platform/chromium/TestExpectations:
  • platform/efl/Skipped:
  • platform/gtk/TestExpectations:
  • platform/mac/canvas/philip/tests/2d.imageData.create1.type-expected.txt: Removed.
  • platform/mac/canvas/philip/tests/2d.imageData.create2.type-expected.txt: Removed.
  • platform/mac/canvas/philip/tests/2d.imageData.get.type-expected.txt: Removed.
  • platform/qt/Skipped:
Location:
trunk/LayoutTests
Files:
3 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r126026 r126027  
     12012-08-20  Thiago Marcos P. Santos  <thiago.santos@intel.com>
     2
     3        Update canvas tests that are using CanvasPixelArray
     4        https://bugs.webkit.org/show_bug.cgi?id=94474
     5
     6        Reviewed by Andreas Kling.
     7
     8        CanvasPixelArray is deprecated. W3C already updated these tests on the
     9        approved tests repository. Using Uint8ClampedArray, they now pass on
     10        WebKit.
     11
     12        * canvas/philip/tests/2d.imageData.create1.type.html:
     13        * canvas/philip/tests/2d.imageData.create2.type.html:
     14        * canvas/philip/tests/2d.imageData.get.type.html:
     15        * platform/chromium/TestExpectations:
     16        * platform/efl/Skipped:
     17        * platform/gtk/TestExpectations:
     18        * platform/mac/canvas/philip/tests/2d.imageData.create1.type-expected.txt: Removed.
     19        * platform/mac/canvas/philip/tests/2d.imageData.create2.type-expected.txt: Removed.
     20        * platform/mac/canvas/philip/tests/2d.imageData.get.type-expected.txt: Removed.
     21        * platform/qt/Skipped:
     22
    1232012-08-20  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
    224
  • trunk/LayoutTests/canvas/philip/tests/2d.imageData.create1.type.html

    r71481 r126027  
    1414
    1515_assertDifferent(window.ImageData, undefined, "window.ImageData", "undefined");
    16 _assertDifferent(window.CanvasPixelArray, undefined, "window.CanvasPixelArray", "undefined");
     16_assertDifferent(window.Uint8ClampedArray, undefined, "window.Uint8ClampedArray", "undefined");
    1717window.ImageData.prototype.thisImplementsImageData = true;
    18 window.CanvasPixelArray.prototype.thisImplementsCanvasPixelArray = true;
     18window.Uint8ClampedArray.prototype.thisImplementsUint8ClampedArray = true;
    1919var imgdata = ctx.createImageData(ctx.createImageData(1, 1));
    2020_assert(imgdata.thisImplementsImageData, "imgdata.thisImplementsImageData");
    21 _assert(imgdata.data.thisImplementsCanvasPixelArray, "imgdata.data.thisImplementsCanvasPixelArray");
     21_assert(imgdata.data.thisImplementsUint8ClampedArray, "imgdata.data.thisImplementsUint8ClampedArray");
    2222
    2323
  • trunk/LayoutTests/canvas/philip/tests/2d.imageData.create2.type.html

    r71481 r126027  
    1414
    1515_assertDifferent(window.ImageData, undefined, "window.ImageData", "undefined");
    16 _assertDifferent(window.CanvasPixelArray, undefined, "window.CanvasPixelArray", "undefined");
     16_assertDifferent(window.Uint8ClampedArray, undefined, "window.Uint8ClampedArray", "undefined");
    1717window.ImageData.prototype.thisImplementsImageData = true;
    18 window.CanvasPixelArray.prototype.thisImplementsCanvasPixelArray = true;
     18window.Uint8ClampedArray.prototype.thisImplementsUint8ClampedArray = true;
    1919var imgdata = ctx.createImageData(1, 1);
    2020_assert(imgdata.thisImplementsImageData, "imgdata.thisImplementsImageData");
    21 _assert(imgdata.data.thisImplementsCanvasPixelArray, "imgdata.data.thisImplementsCanvasPixelArray");
     21_assert(imgdata.data.thisImplementsUint8ClampedArray, "imgdata.data.thisImplementsUint8ClampedArray");
    2222
    2323
  • trunk/LayoutTests/canvas/philip/tests/2d.imageData.get.type.html

    r71481 r126027  
    1414
    1515_assertDifferent(window.ImageData, undefined, "window.ImageData", "undefined");
    16 _assertDifferent(window.CanvasPixelArray, undefined, "window.CanvasPixelArray", "undefined");
     16_assertDifferent(window.Uint8ClampedArray, undefined, "window.Uint8ClampedArray", "undefined");
    1717window.ImageData.prototype.thisImplementsImageData = true;
    18 window.CanvasPixelArray.prototype.thisImplementsCanvasPixelArray = true;
    19 var imgdata = ctx.getImageData(0, 0, 1, 1);
     18window.Uint8ClampedArray.prototype.thisImplementsUint8ClampedArray = true;
     19var imgdata = ctx.createImageData(1, 1);
    2020_assert(imgdata.thisImplementsImageData, "imgdata.thisImplementsImageData");
    21 _assert(imgdata.data.thisImplementsCanvasPixelArray, "imgdata.data.thisImplementsCanvasPixelArray");
     21_assert(imgdata.data.thisImplementsUint8ClampedArray, "imgdata.data.thisImplementsUint8ClampedArray");
    2222
    2323
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r126023 r126027  
    18661866BUGWK45991 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.drawImage.broken.html = TEXT
    18671867
    1868 BUGWK39212 : canvas/philip/tests/2d.imageData.create1.type.html = TEXT
    1869 BUGWK39212 : canvas/philip/tests/2d.imageData.create2.type.html = TEXT
    1870 BUGWK39212 : canvas/philip/tests/2d.imageData.get.type.html = TEXT
    1871 BUGWK39212 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.imageData.create1.type.html = TEXT
    1872 BUGWK39212 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.imageData.create2.type.html = TEXT
    1873 BUGWK39212 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.imageData.get.type.html = TEXT
    1874 
    18751868BUGWK94246 : canvas/philip/tests/2d.imageData.object.round.html = TEXT
    18761869BUGWK94246 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.imageData.object.round.html = TEXT
  • trunk/LayoutTests/platform/efl/Skipped

    r126023 r126027  
    309309canvas/philip/tests/2d.fillStyle.parse.rgb-eof.html
    310310canvas/philip/tests/2d.fillStyle.parse.rgba-eof.html
    311 canvas/philip/tests/2d.imageData.create1.type.html
    312 canvas/philip/tests/2d.imageData.create2.type.html
    313 canvas/philip/tests/2d.imageData.get.type.html
    314311canvas/philip/tests/2d.missingargs.html
    315312canvas/philip/tests/2d.pattern.image.broken.html
  • trunk/LayoutTests/platform/gtk/TestExpectations

    r126024 r126027  
    910910BUGWKGTK : canvas/philip/tests/2d.fillStyle.parse.rgb-eof.html = TEXT
    911911BUGWKGTK : canvas/philip/tests/2d.fillStyle.parse.rgba-eof.html = TEXT
    912 BUGWKGTK : canvas/philip/tests/2d.imageData.create1.type.html = TEXT
    913 BUGWKGTK : canvas/philip/tests/2d.imageData.create2.type.html = TEXT
    914 BUGWKGTK : canvas/philip/tests/2d.imageData.get.type.html = TEXT
    915912BUGWKGTK : canvas/philip/tests/2d.missingargs.html = TEXT
    916913BUGWKGTK : canvas/philip/tests/2d.pattern.image.broken.html = TEXT
  • trunk/LayoutTests/platform/qt/Skipped

    r126023 r126027  
    20952095canvas/philip/tests/2d.gradient.radial.touch2.html
    20962096canvas/philip/tests/2d.gradient.radial.touch3.html
    2097 canvas/philip/tests/2d.imageData.create1.type.html
    2098 canvas/philip/tests/2d.imageData.create2.type.html
    2099 canvas/philip/tests/2d.imageData.get.type.html
    21002097canvas/philip/tests/2d.imageData.object.wrap.html
    21012098canvas/philip/tests/2d.imageData.put.unchanged.html
Note: See TracChangeset for help on using the changeset viewer.