Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Side by Side Diff: LayoutTests/storage/indexeddb/keypath-basics-expected.txt

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test for valid and invalid keypaths 1 Test for valid and invalid keypaths
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7
8 dbname = "keypath-basics.html" 6 dbname = "keypath-basics.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 store = db.createObjectStore('name') 9 store = db.createObjectStore('name')
12 PASS store.keyPath is null 10 PASS store.keyPath is null
13 Deleted all object stores. 11 Deleted all object stores.
14 store = db.createObjectStore('name', {keyPath: null}) 12 store = db.createObjectStore('name', {keyPath: null})
15 PASS store.keyPath is null 13 PASS store.keyPath is null
16 index = store.createIndex('name', null) 14 index = store.createIndex('name', null)
17 PASS index.keyPath is 'null' 15 PASS index.keyPath is 'null'
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The k eyPath option is not a valid key path. 658 Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The k eyPath option is not a valid key path.
661 Expecting exception from db.createObjectStore('name').createIndex('name', '_\uFF FF') 659 Expecting exception from db.createObjectStore('name').createIndex('name', '_\uFF FF')
662 PASS Exception was thrown. 660 PASS Exception was thrown.
663 PASS code is DOMException.SYNTAX_ERR 661 PASS code is DOMException.SYNTAX_ERR
664 Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyP ath argument contains an invalid key path. 662 Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyP ath argument contains an invalid key path.
665 Deleted all object stores. 663 Deleted all object stores.
666 PASS successfullyParsed is true 664 PASS successfullyParsed is true
667 665
668 TEST COMPLETE 666 TEST COMPLETE
669 667
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/keypath-arrays-expected.txt ('k') | LayoutTests/storage/indexeddb/keypath-edges-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698