⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201632 in webkit


Ignore:
Timestamp:
Jun 2, 2016, 7:54:05 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

Fix a typo in the clz32() tests

Patch by Benjamin Poulain <bpoulain@apple.com> on 2016-06-02
Rubber-stamped by Joseph Pecoraro.

Joe found a bug in math-clz32.js: I typed INFINITI instead of INFINITY.
The tests was effectively checking "undefined" instead of infinity.

  • js/math-clz32-expected.txt:
  • js/script-tests/math-clz32.js:

(objectRecordConversionCalls.valueOf):

Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201627 r201632  
     12016-06-02  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Fix a typo in the clz32() tests
     4
     5        Rubber-stamped by Joseph Pecoraro.
     6
     7        Joe found a bug in math-clz32.js: I typed INFINITI instead of INFINITY.
     8        The tests was effectively checking "undefined" instead of infinity.
     9
     10        * js/math-clz32-expected.txt:
     11        * js/script-tests/math-clz32.js:
     12        (objectRecordConversionCalls.valueOf):
     13
    1142016-06-02  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/LayoutTests/js/math-clz32-expected.txt

    r200402 r201632  
    2626PASS Math.clz32(Math.E) is 30
    2727PASS Math.clz32(NaN) is 32
    28 PASS Math.clz32(Number.POSITIVE_INFINITI) is 32
    29 PASS Math.clz32(Number.NEGATIVE_INFINITI) is 32
     28PASS Math.clz32(Number.POSITIVE_INFINITY) is 32
     29PASS Math.clz32(Number.NEGATIVE_INFINITY) is 32
    3030PASS Math.clz32() is 32
    3131PASS Math.clz32(undefined) is 32
  • trunk/LayoutTests/js/script-tests/math-clz32.js

    r183358 r201632  
    2929shouldBe('Math.clz32(Math.E)', '30');
    3030shouldBe('Math.clz32(NaN)', '32');
    31 shouldBe('Math.clz32(Number.POSITIVE_INFINITI)', '32');
    32 shouldBe('Math.clz32(Number.NEGATIVE_INFINITI)', '32');
     31shouldBe('Math.clz32(Number.POSITIVE_INFINITY)', '32');
     32shouldBe('Math.clz32(Number.NEGATIVE_INFINITY)', '32');
    3333
    3434shouldBe('Math.clz32()', '32');
Note: See TracChangeset for help on using the changeset viewer.