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

Side by Side Diff: LayoutTests/storage/indexeddb/get-keyrange-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 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 Exception message: Failed to execute 'get' on 'IDBObjectStore': No key or key ra nge specified.
45 runIndexStoreTests() 45 runIndexStoreTests()
46 index.get(IDBKeyRange.only(3)) 46 index.get(IDBKeyRange.only(3))
47 PASS result.x is 3 47 PASS result.x is 3
48 index.get(IDBKeyRange.lowerBound(5)) 48 index.get(IDBKeyRange.lowerBound(5))
49 PASS result.x is 5 49 PASS result.x is 5
50 index.get(IDBKeyRange.lowerBound(5, true)) 50 index.get(IDBKeyRange.lowerBound(5, true))
51 PASS result.x is 6 51 PASS result.x is 6
52 index.get(IDBKeyRange.upperBound(7)) 52 index.get(IDBKeyRange.upperBound(7))
53 PASS result.x is 0 53 PASS result.x is 0
54 index.get(IDBKeyRange.upperBound(7, true)) 54 index.get(IDBKeyRange.upperBound(7, true))
55 PASS result.x is 0 55 PASS result.x is 0
56 index.get(IDBKeyRange.lowerBound(2.5)) 56 index.get(IDBKeyRange.lowerBound(2.5))
57 PASS result.x is 3 57 PASS result.x is 3
58 index.get(IDBKeyRange.lowerBound(100)) 58 index.get(IDBKeyRange.lowerBound(100))
59 PASS result is undefined 59 PASS result is undefined
60 index.get(IDBKeyRange.only(3.3)) 60 index.get(IDBKeyRange.only(3.3))
61 PASS result is undefined 61 PASS result is undefined
62 Expecting exception from index.get(null) 62 Expecting exception from index.get(null)
63 PASS Exception was thrown. 63 PASS Exception was thrown.
64 PASS code is 0 64 PASS code is 0
65 PASS ename is 'DataError' 65 PASS ename is 'DataError'
66 Exception message: No key or key range specified. 66 Exception message: Failed to execute 'get' on 'IDBIndex': No key or key range sp ecified.
67 runIndexKeyTests() 67 runIndexKeyTests()
68 index.getKey(IDBKeyRange.only(3)) 68 index.getKey(IDBKeyRange.only(3))
69 PASS result is 3 69 PASS result is 3
70 index.getKey(IDBKeyRange.lowerBound(5)) 70 index.getKey(IDBKeyRange.lowerBound(5))
71 PASS result is 5 71 PASS result is 5
72 index.getKey(IDBKeyRange.lowerBound(5, true)) 72 index.getKey(IDBKeyRange.lowerBound(5, true))
73 PASS result is 6 73 PASS result is 6
74 index.getKey(IDBKeyRange.upperBound(7)) 74 index.getKey(IDBKeyRange.upperBound(7))
75 PASS result is 0 75 PASS result is 0
76 index.getKey(IDBKeyRange.upperBound(7, true)) 76 index.getKey(IDBKeyRange.upperBound(7, true))
77 PASS result is 0 77 PASS result is 0
78 index.getKey(IDBKeyRange.lowerBound(2.5)) 78 index.getKey(IDBKeyRange.lowerBound(2.5))
79 PASS result is 3 79 PASS result is 3
80 index.getKey(IDBKeyRange.lowerBound(100)) 80 index.getKey(IDBKeyRange.lowerBound(100))
81 PASS result is undefined 81 PASS result is undefined
82 index.getKey(IDBKeyRange.only(3.3)) 82 index.getKey(IDBKeyRange.only(3.3))
83 PASS result is undefined 83 PASS result is undefined
84 Expecting exception from index.getKey(null) 84 Expecting exception from index.getKey(null)
85 PASS Exception was thrown. 85 PASS Exception was thrown.
86 PASS code is 0 86 PASS code is 0
87 PASS ename is 'DataError' 87 PASS ename is 'DataError'
88 Exception message: No key or key range specified. 88 Exception message: Failed to execute 'getKey' on 'IDBIndex': No key or key range specified.
89 finishJSTest() 89 finishJSTest()
90 PASS successfullyParsed is true 90 PASS successfullyParsed is true
91 91
92 TEST COMPLETE 92 TEST COMPLETE
93 93
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/factory-cmp-expected.txt ('k') | LayoutTests/storage/indexeddb/index-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698