Changeset 106991 in webkit
- Timestamp:
- Feb 7, 2012 2:18:29 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106990 r106991 1 2012-02-07 Eugene Girard <girard@chromium.org> 2 3 IndexedDB createIndex should fail if options arg is invalid 4 https://bugs.webkit.org/show_bug.cgi?id=58467 5 6 Reviewed by Tony Chang. 7 8 This ticket was fixed as part of https://bugs.webkit.org/show_bug.cgi?id=58471 9 Adding unit tests to verify correct operation. 10 11 * storage/indexeddb/index-basics-expected.txt: 12 * storage/indexeddb/index-basics-workers-expected.txt: 13 * storage/indexeddb/resources/index-basics.js: 14 (deleteExisting): 15 1 16 2012-02-07 Julien Chaffraix <jchaffraix@webkit.org> 2 17 -
trunk/LayoutTests/storage/indexeddb/index-basics-expected.txt
r106827 r106991 15 15 store.createIndex('indexName2', 'y', {unique: false}) 16 16 store.createIndex('zIndex', 'z', {unique: true}) 17 PASS indexObject2.unique is false 18 PASS indexObject3.unique is true 19 Expecting TypeError exception from store.createIndex('failureIndex', 'zzz', true) 20 PASS Exception was thrown. 21 PASS store.createIndex('failureIndex', 'zzz', true) threw TypeError: Not an object. 22 Expecting TypeError exception from store.createIndex('failureIndex', 'zzz', 'string') 23 PASS Exception was thrown. 24 PASS store.createIndex('failureIndex', 'zzz', 'string') threw TypeError: Not an object. 17 25 PASS 'name' in indexObject is true 18 26 PASS indexObject.name is "indexName" -
trunk/LayoutTests/storage/indexeddb/index-basics-workers-expected.txt
r106886 r106991 16 16 [Worker] store.createIndex('indexName2', 'y', {unique: false}) 17 17 [Worker] store.createIndex('zIndex', 'z', {unique: true}) 18 PASS [Worker] indexObject2.unique is false 19 PASS [Worker] indexObject3.unique is true 20 [Worker] Expecting TypeError exception from store.createIndex('failureIndex', 'zzz', true) 21 PASS [Worker] Exception was thrown. 22 PASS [Worker] store.createIndex('failureIndex', 'zzz', true) threw TypeError: Not an object. 23 [Worker] Expecting TypeError exception from store.createIndex('failureIndex', 'zzz', 'string') 24 PASS [Worker] Exception was thrown. 25 PASS [Worker] store.createIndex('failureIndex', 'zzz', 'string') threw TypeError: Not an object. 18 26 PASS [Worker] 'name' in indexObject is true 19 27 PASS [Worker] indexObject.name is "indexName" -
trunk/LayoutTests/storage/indexeddb/resources/index-basics.js
r106898 r106991 37 37 self.indexObject2 = evalAndLog("store.createIndex('indexName2', 'y', {unique: false})"); 38 38 self.indexObject3 = evalAndLog("store.createIndex('zIndex', 'z', {unique: true})"); 39 shouldBeFalse("indexObject2.unique"); 40 shouldBeTrue("indexObject3.unique"); 41 evalAndExpectExceptionClass("store.createIndex('failureIndex', 'zzz', true)", "TypeError"); 42 evalAndExpectExceptionClass("store.createIndex('failureIndex', 'zzz', 'string')", "TypeError"); 39 43 addData(); 40 44 }
Note: See TracChangeset
for help on using the changeset viewer.