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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/intversion-abort-in-initial-upgradeneeded.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 an abort in the initial upgradeneeded sets version back t o 0"); 6 description("Test that an abort in the initial upgradeneeded sets version back t o 0");
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() { 17 function deleteSuccess() {
19 request = evalAndLog("indexedDB.open(dbname, 2)"); 18 request = evalAndLog("indexedDB.open(dbname, 2)");
20 request.onsuccess = unexpectedSuccessCallback; 19 request.onsuccess = unexpectedSuccessCallback;
(...skipping 25 matching lines...) Expand all
46 preamble(evt); 45 preamble(evt);
47 shouldBe("request", "event.target"); 46 shouldBe("request", "event.target");
48 shouldBeUndefined("event.target.result"); 47 shouldBeUndefined("event.target.result");
49 shouldBeNonNull("event.target.error"); 48 shouldBeNonNull("event.target.error");
50 shouldBeEqualToString("event.target.error.name", "AbortError"); 49 shouldBeEqualToString("event.target.error.name", "AbortError");
51 shouldBeNull("request.transaction"); 50 shouldBeNull("request.transaction");
52 finishJSTest(); 51 finishJSTest();
53 } 52 }
54 53
55 test(); 54 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698