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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/cursor-properties.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 IndexedDB's cursor key/primaryKey/value properties preser ve mutations."); 6 description("Test that IndexedDB's cursor key/primaryKey/value properties preser ve mutations.");
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.onblocked = unexpectedBlockedCallback; 13 request.onblocked = unexpectedBlockedCallback;
15 request.onerror = unexpectedErrorCallback; 14 request.onerror = unexpectedErrorCallback;
16 request.onsuccess = function() { 15 request.onsuccess = function() {
17 request = evalAndLog("indexedDB.open(dbname, 1)"); 16 request = evalAndLog("indexedDB.open(dbname, 1)");
18 request.onblocked = unexpectedBlockedCallback; 17 request.onblocked = unexpectedBlockedCallback;
19 request.onerror = unexpectedErrorCallback; 18 request.onerror = unexpectedErrorCallback;
20 request.onupgradeneeded = onUpgradeNeeded; 19 request.onupgradeneeded = onUpgradeNeeded;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 debug("Check read-only:"); 67 debug("Check read-only:");
69 evalAndLog(property + " = null"); 68 evalAndLog(property + " = null");
70 shouldBeTrue("v === " + property); 69 shouldBeTrue("v === " + property);
71 70
72 debug("Check mutability:"); 71 debug("Check mutability:");
73 evalAndLog(property + ".expando = 123"); 72 evalAndLog(property + ".expando = 123");
74 shouldBe(property + ".expando", "123"); 73 shouldBe(property + ".expando", "123");
75 } 74 }
76 75
77 test(); 76 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698