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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/deletedatabase-blocked.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 deleteDatabase is blocked on open connections"); 6 description("Test that deleteDatabase is blocked on open connections");
7 7
8 function test() { 8 function test() {
9 removeVendorPrefixes();
10 setDBNameFromPath(); 9 setDBNameFromPath();
11 10
12 evalAndLog("blockedEventFired = false"); 11 evalAndLog("blockedEventFired = false");
13 12
14 request = evalAndLog("indexedDB.open(dbname)"); 13 request = evalAndLog("indexedDB.open(dbname)");
15 request.onblocked = unexpectedBlockedCallback; 14 request.onblocked = unexpectedBlockedCallback;
16 request.onerror = unexpectedErrorCallback; 15 request.onerror = unexpectedErrorCallback;
17 request.onsuccess = function openOnSuccess(evt) { 16 request.onsuccess = function openOnSuccess(evt) {
18 preamble(evt); 17 preamble(evt);
19 evalAndLog("h = event.target.result"); 18 evalAndLog("h = event.target.result");
(...skipping 14 matching lines...) Expand all
34 }; 33 };
35 request.onsuccess = function deleteDatabaseOnSuccess(evt) { 34 request.onsuccess = function deleteDatabaseOnSuccess(evt) {
36 preamble(evt); 35 preamble(evt);
37 shouldBeTrue("blockedEventFired"); 36 shouldBeTrue("blockedEventFired");
38 finishJSTest(); 37 finishJSTest();
39 }; 38 };
40 }; 39 };
41 } 40 }
42 41
43 test(); 42 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698