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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
OLDNEW
1 Test IndexedDB adding property with invalid keypath 1 Test IndexedDB adding property with invalid keypath
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; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "bad-keypath.html" 8 dbname = "bad-keypath.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 objectStore = db.createObjectStore('foo', { keyPath: 'keyPath' }); 11 objectStore = db.createObjectStore('foo', { keyPath: 'keyPath' });
12 request = objectStore.add({ keyPath: 'foo' }); 12 request = objectStore.add({ keyPath: 'foo' });
13 Expecting exception from request = objectStore.add({}); 13 Expecting exception from request = objectStore.add({});
14 PASS Exception was thrown. 14 PASS Exception was thrown.
15 PASS code is 0 15 PASS code is 0
16 PASS ename is 'DataError' 16 PASS ename is 'DataError'
17 Exception message: Evaluating the object store's key path did not yield a value. 17 Exception message: Failed to execute 'add' on 'IDBObjectStore': Evaluating the o bject store's key path did not yield a value.
18 PASS successfullyParsed is true 18 PASS successfullyParsed is true
19 19
20 TEST COMPLETE 20 TEST COMPLETE
21 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698