Changeset 139219 in webkit


Ignore:
Timestamp:
Jan 9, 2013 12:12:02 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

IndexedDB: Remove unnecessary tests from storage/indexeddb/key-type-array.html
https://bugs.webkit.org/show_bug.cgi?id=106472

Patch by Michael Pruett <michael@68k.org> on 2013-01-09
Reviewed by Tony Chang.

The tests which verify that JSON.stringify() throws an exception
for cyclic objects produce different error messages on JSC and
V8 and do nothing to test IndexedDB functionality. These tests
should be removed.

  • storage/indexeddb/key-type-array-expected.txt:
  • storage/indexeddb/resources/key-type-array.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139216 r139219  
     12013-01-09  Michael Pruett  <michael@68k.org>
     2
     3        IndexedDB: Remove unnecessary tests from storage/indexeddb/key-type-array.html
     4        https://bugs.webkit.org/show_bug.cgi?id=106472
     5
     6        Reviewed by Tony Chang.
     7
     8        The tests which verify that JSON.stringify() throws an exception
     9        for cyclic objects produce different error messages on JSC and
     10        V8 and do nothing to test IndexedDB functionality. These tests
     11        should be removed.
     12
     13        * storage/indexeddb/key-type-array-expected.txt:
     14        * storage/indexeddb/resources/key-type-array.js:
     15
    1162013-01-08  Ojan Vafai  <ojan@chromium.org>
    217
  • trunk/LayoutTests/storage/indexeddb/key-type-array-expected.txt

    r135424 r139219  
    159159array that contains itself: array = [ array ]
    160160cyclic_array = []; cyclic_array.push(cyclic_array)
    161 PASS JSON.stringify(cyclic_array) threw exception TypeError: Converting circular structure to JSON.
    162161array that contains itself, one level down: array = [ [ array ] ]
    163162cyclic_array2 = []; cyclic_array2.push([cyclic_array2])
    164 PASS JSON.stringify(cyclic_array2) threw exception TypeError: Converting circular structure to JSON.
    165163array that contains itself, not as first element: array = [1, 'b', [], array]
    166164cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3)
    167 PASS JSON.stringify(cyclic_array3) threw exception TypeError: Converting circular structure to JSON.
    168 
    169165array that contains array that contains itself
    170166cyclic_array4 = [cyclic_array];
    171 PASS JSON.stringify(cyclic_array4) threw exception TypeError: Converting circular structure to JSON.
    172167
    173168testing invalid array key: [ void 0 ]
  • trunk/LayoutTests/storage/indexeddb/resources/key-type-array.js

    r135424 r139219  
    106106    debug("array that contains itself: array = [ array ]");
    107107    evalAndLog("cyclic_array = []; cyclic_array.push(cyclic_array)");
    108     shouldThrow("JSON.stringify(cyclic_array)");
    109108
    110109    debug("array that contains itself, one level down: array = [ [ array ] ]");
    111110    evalAndLog("cyclic_array2 = []; cyclic_array2.push([cyclic_array2])");
    112     shouldThrow("JSON.stringify(cyclic_array2)");
    113111
    114112    debug("array that contains itself, not as first element: array = [1, 'b', [], array]");
    115113    evalAndLog("cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3)");
    116     shouldThrow("JSON.stringify(cyclic_array3)");
    117     debug("");
    118114
    119115    debug("array that contains array that contains itself");
    120116    evalAndLog("cyclic_array4 = [cyclic_array];");
    121     shouldThrow("JSON.stringify(cyclic_array4)");
    122117    debug("");
    123118
Note: See TracChangeset for help on using the changeset viewer.