Changeset 139219 in webkit
- Timestamp:
- Jan 9, 2013, 12:12:02 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139216 r139219 1 2013-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 1 16 2013-01-08 Ojan Vafai <ojan@chromium.org> 2 17 -
trunk/LayoutTests/storage/indexeddb/key-type-array-expected.txt
r135424 r139219 159 159 array that contains itself: array = [ array ] 160 160 cyclic_array = []; cyclic_array.push(cyclic_array) 161 PASS JSON.stringify(cyclic_array) threw exception TypeError: Converting circular structure to JSON.162 161 array that contains itself, one level down: array = [ [ array ] ] 163 162 cyclic_array2 = []; cyclic_array2.push([cyclic_array2]) 164 PASS JSON.stringify(cyclic_array2) threw exception TypeError: Converting circular structure to JSON.165 163 array that contains itself, not as first element: array = [1, 'b', [], array] 166 164 cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3) 167 PASS JSON.stringify(cyclic_array3) threw exception TypeError: Converting circular structure to JSON.168 169 165 array that contains array that contains itself 170 166 cyclic_array4 = [cyclic_array]; 171 PASS JSON.stringify(cyclic_array4) threw exception TypeError: Converting circular structure to JSON.172 167 173 168 testing invalid array key: [ void 0 ] -
trunk/LayoutTests/storage/indexeddb/resources/key-type-array.js
r135424 r139219 106 106 debug("array that contains itself: array = [ array ]"); 107 107 evalAndLog("cyclic_array = []; cyclic_array.push(cyclic_array)"); 108 shouldThrow("JSON.stringify(cyclic_array)");109 108 110 109 debug("array that contains itself, one level down: array = [ [ array ] ]"); 111 110 evalAndLog("cyclic_array2 = []; cyclic_array2.push([cyclic_array2])"); 112 shouldThrow("JSON.stringify(cyclic_array2)");113 111 114 112 debug("array that contains itself, not as first element: array = [1, 'b', [], array]"); 115 113 evalAndLog("cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3)"); 116 shouldThrow("JSON.stringify(cyclic_array3)");117 debug("");118 114 119 115 debug("array that contains array that contains itself"); 120 116 evalAndLog("cyclic_array4 = [cyclic_array];"); 121 shouldThrow("JSON.stringify(cyclic_array4)");122 117 debug(""); 123 118
Note:
See TracChangeset
for help on using the changeset viewer.