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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/intversion-omit-parameter.js

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 if (this.importScripts) { 1 if (this.importScripts) {
2 importScripts('../../../resources/js-test.js'); 2 importScripts('../../../resources/js-test.js');
3 importScripts('shared.js'); 3 importScripts('shared.js');
4 } 4 }
5 5
6 description("Test that initial version after a successful open of a non-existent db is 1"); 6 description("Test that initial version after a successful open of a non-existent db is 1");
7 7
8 function test() 8 function test()
9 { 9 {
10 removeVendorPrefixes();
11 setDBNameFromPath(); 10 setDBNameFromPath();
12 11
13 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); 12 request = evalAndLog("indexedDB.deleteDatabase(dbname)");
14 request.onsuccess = deleteSuccess; 13 request.onsuccess = deleteSuccess;
15 request.onerror = unexpectedErrorCallback; 14 request.onerror = unexpectedErrorCallback;
16 } 15 }
17 16
18 function deleteSuccess(evt) { 17 function deleteSuccess(evt) {
19 request = evalAndLog("indexedDB.open(dbname)"); 18 request = evalAndLog("indexedDB.open(dbname)");
20 request.onsuccess = openSuccess; 19 request.onsuccess = openSuccess;
21 request.onerror = unexpectedErrorCallback; 20 request.onerror = unexpectedErrorCallback;
22 request.onblocked = unexpectedBlockedCallback; 21 request.onblocked = unexpectedBlockedCallback;
23 request.onupgradeneeded = function() { 22 request.onupgradeneeded = function() {
24 testPassed("Got upgradeneeded event"); 23 testPassed("Got upgradeneeded event");
25 } 24 }
26 } 25 }
27 26
28 function openSuccess(evt) 27 function openSuccess(evt)
29 { 28 {
30 event = evt; 29 event = evt;
31 debug(""); 30 debug("");
32 debug("openSuccess():"); 31 debug("openSuccess():");
33 db = evalAndLog("db = event.target.result"); 32 db = evalAndLog("db = event.target.result");
34 debug("Test line from IDBFactory.open: If no version is specified and no dat abase exists, set database version to 1."); 33 debug("Test line from IDBFactory.open: If no version is specified and no dat abase exists, set database version to 1.");
35 shouldBe('db.version', '1'); 34 shouldBe('db.version', '1');
36 finishJSTest(); 35 finishJSTest();
37 } 36 }
38 37
39 test(); 38 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698