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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/resources/global-data.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 // original test: 1 // original test:
2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_global_data. html 2 // http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/test_global_data. html
3 // license of original test: 3 // license of original test:
4 // " Any copyright is dedicated to the Public Domain. 4 // " Any copyright is dedicated to the Public Domain.
5 // http://creativecommons.org/publicdomain/zero/1.0/ " 5 // http://creativecommons.org/publicdomain/zero/1.0/ "
6 6
7 if (this.importScripts) { 7 if (this.importScripts) {
8 importScripts('../../../../resources/js-test.js'); 8 importScripts('../../../../resources/js-test.js');
9 importScripts('../../resources/shared.js'); 9 importScripts('../../resources/shared.js');
10 } 10 }
(...skipping 13 matching lines...) Expand all
24 request.onsuccess = open2Success; 24 request.onsuccess = open2Success;
25 request.onerror = unexpectedErrorCallback; 25 request.onerror = unexpectedErrorCallback;
26 } 26 }
27 27
28 function open2Success() 28 function open2Success()
29 { 29 {
30 db2 = evalAndLog("db2 = event.target.result"); 30 db2 = evalAndLog("db2 = event.target.result");
31 31
32 shouldBeTrue("db1 !== db2"); 32 shouldBeTrue("db1 !== db2");
33 shouldBe("db1.objectStoreNames.length", "1"); 33 shouldBe("db1.objectStoreNames.length", "1");
34 shouldBe("db1.objectStoreNames.item(0)", "objectStoreName"); 34 shouldBe("db1.objectStoreNames[0]", "objectStoreName");
35 shouldBe("db2.objectStoreNames.length", "1"); 35 shouldBe("db2.objectStoreNames.length", "1");
36 shouldBe("db2.objectStoreNames.item(0)", "objectStoreName"); 36 shouldBe("db2.objectStoreNames[0]", "objectStoreName");
37 37
38 objectStore1 = evalAndLog("objectStore1 = db1.transaction(objectStoreName).o bjectStore(objectStoreName);"); 38 objectStore1 = evalAndLog("objectStore1 = db1.transaction(objectStoreName).o bjectStore(objectStoreName);");
39 shouldBe("objectStore1.name", "objectStoreName"); 39 shouldBe("objectStore1.name", "objectStoreName");
40 shouldBe("objectStore1.keyPath", "objectStoreOptions.keyPath"); 40 shouldBe("objectStore1.keyPath", "objectStoreOptions.keyPath");
41 41
42 objectStore2 = evalAndLog("objectStore2 = db2.transaction(objectStoreName).o bjectStore(objectStoreName);"); 42 objectStore2 = evalAndLog("objectStore2 = db2.transaction(objectStoreName).o bjectStore(objectStoreName);");
43 shouldBeTrue("objectStore1 !== objectStore2"); 43 shouldBeTrue("objectStore1 !== objectStore2");
44 shouldBe("objectStore2.name", "objectStoreName"); 44 shouldBe("objectStore2.name", "objectStoreName");
45 shouldBe("objectStore2.keyPath", "objectStoreOptions.keyPath"); 45 shouldBe("objectStore2.keyPath", "objectStoreOptions.keyPath");
46 46
47 finishJSTest(); 47 finishJSTest();
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698