Changeset 201680 in webkit


Ignore:
Timestamp:
Jun 4, 2016 11:58:08 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Add better basic isNaN test coverage
https://bugs.webkit.org/show_bug.cgi?id=158379

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-06-04
Reviewed by Benjamin Poulain.

  • js/Number-isNaN-expected.txt: Added.
  • js/Number-isNaN.html: Added.
  • js/global-isNaN-expected.txt: Added.
  • js/global-isNaN.html: Added.
  • js/script-tests/Number-isNaN.js: Added.

(objectWithNumberValueOf.valueOf):
(objectWithNaNValueOf.valueOf):
(objectRecordConversionCalls.toString):
(objectRecordConversionCalls.valueOf):

  • js/script-tests/global-isNaN.js: Added.

(objectConvertToString.toString):
(objectRecordToStringCall.toString):
(objectThrowOnToString.toString):
(objectWithValueOf.valueOf):
(objectThrowOnValueOf.valueOf):
(objectThrowOnValueOf.toString):
(objectRecordValueOfCall.valueOf):
(objectRecordConversionCalls.toString):
(objectRecordConversionCalls.valueOf):

  • js/script-tests/math-clz32.js:
Location:
trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201679 r201680  
     12016-06-04  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Add better basic isNaN test coverage
     4        https://bugs.webkit.org/show_bug.cgi?id=158379
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        * js/Number-isNaN-expected.txt: Added.
     9        * js/Number-isNaN.html: Added.
     10        * js/global-isNaN-expected.txt: Added.
     11        * js/global-isNaN.html: Added.
     12        * js/script-tests/Number-isNaN.js: Added.
     13        (objectWithNumberValueOf.valueOf):
     14        (objectWithNaNValueOf.valueOf):
     15        (objectRecordConversionCalls.toString):
     16        (objectRecordConversionCalls.valueOf):
     17        * js/script-tests/global-isNaN.js: Added.
     18        (objectConvertToString.toString):
     19        (objectRecordToStringCall.toString):
     20        (objectThrowOnToString.toString):
     21        (objectWithValueOf.valueOf):
     22        (objectThrowOnValueOf.valueOf):
     23        (objectThrowOnValueOf.toString):
     24        (objectRecordValueOfCall.valueOf):
     25        (objectRecordConversionCalls.toString):
     26        (objectRecordConversionCalls.valueOf):
     27        * js/script-tests/math-clz32.js:
     28
    1292016-06-04  Brent Fulgham  <bfulgham@apple.com>
    230
  • trunk/LayoutTests/js/script-tests/math-clz32.js

    r201632 r201680  
    77// Function properties.
    88shouldBe('Math.clz32.length', '1');
    9 shouldBeEqualToString('Math.clz32.name', 'clz32')
     9shouldBeEqualToString('Math.clz32.name', 'clz32');
    1010shouldBe('Object.getOwnPropertyDescriptor(Math, "clz32").configurable', 'true');
    1111shouldBe('Object.getOwnPropertyDescriptor(Math, "clz32").enumerable', 'false');
  • trunk/Source/JavaScriptCore/tests/stress/math-clz32-basics.js

    r201656 r201680  
    5757    var clzMinusZero = mathClz32OnInteger(-0);
    5858    if (clzMinusZero != 32)
    59         throw "mathClz32OnInteger(\"-0\") = " + clzMinusZero;
     59        throw "mathClz32OnInteger(-0) = " + clzMinusZero;
    6060}
    6161noInline(verifyMathClz32OnIntegerWithOtherTypes);
     
    7171    return Math.clz32(value);
    7272}
    73 noInline(mathClz32OnInteger);
    74 
    75 // Test simple cases on integers.
     73noInline(mathClz32OnDouble);
     74
     75// Test simple cases on doubles.
    7676function testMathClz32OnDoubles()
    7777{
     
    9090    var value = mathClz32OnDouble(-0);
    9191    if (value != 32)
    92         throw "mathClz32OnDouble(0) = " + value;
     92        throw "mathClz32OnDouble(-0) = " + value;
    9393
    9494    var value = mathClz32OnDouble(NaN);
Note: See TracChangeset for help on using the changeset viewer.