Ignore:
Timestamp:
Sep 6, 2012, 4:23:50 PM (13 years ago)
Author:
[email protected]
Message:

JS test suite puts incorrect limitations on Function.toString()
https://bugs.webkit.org/show_bug.cgi?id=3975

Reviewed by Geoff Garen.

The result of function toString is implementation defined;
these test cases were looking for specific whitespace formatting
that matches mozilla's, and for redundant braces to be inserted
around if/else blocks. Stop that.

  • tests/mozilla/expected.html:
  • tests/mozilla/js1_2/function/tostring-1.js:

(simplify):

  • reduce whitespace differences
  • tests/mozilla/js1_2/function/tostring-2.js:

(simplify):

  • reduce whitespace differences

(TestOr):
(TestAnd):

  • added braces to match expected output
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r127778 r127797  
     12012-09-06  Gavin Barraclough  <[email protected]>
     2
     3        JS test suite puts incorrect limitations on Function.toString()
     4        https://bugs.webkit.org/show_bug.cgi?id=3975
     5
     6        Reviewed by Geoff Garen.
     7
     8        The result of function toString is implementation defined;
     9        these test cases were looking for specific whitespace formatting
     10        that matches mozilla's, and for redundant braces to be inserted
     11        around if/else blocks. Stop that.
     12
     13        * tests/mozilla/expected.html:
     14        * tests/mozilla/js1_2/function/tostring-1.js:
     15        (simplify):
     16            - reduce whitespace differences
     17        * tests/mozilla/js1_2/function/tostring-2.js:
     18        (simplify):
     19            - reduce whitespace differences
     20        (TestOr):
     21        (TestAnd):
     22            - added braces to match expected output
     23
    1242012-09-06  Yuqiang Xian  <[email protected]>
    225
Note: See TracChangeset for help on using the changeset viewer.