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

Side by Side Diff: LayoutTests/storage/indexeddb/resources/removed.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("Ensure that some obsolete IndexedDB features are gone."); 6 description("Ensure that some obsolete IndexedDB features are gone.");
7 7
8 function test() 8 function test()
9 { 9 {
10 removeVendorPrefixes();
11 setDBNameFromPath(); 10 setDBNameFromPath();
12 11
13 shouldBeUndefined("self.webkitIDBDatabaseError"); 12 shouldBeUndefined("self.webkitIDBDatabaseError");
14 shouldBeFalse("'IDBDatabaseException' in self"); 13 shouldBeFalse("'IDBDatabaseException' in self");
15 shouldBeFalse("'errorCode' in indexedDB.open(dbname)"); 14 shouldBeFalse("'errorCode' in indexedDB.open(dbname)");
16 shouldBeFalse("'setVersion' in IDBDatabase.prototype"); 15 shouldBeFalse("'setVersion' in IDBDatabase.prototype");
17 16
18 if ('document' in self) { 17 if ('document' in self) {
19 shouldThrow("document.createEvent('IDBUpgradeNeededEvent')"); 18 shouldThrow("document.createEvent('IDBUpgradeNeededEvent')");
20 shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent' )"); 19 shouldBeFalse("'version' in document.createEvent('IDBVersionChangeEvent' )");
21 } 20 }
22 21
23 finishJSTest(); 22 finishJSTest();
24 } 23 }
25 24
26 test(); 25 test();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698