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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/intversion-encoding.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 integer versions are encoded/decoded consistently."); 6 description("Test that integer versions are encoded/decoded consistently.");
7 7
8 versions = [1, 8 versions = [1,
9 0x7f, 9 0x7f,
10 0x80, 10 0x80,
11 0x80000000, 11 0x80000000,
12 9007199254740991]; // 2^53-1, maximum JavaScript integer. 12 9007199254740991]; // 2^53-1, maximum JavaScript integer.
13 13
14 function test() 14 function test()
15 { 15 {
16 removeVendorPrefixes();
17 setDBNameFromPath(); 16 setDBNameFromPath();
18 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); 17 request = evalAndLog("indexedDB.deleteDatabase(dbname)");
19 request.onblocked = unexpectedBlockedCallback; 18 request.onblocked = unexpectedBlockedCallback;
20 request.onerror = unexpectedErrorCallback; 19 request.onerror = unexpectedErrorCallback;
21 request.onsuccess = openFirstTime; 20 request.onsuccess = openFirstTime;
22 } 21 }
23 22
24 function openFirstTime(evt) { 23 function openFirstTime(evt) {
25 preamble(evt); 24 preamble(evt);
26 25
(...skipping 29 matching lines...) Expand all
56 request.onupgradeneeded = unexpectedUpgradeNeededCallback; 55 request.onupgradeneeded = unexpectedUpgradeNeededCallback;
57 request.onsuccess = function() { 56 request.onsuccess = function() {
58 evalAndLog("db = request.result"); 57 evalAndLog("db = request.result");
59 shouldBe("db.version", "version"); 58 shouldBe("db.version", "version");
60 evalAndLog("db.close()"); 59 evalAndLog("db.close()");
61 openFirstTime(); 60 openFirstTime();
62 }; 61 };
63 } 62 }
64 63
65 test(); 64 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698