Changeset 106405 in webkit


Ignore:
Timestamp:
Jan 31, 2012 3:17:25 PM (12 years ago)
Author:
jsbell@chromium.org
Message:

IndexedDB: Re-enable structured-clone test
https://bugs.webkit.org/show_bug.cgi?id=77239

This test was landed disabled, since it was failing. Turns out Date serialization
differs ("PST" vs. "Pacific Standard Time") across machines, so debug statements
in the test were removed.

Reviewed by Tony Chang.

  • platform/chromium/test_expectations.txt:
  • storage/indexeddb/structured-clone-expected.txt:
  • storage/indexeddb/structured-clone.html:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r106403 r106405  
     12012-01-31  Joshua Bell  <jsbell@chromium.org>
     2
     3        IndexedDB: Re-enable structured-clone test
     4        https://bugs.webkit.org/show_bug.cgi?id=77239
     5
     6        This test was landed disabled, since it was failing. Turns out Date serialization
     7        differs ("PST" vs. "Pacific Standard Time") across machines, so debug statements
     8        in the test were removed.
     9
     10        Reviewed by Tony Chang.
     11
     12        * platform/chromium/test_expectations.txt:
     13        * storage/indexeddb/structured-clone-expected.txt:
     14        * storage/indexeddb/structured-clone.html:
     15
    1162012-01-31  Balazs Kelemen  <kbalazs@webkit.org>
    217
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r106400 r106405  
    40384038BUGWK77324 WIN MAC DEBUG SLOW : fast/js/dfg-int32array.html = PASS
    40394039
    4040 BUGWK77239 : storage/indexeddb/structured-clone.html = PASS TEXT
    4041 
    40424040BUGWK77397 : plugins/crash-restoring-plugin-page-from-page-cache.html = TIMEOUT TEXT
    40434041BUGWK77412 LEOPARD : media/media-blocked-by-beforeload.html = TEXT
  • trunk/LayoutTests/storage/indexeddb/structured-clone-expected.txt

    r106279 r106405  
    2323transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    2424store = transaction.objectStore('storeName')
    25 value is: undefined (type: undefined)
    2625store.put(value, 'key')
    2726store.get('key')
     
    3231transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    3332store = transaction.objectStore('storeName')
    34 value is: null (type: object)
    3533store.put(value, 'key')
    3634store.get('key')
     
    4341transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    4442store = transaction.objectStore('storeName')
    45 value is: true (type: boolean)
    4643store.put(value, 'key')
    4744store.get('key')
     
    5148transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    5249store = transaction.objectStore('storeName')
    53 value is: false (type: boolean)
    5450store.put(value, 'key')
    5551store.get('key')
     
    6258transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    6359store = transaction.objectStore('storeName')
    64 value is: NaN (type: number)
    6560store.put(value, 'key')
    6661store.get('key')
     
    7065transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    7166store = transaction.objectStore('storeName')
    72 value is: -Infinity (type: number)
    7367store.put(value, 'key')
    7468store.get('key')
     
    7872transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    7973store = transaction.objectStore('storeName')
    80 value is: -1.7976931348623157e+308 (type: number)
    8174store.put(value, 'key')
    8275store.get('key')
     
    8679transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    8780store = transaction.objectStore('storeName')
    88 value is: -5e-324 (type: number)
    8981store.put(value, 'key')
    9082store.get('key')
     
    9486transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    9587store = transaction.objectStore('storeName')
    96 value is: 0 (type: number)
    9788store.put(value, 'key')
    9889store.get('key')
     
    10293transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    10394store = transaction.objectStore('storeName')
    104 value is: 0 (type: number)
    10595store.put(value, 'key')
    10696store.get('key')
     
    110100transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    111101store = transaction.objectStore('storeName')
    112 value is: 5e-324 (type: number)
    113102store.put(value, 'key')
    114103store.get('key')
     
    118107transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    119108store = transaction.objectStore('storeName')
    120 value is: 1.7976931348623157e+308 (type: number)
    121109store.put(value, 'key')
    122110store.get('key')
     
    126114transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    127115store = transaction.objectStore('storeName')
    128 value is: Infinity (type: number)
    129116store.put(value, 'key')
    130117store.get('key')
     
    137124transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    138125store = transaction.objectStore('storeName')
    139 value is:  (type: string)
    140126store.put(value, 'key')
    141127store.get('key')
     
    145131transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    146132store = transaction.objectStore('storeName')
    147 value is: this is a sample string (type: string)
    148133store.put(value, 'key')
    149134store.get('key')
     
    153138transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    154139store = transaction.objectStore('storeName')
    155 value is: null() (type: string)
    156140store.put(value, 'key')
    157141store.get('key')
     
    164148transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    165149store = transaction.objectStore('storeName')
    166 value is: true (type: object)
    167 store.put(value, 'key')
    168 store.get('key')
    169 String(result): true
     150store.put(value, 'key')
     151store.get('key')
    170152PASS typeof result is "object"
    171153PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    177159transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    178160store = transaction.objectStore('storeName')
    179 value is: false (type: object)
    180 store.put(value, 'key')
    181 store.get('key')
    182 String(result): false
     161store.put(value, 'key')
     162store.get('key')
    183163PASS typeof result is "object"
    184164PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    193173transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    194174store = transaction.objectStore('storeName')
    195 value is: NaN (type: object)
    196 store.put(value, 'key')
    197 store.get('key')
    198 String(result): NaN
     175store.put(value, 'key')
     176store.get('key')
    199177PASS typeof result is "object"
    200178PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    206184transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    207185store = transaction.objectStore('storeName')
    208 value is: -Infinity (type: object)
    209 store.put(value, 'key')
    210 store.get('key')
    211 String(result): -Infinity
     186store.put(value, 'key')
     187store.get('key')
    212188PASS typeof result is "object"
    213189PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    219195transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    220196store = transaction.objectStore('storeName')
    221 value is: -1.7976931348623157e+308 (type: object)
    222 store.put(value, 'key')
    223 store.get('key')
    224 String(result): -1.7976931348623157e+308
     197store.put(value, 'key')
     198store.get('key')
    225199PASS typeof result is "object"
    226200PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    232206transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    233207store = transaction.objectStore('storeName')
    234 value is: -5e-324 (type: object)
    235 store.put(value, 'key')
    236 store.get('key')
    237 String(result): -5e-324
     208store.put(value, 'key')
     209store.get('key')
    238210PASS typeof result is "object"
    239211PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    245217transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    246218store = transaction.objectStore('storeName')
    247 value is: 0 (type: object)
    248 store.put(value, 'key')
    249 store.get('key')
    250 String(result): 0
     219store.put(value, 'key')
     220store.get('key')
    251221PASS typeof result is "object"
    252222PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    258228transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    259229store = transaction.objectStore('storeName')
    260 value is: 0 (type: object)
    261 store.put(value, 'key')
    262 store.get('key')
    263 String(result): 0
     230store.put(value, 'key')
     231store.get('key')
    264232PASS typeof result is "object"
    265233PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    271239transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    272240store = transaction.objectStore('storeName')
    273 value is: 5e-324 (type: object)
    274 store.put(value, 'key')
    275 store.get('key')
    276 String(result): 5e-324
     241store.put(value, 'key')
     242store.get('key')
    277243PASS typeof result is "object"
    278244PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    284250transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    285251store = transaction.objectStore('storeName')
    286 value is: 1.7976931348623157e+308 (type: object)
    287 store.put(value, 'key')
    288 store.get('key')
    289 String(result): 1.7976931348623157e+308
     252store.put(value, 'key')
     253store.get('key')
    290254PASS typeof result is "object"
    291255PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    297261transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    298262store = transaction.objectStore('storeName')
    299 value is: Infinity (type: object)
    300 store.put(value, 'key')
    301 store.get('key')
    302 String(result): Infinity
     263store.put(value, 'key')
     264store.get('key')
    303265PASS typeof result is "object"
    304266PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    313275transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    314276store = transaction.objectStore('storeName')
    315 value is:  (type: object)
    316 store.put(value, 'key')
    317 store.get('key')
    318 String(result):
     277store.put(value, 'key')
     278store.get('key')
    319279PASS typeof result is "object"
    320280PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    326286transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    327287store = transaction.objectStore('storeName')
    328 value is: this is a sample string (type: object)
    329 store.put(value, 'key')
    330 store.get('key')
    331 String(result): this is a sample string
     288store.put(value, 'key')
     289store.get('key')
    332290PASS typeof result is "object"
    333291PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    339297transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    340298store = transaction.objectStore('storeName')
    341 value is: null() (type: object)
    342 store.put(value, 'key')
    343 store.get('key')
    344 String(result): null()
     299store.put(value, 'key')
     300store.get('key')
    345301PASS typeof result is "object"
    346302PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    355311transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    356312store = transaction.objectStore('storeName')
    357 value is: Sun Feb 09 1653 22:13:20 GMT-0800 (PST) (type: object)
    358 store.put(value, 'key')
    359 store.get('key')
    360 String(result): Sun Feb 09 1653 22:13:20 GMT-0800 (PST)
     313store.put(value, 'key')
     314store.get('key')
    361315PASS typeof result is "object"
    362316PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    368322transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    369323store = transaction.objectStore('storeName')
    370 value is: Sun Apr 24 1938 15:13:20 GMT-0700 (PDT) (type: object)
    371 store.put(value, 'key')
    372 store.get('key')
    373 String(result): Sun Apr 24 1938 15:13:20 GMT-0700 (PDT)
     324store.put(value, 'key')
     325store.get('key')
    374326PASS typeof result is "object"
    375327PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    381333transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    382334store = transaction.objectStore('storeName')
    383 value is: Sat Dec 20 1969 02:13:20 GMT-0800 (PST) (type: object)
    384 store.put(value, 'key')
    385 store.get('key')
    386 String(result): Sat Dec 20 1969 02:13:20 GMT-0800 (PST)
     335store.put(value, 'key')
     336store.get('key')
    387337PASS typeof result is "object"
    388338PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    394344transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    395345store = transaction.objectStore('storeName')
    396 value is: Wed Dec 31 1969 15:43:20 GMT-0800 (PST) (type: object)
    397 store.put(value, 'key')
    398 store.get('key')
    399 String(result): Wed Dec 31 1969 15:43:20 GMT-0800 (PST)
     346store.put(value, 'key')
     347store.get('key')
    400348PASS typeof result is "object"
    401349PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    407355transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    408356store = transaction.objectStore('storeName')
    409 value is: Wed Dec 31 1969 15:59:59 GMT-0800 (PST) (type: object)
    410 store.put(value, 'key')
    411 store.get('key')
    412 String(result): Wed Dec 31 1969 15:59:59 GMT-0800 (PST)
     357store.put(value, 'key')
     358store.get('key')
    413359PASS typeof result is "object"
    414360PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    420366transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    421367store = transaction.objectStore('storeName')
    422 value is: Wed Dec 31 1969 16:00:00 GMT-0800 (PST) (type: object)
    423 store.put(value, 'key')
    424 store.get('key')
    425 String(result): Wed Dec 31 1969 16:00:00 GMT-0800 (PST)
     368store.put(value, 'key')
     369store.get('key')
    426370PASS typeof result is "object"
    427371PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    433377transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    434378store = transaction.objectStore('storeName')
    435 value is: Wed Dec 31 1969 16:00:01 GMT-0800 (PST) (type: object)
    436 store.put(value, 'key')
    437 store.get('key')
    438 String(result): Wed Dec 31 1969 16:00:01 GMT-0800 (PST)
     379store.put(value, 'key')
     380store.get('key')
    439381PASS typeof result is "object"
    440382PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    446388transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    447389store = transaction.objectStore('storeName')
    448 value is: Wed Dec 31 1969 16:16:40 GMT-0800 (PST) (type: object)
    449 store.put(value, 'key')
    450 store.get('key')
    451 String(result): Wed Dec 31 1969 16:16:40 GMT-0800 (PST)
     390store.put(value, 'key')
     391store.get('key')
    452392PASS typeof result is "object"
    453393PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    459399transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    460400store = transaction.objectStore('storeName')
    461 value is: Mon Jan 12 1970 05:46:40 GMT-0800 (PST) (type: object)
    462 store.put(value, 'key')
    463 store.get('key')
    464 String(result): Mon Jan 12 1970 05:46:40 GMT-0800 (PST)
     401store.put(value, 'key')
     402store.get('key')
    465403PASS typeof result is "object"
    466404PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    472410transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    473411store = transaction.objectStore('storeName')
    474 value is: Sat Sep 08 2001 18:46:40 GMT-0700 (PDT) (type: object)
    475 store.put(value, 'key')
    476 store.get('key')
    477 String(result): Sat Sep 08 2001 18:46:40 GMT-0700 (PDT)
     412store.put(value, 'key')
     413store.get('key')
    478414PASS typeof result is "object"
    479415PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    485421transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    486422store = transaction.objectStore('storeName')
    487 value is: Sat Nov 20 2286 09:46:40 GMT-0800 (PST) (type: object)
    488 store.put(value, 'key')
    489 store.get('key')
    490 String(result): Sat Nov 20 2286 09:46:40 GMT-0800 (PST)
     423store.put(value, 'key')
     424store.get('key')
    491425PASS typeof result is "object"
    492426PASS Object.prototype.toString.call(result) is Object.prototype.toString.call(test_data)
     
    501435transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    502436store = transaction.objectStore('storeName')
    503 value is: /(?:)/ (type: object)
    504437store.put(value, 'key')
    505438store.get('key')
     
    511444transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    512445store = transaction.objectStore('storeName')
    513 value is: /abc/ (type: object)
    514446store.put(value, 'key')
    515447store.get('key')
     
    521453transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    522454store = transaction.objectStore('storeName')
    523 value is: /abc/g (type: object)
    524455store.put(value, 'key')
    525456store.get('key')
     
    531462transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    532463store = transaction.objectStore('storeName')
    533 value is: /abc/i (type: object)
    534464store.put(value, 'key')
    535465store.get('key')
     
    541471transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    542472store = transaction.objectStore('storeName')
    543 value is: /abc/gi (type: object)
    544473store.put(value, 'key')
    545474store.get('key')
     
    551480transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    552481store = transaction.objectStore('storeName')
    553 value is: /abc/m (type: object)
    554482store.put(value, 'key')
    555483store.get('key')
     
    561489transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    562490store = transaction.objectStore('storeName')
    563 value is: /abc/gm (type: object)
    564491store.put(value, 'key')
    565492store.get('key')
     
    571498transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    572499store = transaction.objectStore('storeName')
    573 value is: /abc/im (type: object)
    574500store.put(value, 'key')
    575501store.get('key')
     
    581507transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    582508store = transaction.objectStore('storeName')
    583 value is: /abc/gim (type: object)
    584509store.put(value, 'key')
    585510store.get('key')
     
    596521transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    597522store = transaction.objectStore('storeName')
    598 value is: [object ImageData] (type: object)
    599523store.put(value, 'key')
    600524store.get('key')
     
    626550transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    627551store = transaction.objectStore('storeName')
    628 value is: foo,bar,,,,,,,,,true,false,,,,,,,,,123,456,,,,,,,,, (type: object)
    629552store.put(value, 'key')
    630553store.get('key')
     
    650573transaction = db.transaction('storeName', IDBTransaction.READ_WRITE)
    651574store = transaction.objectStore('storeName')
    652 value is: foo,bar (type: object)
    653575store.put(value, 'key')
    654576store.get('key')
  • trunk/LayoutTests/storage/indexeddb/structured-clone.html

    r106279 r106405  
    115115    evalAndLog("store = transaction.objectStore('storeName')");
    116116
    117     debug("value is: " + String(value) + " (type: " + typeof value + ")");
    118117    window.value = value;
    119118    request = evalAndLog("store.put(value, 'key')");
     
    123122        request.onerror = unexpectedErrorCallback;
    124123        request.onsuccess = function(e) {
    125             //debug("got back: " + String(request.result) + " (type: " + typeof request.result + ")");
    126124            callback(request.result);
    127125        };
     
    169167    testValue(test_data, function(result) {
    170168        window.result = result;
    171         debug("String(result): " + String(result));
    172169        shouldBeEqualToString("typeof result", "object");
    173170        shouldBe("Object.prototype.toString.call(result)", "Object.prototype.toString.call(test_data)");
Note: See TracChangeset for help on using the changeset viewer.