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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/key-requirements-put-null-key-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's behavior put()ing with null key 1 Test IndexedDB's behavior put()ing with null key
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 = "key-requirements-put-null-key.html" 8 dbname = "key-requirements-put-null-key.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 objectStore = db.createObjectStore('bar'); 11 objectStore = db.createObjectStore('bar');
12 Expecting exception from objectStore.put({}, null); 12 Expecting exception from objectStore.put({}, null);
13 PASS Exception was thrown. 13 PASS Exception was thrown.
14 PASS code is 0 14 PASS code is 0
15 PASS ename is 'DataError' 15 PASS ename is 'DataError'
16 Exception message: The parameter is not a valid key. 16 Exception message: Failed to execute 'put' on 'IDBObjectStore': The parameter is not a valid key.
17 PASS successfullyParsed is true 17 PASS successfullyParsed is true
18 18
19 TEST COMPLETE 19 TEST COMPLETE
20 20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698