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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/open-twice.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 opening twice"); 6 description("Test opening twice");
7 7
8 function test() 8 function test()
9 { 9 {
10 removeVendorPrefixes();
11
12 request = evalAndLog("indexedDB.open('open-twice1')"); 10 request = evalAndLog("indexedDB.open('open-twice1')");
13 request.onerror = unexpectedErrorCallback; 11 request.onerror = unexpectedErrorCallback;
14 request.onblocked = unexpectedBlockedCallback; 12 request.onblocked = unexpectedBlockedCallback;
15 request.onsuccess = openAnother; 13 request.onsuccess = openAnother;
16 }; 14 };
17 15
18 function openAnother() 16 function openAnother()
19 { 17 {
20 request = evalAndLog("indexedDB.open('open-twice2')"); 18 request = evalAndLog("indexedDB.open('open-twice2')");
21 request.onerror = unexpectedErrorCallback; 19 request.onerror = unexpectedErrorCallback;
22 request.onblocked = unexpectedBlockedCallback; 20 request.onblocked = unexpectedBlockedCallback;
23 request.onsuccess = finishJSTest; 21 request.onsuccess = finishJSTest;
24 } 22 }
25 23
26 test(); 24 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698