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

Side by Side Diff: LayoutTests/storage/indexeddb/get-keyrange-expected.txt

Issue 19107003: IndexedDB: Log exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 IndexedDB's IDBObjectStore.get(IDBKeyRange) method. 1 Test IndexedDB's IDBObjectStore.get(IDBKeyRange) method.
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 = "get-keyrange.html" 8 dbname = "get-keyrange.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 23 matching lines...) Expand all
34 objectStore.get(IDBKeyRange.lowerBound(2.5)) 34 objectStore.get(IDBKeyRange.lowerBound(2.5))
35 PASS result.x is 3 35 PASS result.x is 3
36 objectStore.get(IDBKeyRange.lowerBound(100)) 36 objectStore.get(IDBKeyRange.lowerBound(100))
37 PASS result is undefined 37 PASS result is undefined
38 objectStore.get(IDBKeyRange.only(3.3)) 38 objectStore.get(IDBKeyRange.only(3.3))
39 PASS result is undefined 39 PASS result is undefined
40 Expecting exception from objectStore.get(null) 40 Expecting exception from objectStore.get(null)
41 PASS Exception was thrown. 41 PASS Exception was thrown.
42 PASS code is 0 42 PASS code is 0
43 PASS ename is 'DataError' 43 PASS ename is 'DataError'
44 Exception message: No key or key range specified.
44 runIndexStoreTests() 45 runIndexStoreTests()
45 index.get(IDBKeyRange.only(3)) 46 index.get(IDBKeyRange.only(3))
46 PASS result.x is 3 47 PASS result.x is 3
47 index.get(IDBKeyRange.lowerBound(5)) 48 index.get(IDBKeyRange.lowerBound(5))
48 PASS result.x is 5 49 PASS result.x is 5
49 index.get(IDBKeyRange.lowerBound(5, true)) 50 index.get(IDBKeyRange.lowerBound(5, true))
50 PASS result.x is 6 51 PASS result.x is 6
51 index.get(IDBKeyRange.upperBound(7)) 52 index.get(IDBKeyRange.upperBound(7))
52 PASS result.x is 0 53 PASS result.x is 0
53 index.get(IDBKeyRange.upperBound(7, true)) 54 index.get(IDBKeyRange.upperBound(7, true))
54 PASS result.x is 0 55 PASS result.x is 0
55 index.get(IDBKeyRange.lowerBound(2.5)) 56 index.get(IDBKeyRange.lowerBound(2.5))
56 PASS result.x is 3 57 PASS result.x is 3
57 index.get(IDBKeyRange.lowerBound(100)) 58 index.get(IDBKeyRange.lowerBound(100))
58 PASS result is undefined 59 PASS result is undefined
59 index.get(IDBKeyRange.only(3.3)) 60 index.get(IDBKeyRange.only(3.3))
60 PASS result is undefined 61 PASS result is undefined
61 Expecting exception from index.get(null) 62 Expecting exception from index.get(null)
62 PASS Exception was thrown. 63 PASS Exception was thrown.
63 PASS code is 0 64 PASS code is 0
64 PASS ename is 'DataError' 65 PASS ename is 'DataError'
66 Exception message: No key or key range specified.
65 runIndexKeyTests() 67 runIndexKeyTests()
66 index.getKey(IDBKeyRange.only(3)) 68 index.getKey(IDBKeyRange.only(3))
67 PASS result is 3 69 PASS result is 3
68 index.getKey(IDBKeyRange.lowerBound(5)) 70 index.getKey(IDBKeyRange.lowerBound(5))
69 PASS result is 5 71 PASS result is 5
70 index.getKey(IDBKeyRange.lowerBound(5, true)) 72 index.getKey(IDBKeyRange.lowerBound(5, true))
71 PASS result is 6 73 PASS result is 6
72 index.getKey(IDBKeyRange.upperBound(7)) 74 index.getKey(IDBKeyRange.upperBound(7))
73 PASS result is 0 75 PASS result is 0
74 index.getKey(IDBKeyRange.upperBound(7, true)) 76 index.getKey(IDBKeyRange.upperBound(7, true))
75 PASS result is 0 77 PASS result is 0
76 index.getKey(IDBKeyRange.lowerBound(2.5)) 78 index.getKey(IDBKeyRange.lowerBound(2.5))
77 PASS result is 3 79 PASS result is 3
78 index.getKey(IDBKeyRange.lowerBound(100)) 80 index.getKey(IDBKeyRange.lowerBound(100))
79 PASS result is undefined 81 PASS result is undefined
80 index.getKey(IDBKeyRange.only(3.3)) 82 index.getKey(IDBKeyRange.only(3.3))
81 PASS result is undefined 83 PASS result is undefined
82 Expecting exception from index.getKey(null) 84 Expecting exception from index.getKey(null)
83 PASS Exception was thrown. 85 PASS Exception was thrown.
84 PASS code is 0 86 PASS code is 0
85 PASS ename is 'DataError' 87 PASS ename is 'DataError'
88 Exception message: No key or key range specified.
86 finishJSTest() 89 finishJSTest()
87 PASS successfullyParsed is true 90 PASS successfullyParsed is true
88 91
89 TEST COMPLETE 92 TEST COMPLETE
90 93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698