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

Side by Side Diff: LayoutTests/storage/indexeddb/intversion-bad-parameters-expected.txt

Issue 121113004: Improve handling of failed integer type conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
OLDNEW
1 Test that bad version parameters cause TypeError 1 Test that bad version parameters cause TypeError
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 = "intversion-bad-parameters.html" 8 dbname = "intversion-bad-parameters.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 10
11 deleteSuccess(): 11 deleteSuccess():
12 Expecting TypeError exception from indexedDB.open(dbname, 'stringversion') 12 Expecting TypeError exception from indexedDB.open(dbname, 'stringversion')
13 PASS Exception was thrown. 13 PASS Exception was thrown.
14 PASS indexedDB.open(dbname, 'stringversion') threw TypeError: Type error 14 PASS indexedDB.open(dbname, 'stringversion') threw TypeError: Failed to execute 'open' on 'IDBFactory': Value is not of type 'unsigned long long'.
15 Expecting TypeError exception from indexedDB.open(dbname, 0) 15 Expecting TypeError exception from indexedDB.open(dbname, 0)
16 PASS Exception was thrown. 16 PASS Exception was thrown.
17 PASS indexedDB.open(dbname, 0) threw TypeError: Type error 17 PASS indexedDB.open(dbname, 0) threw TypeError: Type error
18 Expecting TypeError exception from indexedDB.open(dbname, -5) 18 Expecting TypeError exception from indexedDB.open(dbname, -5)
19 PASS Exception was thrown. 19 PASS Exception was thrown.
20 PASS indexedDB.open(dbname, -5) threw TypeError: Type error 20 PASS indexedDB.open(dbname, -5) threw TypeError: Failed to execute 'open' on 'ID BFactory': Value is outside the 'unsigned long long' value range.
21 Expecting TypeError exception from indexedDB.open(dbname, Infinity) 21 Expecting TypeError exception from indexedDB.open(dbname, Infinity)
22 PASS Exception was thrown. 22 PASS Exception was thrown.
23 PASS indexedDB.open(dbname, Infinity) threw TypeError: Type error 23 PASS indexedDB.open(dbname, Infinity) threw TypeError: Failed to execute 'open' on 'IDBFactory': Value is infinite and not of type 'unsigned long long'.
24 Expecting TypeError exception from indexedDB.open(dbname, -Infinity) 24 Expecting TypeError exception from indexedDB.open(dbname, -Infinity)
25 PASS Exception was thrown. 25 PASS Exception was thrown.
26 PASS indexedDB.open(dbname, -Infinity) threw TypeError: Type error 26 PASS indexedDB.open(dbname, -Infinity) threw TypeError: Failed to execute 'open' on 'IDBFactory': Value is infinite and not of type 'unsigned long long'.
27 Expecting TypeError exception from indexedDB.open(dbname, NaN) 27 Expecting TypeError exception from indexedDB.open(dbname, NaN)
28 PASS Exception was thrown. 28 PASS Exception was thrown.
29 PASS indexedDB.open(dbname, NaN) threw TypeError: Type error 29 PASS indexedDB.open(dbname, NaN) threw TypeError: Failed to execute 'open' on 'I DBFactory': Value is not of type 'unsigned long long'.
30 Expecting TypeError exception from indexedDB.open(dbname, -1) 30 Expecting TypeError exception from indexedDB.open(dbname, -1)
31 PASS Exception was thrown. 31 PASS Exception was thrown.
32 PASS indexedDB.open(dbname, -1) threw TypeError: Type error 32 PASS indexedDB.open(dbname, -1) threw TypeError: Failed to execute 'open' on 'ID BFactory': Value is outside the 'unsigned long long' value range.
33 Expecting TypeError exception from indexedDB.open(dbname, 0x20000000000000) 33 Expecting TypeError exception from indexedDB.open(dbname, 0x20000000000000)
34 PASS Exception was thrown. 34 PASS Exception was thrown.
35 PASS indexedDB.open(dbname, 0x20000000000000) threw TypeError: Type error 35 PASS indexedDB.open(dbname, 0x20000000000000) threw TypeError: Failed to execute 'open' on 'IDBFactory': Value is outside the 'unsigned long long' value range.
36 Expecting TypeError exception from indexedDB.open(dbname, null) 36 Expecting TypeError exception from indexedDB.open(dbname, null)
37 PASS Exception was thrown. 37 PASS Exception was thrown.
38 PASS indexedDB.open(dbname, null) threw TypeError: Type error 38 PASS indexedDB.open(dbname, null) threw TypeError: Type error
39 Expecting TypeError exception from indexedDB.open(dbname, undefined) 39 Expecting TypeError exception from indexedDB.open(dbname, undefined)
40 PASS Exception was thrown. 40 PASS Exception was thrown.
41 PASS indexedDB.open(dbname, undefined) threw TypeError: Type error 41 PASS indexedDB.open(dbname, undefined) threw TypeError: Failed to execute 'open' on 'IDBFactory': Value is not of type 'unsigned long long'.
42 PASS successfullyParsed is true 42 PASS successfullyParsed is true
43 43
44 TEST COMPLETE 44 TEST COMPLETE
45 45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698