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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/objectstore-basics.js

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 the basics of IndexedDB's IDBObjectStore."); 6 description("Test the basics of IndexedDB's IDBObjectStore.");
7 7
8 indexedDBTest(prepareDatabase, testSetVersionAbort); 8 indexedDBTest(prepareDatabase, testSetVersionAbort);
9 function prepareDatabase(evt) 9 function prepareDatabase(evt)
10 { 10 {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 shouldBe("db.version", "1"); 106 shouldBe("db.version", "1");
107 shouldBe("store.transaction", "setVersionTrans"); 107 shouldBe("store.transaction", "setVersionTrans");
108 shouldBe("store.indexNames", "['indexName']"); 108 shouldBe("store.indexNames", "['indexName']");
109 shouldBe("store.indexNames.length", "1"); 109 shouldBe("store.indexNames.length", "1");
110 shouldBe("store.indexNames.contains('')", "false"); 110 shouldBe("store.indexNames.contains('')", "false");
111 shouldBe("store.indexNames.contains('indexFail')", "false"); 111 shouldBe("store.indexNames.contains('indexFail')", "false");
112 shouldBe("store.indexNames.contains('indexName')", "true"); 112 shouldBe("store.indexNames.contains('indexName')", "true");
113 shouldBeEqualToString("store.indexNames[0]", "indexName"); 113 shouldBeEqualToString("store.indexNames[0]", "indexName");
114 shouldBeUndefined("store.indexNames[1]"); 114 shouldBeUndefined("store.indexNames[1]");
115 shouldBeUndefined("store.indexNames[100]"); 115 shouldBeUndefined("store.indexNames[100]");
116 shouldBeNull("store.indexNames.item(1)");
117 shouldBeNull("store.indexNames.item(100)");
118 } 116 }
119 117
120 var testDate = new Date("August 25, 1991 20:57:08"); 118 var testDate = new Date("August 25, 1991 20:57:08");
121 var testDateB = new Date("Wed Jan 05 2011 15:54:49"); 119 var testDateB = new Date("Wed Jan 05 2011 15:54:49");
122 120
123 function openAgain() 121 function openAgain()
124 { 122 {
125 preamble(); 123 preamble();
126 request = evalAndLog('indexedDB.open(dbname)'); 124 request = evalAndLog('indexedDB.open(dbname)');
127 request.onerror = unexpectedErrorCallback; 125 request.onerror = unexpectedErrorCallback;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 298
301 debug("The object store uses in-line keys but no key generator and the r esult of evaluating the object store's key path does not yield a value."); 299 debug("The object store uses in-line keys but no key generator and the r esult of evaluating the object store's key path does not yield a value.");
302 evalAndExpectException("storeWithInLineKeys.add({})", "0", "'DataError'" ); 300 evalAndExpectException("storeWithInLineKeys.add({})", "0", "'DataError'" );
303 301
304 debug("The key parameter was provided but does not contain a valid key." ); 302 debug("The key parameter was provided but does not contain a valid key." );
305 evalAndExpectException("storeWithOutOfLineKeys.add({}, null)", "0", "'Da taError'"); 303 evalAndExpectException("storeWithOutOfLineKeys.add({}, null)", "0", "'Da taError'");
306 304
307 finishJSTest(); 305 finishJSTest();
308 }; 306 };
309 } 307 }
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/persistence-expected.txt ('k') | LayoutTests/storage/indexeddb/resources/shared.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698