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

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

Issue 11184033: Merge 131658 - IndexedDB: Enforce unsigned long/unsigned long long ranges (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 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
OLDNEW
1 if (this.importScripts) { 1 if (this.importScripts) {
2 importScripts('../../../fast/js/resources/js-test-pre.js'); 2 importScripts('../../../fast/js/resources/js-test-pre.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 9007199254740992]; // 2^53, maximum JavaScript integer. 12 9007199254740991]; // 2^53-1, maximum JavaScript integer.
13 13
14 function test() 14 function test()
15 { 15 {
16 removeVendorPrefixes(); 16 removeVendorPrefixes();
17 setDBNameFromPath(); 17 setDBNameFromPath();
18 request = evalAndLog("indexedDB.deleteDatabase(dbname)"); 18 request = evalAndLog("indexedDB.deleteDatabase(dbname)");
19 request.onblocked = unexpectedBlockedCallback; 19 request.onblocked = unexpectedBlockedCallback;
20 request.onerror = unexpectedErrorCallback; 20 request.onerror = unexpectedErrorCallback;
21 request.onsuccess = openFirstTime; 21 request.onsuccess = openFirstTime;
22 } 22 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 request.onupgradeneeded = unexpectedUpgradeNeededCallback; 56 request.onupgradeneeded = unexpectedUpgradeNeededCallback;
57 request.onsuccess = function() { 57 request.onsuccess = function() {
58 evalAndLog("db = request.result"); 58 evalAndLog("db = request.result");
59 shouldBe("db.version", "version"); 59 shouldBe("db.version", "version");
60 evalAndLog("db.close()"); 60 evalAndLog("db.close()");
61 openFirstTime(); 61 openFirstTime();
62 }; 62 };
63 } 63 }
64 64
65 test(); 65 test();
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/resources/intversion-bad-parameters.js ('k') | Source/WebCore/Modules/indexeddb/IDBCursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698