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

Side by Side Diff: LayoutTests/storage/indexeddb/intversion-open-with-version-expected.txt

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 that specifying a version when opening a non-existent db causes an upgraden eeded event and that the version number is set correctly. 1 Test that specifying a version when opening a non-existent db causes an upgraden eeded event and that the version number is set correctly.
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;
7
8 dbname = "intversion-open-with-version.html" 6 dbname = "intversion-open-with-version.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 Should trigger: 8 Should trigger:
11 4.1.4: If no database with the given name from the origin origin was found, or i f it was deleted during the previous step, then create a database with name name , with 0 as version, and with no object stores. Let db be the new database. 9 4.1.4: If no database with the given name from the origin origin was found, or i f it was deleted during the previous step, then create a database with name name , with 0 as version, and with no object stores. Let db be the new database.
12 4.1.6: Create a new connection to db and let connection represent it. 10 4.1.6: Create a new connection to db and let connection represent it.
13 4.1.7: If the version of db is lower than version, then run the steps for runnin g a "versionchange" transaction using connection, version, request and upgrade c allback. 11 4.1.7: If the version of db is lower than version, then run the steps for runnin g a "versionchange" transaction using connection, version, request and upgrade c allback.
14 4.1.9: Return connection. 12 4.1.9: Return connection.
15 request = indexedDB.open(dbname, 7) 13 request = indexedDB.open(dbname, 7)
16 PASS String(request) is "[object IDBOpenDBRequest]" 14 PASS String(request) is "[object IDBOpenDBRequest]"
17 15
(...skipping 19 matching lines...) Expand all
37 PASS sawUpgradeNeeded is true 35 PASS sawUpgradeNeeded is true
38 PASS sawTransactionComplete is true 36 PASS sawTransactionComplete is true
39 db = event.target.result 37 db = event.target.result
40 Kind of test 4.1.9: 38 Kind of test 4.1.9:
41 PASS String(db) is "[object IDBDatabase]" 39 PASS String(db) is "[object IDBDatabase]"
42 PASS db.version is 7 40 PASS db.version is 7
43 PASS successfullyParsed is true 41 PASS successfullyParsed is true
44 42
45 TEST COMPLETE 43 TEST COMPLETE
46 44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698