Changeset 203820 in webkit


Ignore:
Timestamp:
Jul 28, 2016 11:04:22 AM (8 years ago)
Author:
Chris Dumez
Message:

Parameters to CanvasGradient.addColorStop() should be mandatory
https://bugs.webkit.org/show_bug.cgi?id=160297

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

Rebaseline W3C test now that one more check is passing.

  • web-platform-tests/html/dom/interfaces-expected.txt:

Source/WebCore:

Parameters to CanvasGradient.addColorStop() should be mandatory:

Firefox and Chrome agree with the specification.

No new tests, rebaselined existing test.

  • html/canvas/CanvasGradient.idl:

LayoutTests:

Rebaseline existing test due to behavior change.

  • platform/mac/canvas/philip/tests/2d.missingargs-expected.txt:
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203819 r203820  
     12016-07-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Parameters to CanvasGradient.addColorStop() should be mandatory
     4        https://bugs.webkit.org/show_bug.cgi?id=160297
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rebaseline existing test due to behavior change.
     9
     10        * platform/mac/canvas/philip/tests/2d.missingargs-expected.txt:
     11
    1122016-07-27  Ryan Haddad  <ryanhaddad@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r203815 r203820  
     12016-07-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Parameters to CanvasGradient.addColorStop() should be mandatory
     4        https://bugs.webkit.org/show_bug.cgi?id=160297
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rebaseline W3C test now that one more check is passing.
     9
     10        * web-platform-tests/html/dom/interfaces-expected.txt:
     11
    1122016-07-28  Youenn Fablet  <youenn@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt

    r203806 r203820  
    50915091PASS CanvasGradient interface: existence and properties of interface prototype object
    50925092PASS CanvasGradient interface: existence and properties of interface prototype object's "constructor" property
    5093 FAIL CanvasGradient interface: operation addColorStop(double,DOMString) assert_equals: property has wrong .length expected 2 but got 0
     5093PASS CanvasGradient interface: operation addColorStop(double,DOMString)
    50945094PASS CanvasPattern interface: existence and properties of interface object
    50955095PASS CanvasPattern interface object length
  • trunk/LayoutTests/platform/mac/canvas/philip/tests/2d.missingargs-expected.txt

    r203333 r203820  
    1 Failed assertion: expected exception of type SyntaxError, got: SyntaxError (DOM Exception 12): The string did not match the expected pattern.
     1Failed assertion: expected exception of type SyntaxError, got: TypeError: Not enough arguments
  • trunk/Source/WebCore/ChangeLog

    r203818 r203820  
     12016-07-28  Chris Dumez  <cdumez@apple.com>
     2
     3        Parameters to CanvasGradient.addColorStop() should be mandatory
     4        https://bugs.webkit.org/show_bug.cgi?id=160297
     5
     6        Reviewed by Alex Christensen.
     7
     8        Parameters to CanvasGradient.addColorStop() should be mandatory:
     9        - https://html.spec.whatwg.org/multipage/scripting.html#canvasgradient
     10
     11        Firefox and Chrome agree with the specification.
     12
     13        No new tests, rebaselined existing test.
     14
     15        * html/canvas/CanvasGradient.idl:
     16
    1172016-07-28  Romain Bellessort  <romain.bellessort@crf.canon.fr>
    218
  • trunk/Source/WebCore/html/canvas/CanvasGradient.idl

    r199969 r203820  
    2626    ImplementationLacksVTable,
    2727] interface CanvasGradient {
    28     // FIXME: Using "undefined" as default parameter value is wrong.
    29     [RaisesException] void addColorStop(optional float offset = NaN, optional DOMString color = "undefined");
     28    [RaisesException] void addColorStop(float offset, DOMString color);
    3029};
    3130
Note: See TracChangeset for help on using the changeset viewer.