Changeset 69540 in webkit
- Timestamp:
- Oct 11, 2010 5:16:25 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69536 r69540 1 2010-10-11 Andrei Popescu <andreip@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 The names of IndexedDB-specific attributes of DOMWindow should be prefixed with 'webkit'. 6 https://bugs.webkit.org/show_bug.cgi?id=47508 7 8 * storage/indexeddb/basics-expected.txt: 9 * storage/indexeddb/basics.html: 10 * storage/indexeddb/constants-expected.txt: 11 * storage/indexeddb/constants.html: 12 * storage/indexeddb/database-basics-expected.txt: 13 * storage/indexeddb/database-basics.html: 14 * storage/indexeddb/database-quota-expected.txt: 15 * storage/indexeddb/database-quota.html: 16 * storage/indexeddb/index-basics-expected.txt: 17 * storage/indexeddb/index-basics.html: 18 * storage/indexeddb/index-cursor-expected.txt: 19 * storage/indexeddb/index-cursor.html: 20 * storage/indexeddb/keyrange-expected.txt: 21 * storage/indexeddb/keyrange.html: 22 * storage/indexeddb/objectstore-basics-expected.txt: 23 * storage/indexeddb/objectstore-basics.html: 24 * storage/indexeddb/objectstore-cursor-expected.txt: 25 * storage/indexeddb/objectstore-cursor.html: 26 * storage/indexeddb/objectstore-removeobjectstore-expected.txt: 27 * storage/indexeddb/objectstore-removeobjectstore.html: 28 * storage/indexeddb/open-cursor-expected.txt: 29 * storage/indexeddb/open-cursor.html: 30 * storage/indexeddb/transaction-basics-expected.txt: 31 * storage/indexeddb/transaction-basics.html: 32 1 33 2010-10-11 Adam Barth <abarth@webkit.org> 2 34 -
trunk/LayoutTests/storage/indexeddb/basics-expected.txt
r68546 r69540 4 4 5 5 6 PASS ' indexedDB' in window is true7 PASS indexedDB == null is false8 indexedDB.open('name', 'description')6 PASS 'webkitIndexedDB' in window is true 7 PASS webkitIndexedDB == null is false 8 webkitIndexedDB.open('name', 'description') 9 9 PASS 'onsuccess' in result is true 10 10 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/basics.html
r67087 r69540 23 23 function test() 24 24 { 25 shouldBeTrue("' indexedDB' in window");26 shouldBeFalse(" indexedDB == null");25 shouldBeTrue("'webkitIndexedDB' in window"); 26 shouldBeFalse("webkitIndexedDB == null"); 27 27 28 28 // FIXME: Verify other IndexedDatabaseRequest constructors, once they're implemented. 29 29 30 result = evalAndLog(" indexedDB.open('name', 'description')");30 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 31 31 verifyResult(result); 32 32 result.onsuccess = openCallback; -
trunk/LayoutTests/storage/indexeddb/constants-expected.txt
r66802 r69540 4 4 5 5 6 PASS IDBKeyRange.SINGLE is 07 PASS IDBKeyRange.LEFT_OPEN is 18 PASS IDBKeyRange.RIGHT_OPEN is 29 PASS IDBKeyRange.LEFT_BOUND is 410 PASS IDBKeyRange.RIGHT_BOUND is 811 PASS IDBDatabaseException.UNKNOWN_ERR is 012 PASS IDBDatabaseException.NON_TRANSIENT_ERR is 113 PASS IDBDatabaseException.NOT_FOUND_ERR is 214 PASS IDBDatabaseException.CONSTRAINT_ERR is 315 PASS IDBDatabaseException.DATA_ERR is 416 PASS IDBDatabaseException.NOT_ALLOWED_ERR is 517 PASS IDBDatabaseException.SERIAL_ERR is 1118 PASS IDBDatabaseException.RECOVERABLE_ERR is 2119 PASS IDBDatabaseException.TRANSIENT_ERR is 3120 PASS IDBDatabaseException.TIMEOUT_ERR is 3221 PASS IDBDatabaseException.DEADLOCK_ERR is 3322 PASS IDBRequest.LOADING is 123 PASS IDBRequest.DONE is 224 PASS IDBCursor.NEXT is 025 PASS IDBCursor.NEXT_NO_DUPLICATE is 126 PASS IDBCursor.PREV is 227 PASS IDBCursor.PREV_NO_DUPLICATE is 328 PASS IDBTransaction.READ_WRITE is 029 PASS IDBTransaction.READ_ONLY is 130 PASS IDBTransaction.SNAPSHOT_READ is 231 PASS IDBTransaction.VERSION_CHANGE is 36 PASS webkitIDBKeyRange.SINGLE is 0 7 PASS webkitIDBKeyRange.LEFT_OPEN is 1 8 PASS webkitIDBKeyRange.RIGHT_OPEN is 2 9 PASS webkitIDBKeyRange.LEFT_BOUND is 4 10 PASS webkitIDBKeyRange.RIGHT_BOUND is 8 11 PASS webkitIDBDatabaseException.UNKNOWN_ERR is 0 12 PASS webkitIDBDatabaseException.NON_TRANSIENT_ERR is 1 13 PASS webkitIDBDatabaseException.NOT_FOUND_ERR is 2 14 PASS webkitIDBDatabaseException.CONSTRAINT_ERR is 3 15 PASS webkitIDBDatabaseException.DATA_ERR is 4 16 PASS webkitIDBDatabaseException.NOT_ALLOWED_ERR is 5 17 PASS webkitIDBDatabaseException.SERIAL_ERR is 11 18 PASS webkitIDBDatabaseException.RECOVERABLE_ERR is 21 19 PASS webkitIDBDatabaseException.TRANSIENT_ERR is 31 20 PASS webkitIDBDatabaseException.TIMEOUT_ERR is 32 21 PASS webkitIDBDatabaseException.DEADLOCK_ERR is 33 22 PASS webkitIDBRequest.LOADING is 1 23 PASS webkitIDBRequest.DONE is 2 24 PASS webkitIDBCursor.NEXT is 0 25 PASS webkitIDBCursor.NEXT_NO_DUPLICATE is 1 26 PASS webkitIDBCursor.PREV is 2 27 PASS webkitIDBCursor.PREV_NO_DUPLICATE is 3 28 PASS webkitIDBTransaction.READ_WRITE is 0 29 PASS webkitIDBTransaction.READ_ONLY is 1 30 PASS webkitIDBTransaction.SNAPSHOT_READ is 2 31 PASS webkitIDBTransaction.VERSION_CHANGE is 3 32 32 PASS successfullyParsed is true 33 33 -
trunk/LayoutTests/storage/indexeddb/constants.html
r66802 r69540 17 17 function test() 18 18 { 19 shouldBe(" IDBKeyRange.SINGLE", "0");20 shouldBe(" IDBKeyRange.LEFT_OPEN", "1");21 shouldBe(" IDBKeyRange.RIGHT_OPEN", "2");22 shouldBe(" IDBKeyRange.LEFT_BOUND", "4");23 shouldBe(" IDBKeyRange.RIGHT_BOUND", "8");19 shouldBe("webkitIDBKeyRange.SINGLE", "0"); 20 shouldBe("webkitIDBKeyRange.LEFT_OPEN", "1"); 21 shouldBe("webkitIDBKeyRange.RIGHT_OPEN", "2"); 22 shouldBe("webkitIDBKeyRange.LEFT_BOUND", "4"); 23 shouldBe("webkitIDBKeyRange.RIGHT_BOUND", "8"); 24 24 25 shouldBe(" IDBDatabaseException.UNKNOWN_ERR", "0");26 shouldBe(" IDBDatabaseException.NON_TRANSIENT_ERR", "1");27 shouldBe(" IDBDatabaseException.NOT_FOUND_ERR", "2");28 shouldBe(" IDBDatabaseException.CONSTRAINT_ERR", "3");29 shouldBe(" IDBDatabaseException.DATA_ERR", "4");30 shouldBe(" IDBDatabaseException.NOT_ALLOWED_ERR", "5");31 shouldBe(" IDBDatabaseException.SERIAL_ERR", "11");32 shouldBe(" IDBDatabaseException.RECOVERABLE_ERR", "21");33 shouldBe(" IDBDatabaseException.TRANSIENT_ERR", "31");34 shouldBe(" IDBDatabaseException.TIMEOUT_ERR", "32");35 shouldBe(" IDBDatabaseException.DEADLOCK_ERR", "33");25 shouldBe("webkitIDBDatabaseException.UNKNOWN_ERR", "0"); 26 shouldBe("webkitIDBDatabaseException.NON_TRANSIENT_ERR", "1"); 27 shouldBe("webkitIDBDatabaseException.NOT_FOUND_ERR", "2"); 28 shouldBe("webkitIDBDatabaseException.CONSTRAINT_ERR", "3"); 29 shouldBe("webkitIDBDatabaseException.DATA_ERR", "4"); 30 shouldBe("webkitIDBDatabaseException.NOT_ALLOWED_ERR", "5"); 31 shouldBe("webkitIDBDatabaseException.SERIAL_ERR", "11"); 32 shouldBe("webkitIDBDatabaseException.RECOVERABLE_ERR", "21"); 33 shouldBe("webkitIDBDatabaseException.TRANSIENT_ERR", "31"); 34 shouldBe("webkitIDBDatabaseException.TIMEOUT_ERR", "32"); 35 shouldBe("webkitIDBDatabaseException.DEADLOCK_ERR", "33"); 36 36 37 shouldBe(" IDBRequest.LOADING", "1");38 shouldBe(" IDBRequest.DONE", "2");37 shouldBe("webkitIDBRequest.LOADING", "1"); 38 shouldBe("webkitIDBRequest.DONE", "2"); 39 39 40 shouldBe(" IDBCursor.NEXT", "0");41 shouldBe(" IDBCursor.NEXT_NO_DUPLICATE", "1");42 shouldBe(" IDBCursor.PREV", "2");43 shouldBe(" IDBCursor.PREV_NO_DUPLICATE", "3");40 shouldBe("webkitIDBCursor.NEXT", "0"); 41 shouldBe("webkitIDBCursor.NEXT_NO_DUPLICATE", "1"); 42 shouldBe("webkitIDBCursor.PREV", "2"); 43 shouldBe("webkitIDBCursor.PREV_NO_DUPLICATE", "3"); 44 44 45 shouldBe(" IDBTransaction.READ_WRITE", "0");46 shouldBe(" IDBTransaction.READ_ONLY", "1");47 shouldBe(" IDBTransaction.SNAPSHOT_READ", "2");48 shouldBe(" IDBTransaction.VERSION_CHANGE", "3");45 shouldBe("webkitIDBTransaction.READ_WRITE", "0"); 46 shouldBe("webkitIDBTransaction.READ_ONLY", "1"); 47 shouldBe("webkitIDBTransaction.SNAPSHOT_READ", "2"); 48 shouldBe("webkitIDBTransaction.VERSION_CHANGE", "3"); 49 49 } 50 50 -
trunk/LayoutTests/storage/indexeddb/database-basics-expected.txt
r69247 r69540 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/database-basics.html
r69247 r69540 17 17 function test() 18 18 { 19 result = evalAndLog(" indexedDB.open('name', 'description')");19 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 20 20 verifyResult(result); 21 21 result.onsuccess = openSuccess; -
trunk/LayoutTests/storage/indexeddb/database-quota-expected.txt
r69421 r69540 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/database-quota.html
r69421 r69540 17 17 function test() 18 18 { 19 result = evalAndLog(" indexedDB.open('name', 'description')");19 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 20 20 verifyResult(result); 21 21 result.onsuccess = openSuccess; -
trunk/LayoutTests/storage/indexeddb/index-basics-expected.txt
r69123 r69540 1 Test the basics of IndexedDB's IDBIndex.1 Test the basics of IndexedDB's webkitIDBIndex. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true … … 145 145 PASS event.target.readyState is event.target.DONE 146 146 147 PASS event.code is IDBDatabaseException.NOT_FOUND_ERR147 PASS event.code is webkitIDBDatabaseException.NOT_FOUND_ERR 148 148 indexObject.get('does not exist') 149 149 PASS 'onsuccess' in result is true … … 163 163 PASS event.target.readyState is event.target.DONE 164 164 165 PASS event.code is IDBDatabaseException.NOT_FOUND_ERR165 PASS event.code is webkitIDBDatabaseException.NOT_FOUND_ERR 166 166 indexObject.openKeyCursor() 167 167 PASS 'onsuccess' in result is true -
trunk/LayoutTests/storage/indexeddb/index-basics.html
r69123 r69540 11 11 <script> 12 12 13 description("Test the basics of IndexedDB's IDBIndex.");13 description("Test the basics of IndexedDB's webkitIDBIndex."); 14 14 if (window.layoutTestController) 15 15 layoutTestController.waitUntilDone(); … … 17 17 function test() 18 18 { 19 result = evalAndLog(" indexedDB.open('name', 'description')");19 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 20 20 verifyResult(result); 21 21 result.onsuccess = setVersion; … … 119 119 { 120 120 verifyErrorEvent(event); 121 shouldBe("event.code", " IDBDatabaseException.NOT_FOUND_ERR");121 shouldBe("event.code", "webkitIDBDatabaseException.NOT_FOUND_ERR"); 122 122 123 123 result = evalAndLog("indexObject.get('does not exist')"); … … 130 130 { 131 131 verifyErrorEvent(event); 132 shouldBe("event.code", " IDBDatabaseException.NOT_FOUND_ERR");132 shouldBe("event.code", "webkitIDBDatabaseException.NOT_FOUND_ERR"); 133 133 134 134 window.result = evalAndLog("indexObject.openKeyCursor()"); -
trunk/LayoutTests/storage/indexeddb/index-cursor-expected.txt
r69121 r69540 1 Test IndexedDB's IDBIndex.openCursor + the cursor it produces in depth.1 Test IndexedDB's webkitIDBIndex.openCursor + the cursor it produces in depth. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 indexedDB.open('someDB', 'some description')6 webkitIndexedDB.open('someDB', 'some description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/index-cursor.html
r69123 r69540 11 11 <script> 12 12 13 description("Test IndexedDB's IDBIndex.openCursor + the cursor it produces in depth.");13 description("Test IndexedDB's webkitIDBIndex.openCursor + the cursor it produces in depth."); 14 14 if (window.layoutTestController) 15 15 layoutTestController.waitUntilDone(); … … 30 30 function openDatabase() 31 31 { 32 result = evalAndLog(" indexedDB.open('someDB', 'some description')");32 result = evalAndLog("webkitIndexedDB.open('someDB', 'some description')"); 33 33 verifyResult(result); 34 34 result.onsuccess = setVersion; … … 181 181 var keyRange; 182 182 if (lower !== null && upper !== null) 183 keyRange = IDBKeyRange.bound(testData[lower], testData[upper], lowerIsOpen, upperIsOpen);183 keyRange = webkitIDBKeyRange.bound(testData[lower], testData[upper], lowerIsOpen, upperIsOpen); 184 184 else if (lower !== null) 185 keyRange = IDBKeyRange.leftBound(testData[lower], lowerIsOpen);185 keyRange = webkitIDBKeyRange.leftBound(testData[lower], lowerIsOpen); 186 186 else 187 keyRange = IDBKeyRange.rightBound(testData[upper], upperIsOpen);188 189 var request = indexObject.openKeyCursor(keyRange, ascending ? IDBCursor.NEXT :IDBCursor.PREV);187 keyRange = webkitIDBKeyRange.rightBound(testData[upper], upperIsOpen); 188 189 var request = indexObject.openKeyCursor(keyRange, ascending ? webkitIDBCursor.NEXT : webkitIDBCursor.PREV); 190 190 request.onsuccess = cursorIteration; 191 191 request.onerror = unexpectedErrorCallback; -
trunk/LayoutTests/storage/indexeddb/keyrange-expected.txt
r66802 r69540 4 4 5 5 6 PASS 'SINGLE' in IDBKeyRange is true7 PASS 'LEFT_OPEN' in IDBKeyRange is true8 PASS 'RIGHT_OPEN' in IDBKeyRange is true9 PASS 'LEFT_BOUND' in IDBKeyRange is true10 PASS 'RIGHT_BOUND' in IDBKeyRange is true11 PASS 'left' in IDBKeyRange is false12 PASS 'right' in IDBKeyRange is false13 PASS 'flags' in IDBKeyRange is false14 PASS 'only' in IDBKeyRange is true15 PASS 'leftBound' in IDBKeyRange is true16 PASS 'rightBound' in IDBKeyRange is true17 PASS 'bound' in IDBKeyRange is true6 PASS 'SINGLE' in webkitIDBKeyRange is true 7 PASS 'LEFT_OPEN' in webkitIDBKeyRange is true 8 PASS 'RIGHT_OPEN' in webkitIDBKeyRange is true 9 PASS 'LEFT_BOUND' in webkitIDBKeyRange is true 10 PASS 'RIGHT_BOUND' in webkitIDBKeyRange is true 11 PASS 'left' in webkitIDBKeyRange is false 12 PASS 'right' in webkitIDBKeyRange is false 13 PASS 'flags' in webkitIDBKeyRange is false 14 PASS 'only' in webkitIDBKeyRange is true 15 PASS 'leftBound' in webkitIDBKeyRange is true 16 PASS 'rightBound' in webkitIDBKeyRange is true 17 PASS 'bound' in webkitIDBKeyRange is true 18 18 19 instance = IDBKeyRange.only(1)19 instance = webkitIDBKeyRange.only(1) 20 20 PASS 'SINGLE' in instance is true 21 21 PASS 'LEFT_OPEN' in instance is true … … 31 31 PASS 'bound' in instance is false 32 32 33 IDBKeyRange.only(1)33 webkitIDBKeyRange.only(1) 34 34 PASS keyRange.left is 1 35 35 PASS keyRange.right is 1 36 36 PASS keyRange.flags is keyRange.SINGLE 37 IDBKeyRange.only('a')37 webkitIDBKeyRange.only('a') 38 38 PASS keyRange.left is 'a' 39 39 PASS keyRange.right is 'a' 40 40 PASS keyRange.flags is keyRange.SINGLE 41 IDBKeyRange.leftBound(10,true)41 webkitIDBKeyRange.leftBound(10,true) 42 42 PASS keyRange.left is 10 43 43 PASS keyRange.right is null 44 44 PASS keyRange.flags is keyRange.LEFT_OPEN | keyRange.LEFT_BOUND 45 IDBKeyRange.leftBound(11,false)45 webkitIDBKeyRange.leftBound(11,false) 46 46 PASS keyRange.left is 11 47 47 PASS keyRange.right is null 48 48 PASS keyRange.flags is keyRange.LEFT_BOUND 49 IDBKeyRange.leftBound(12,undefined)49 webkitIDBKeyRange.leftBound(12,undefined) 50 50 PASS keyRange.left is 12 51 51 PASS keyRange.right is null 52 52 PASS keyRange.flags is keyRange.LEFT_BOUND 53 IDBKeyRange.leftBound('aa',true)53 webkitIDBKeyRange.leftBound('aa',true) 54 54 PASS keyRange.left is 'aa' 55 55 PASS keyRange.right is null 56 56 PASS keyRange.flags is keyRange.LEFT_OPEN | keyRange.LEFT_BOUND 57 IDBKeyRange.leftBound('ab',false)57 webkitIDBKeyRange.leftBound('ab',false) 58 58 PASS keyRange.left is 'ab' 59 59 PASS keyRange.right is null 60 60 PASS keyRange.flags is keyRange.LEFT_BOUND 61 IDBKeyRange.leftBound('ac',undefined)61 webkitIDBKeyRange.leftBound('ac',undefined) 62 62 PASS keyRange.left is 'ac' 63 63 PASS keyRange.right is null 64 64 PASS keyRange.flags is keyRange.LEFT_BOUND 65 IDBKeyRange.rightBound(20,true)65 webkitIDBKeyRange.rightBound(20,true) 66 66 PASS keyRange.right is 20 67 67 PASS keyRange.left is null 68 68 PASS keyRange.flags is keyRange.RIGHT_OPEN | keyRange.RIGHT_BOUND 69 IDBKeyRange.rightBound(21,false)69 webkitIDBKeyRange.rightBound(21,false) 70 70 PASS keyRange.right is 21 71 71 PASS keyRange.left is null 72 72 PASS keyRange.flags is keyRange.RIGHT_BOUND 73 IDBKeyRange.rightBound(22,undefined)73 webkitIDBKeyRange.rightBound(22,undefined) 74 74 PASS keyRange.right is 22 75 75 PASS keyRange.left is null 76 76 PASS keyRange.flags is keyRange.RIGHT_BOUND 77 IDBKeyRange.rightBound('ba',true)77 webkitIDBKeyRange.rightBound('ba',true) 78 78 PASS keyRange.right is 'ba' 79 79 PASS keyRange.left is null 80 80 PASS keyRange.flags is keyRange.RIGHT_OPEN | keyRange.RIGHT_BOUND 81 IDBKeyRange.rightBound('bb',false)81 webkitIDBKeyRange.rightBound('bb',false) 82 82 PASS keyRange.right is 'bb' 83 83 PASS keyRange.left is null 84 84 PASS keyRange.flags is keyRange.RIGHT_BOUND 85 IDBKeyRange.rightBound('bc',undefined)85 webkitIDBKeyRange.rightBound('bc',undefined) 86 86 PASS keyRange.right is 'bc' 87 87 PASS keyRange.left is null 88 88 PASS keyRange.flags is keyRange.RIGHT_BOUND 89 IDBKeyRange.bound(30,40,undefined,undefined)89 webkitIDBKeyRange.bound(30,40,undefined,undefined) 90 90 PASS keyRange.left is 30 91 91 PASS keyRange.right is 40 92 92 PASS leftFlags is keyRange.LEFT_BOUND 93 93 PASS rightFlags is keyRange.RIGHT_BOUND 94 IDBKeyRange.bound(31,41,false,false)94 webkitIDBKeyRange.bound(31,41,false,false) 95 95 PASS keyRange.left is 31 96 96 PASS keyRange.right is 41 97 97 PASS leftFlags is keyRange.LEFT_BOUND 98 98 PASS rightFlags is keyRange.RIGHT_BOUND 99 IDBKeyRange.bound(32,42,false,true)99 webkitIDBKeyRange.bound(32,42,false,true) 100 100 PASS keyRange.left is 32 101 101 PASS keyRange.right is 42 102 102 PASS leftFlags is keyRange.LEFT_BOUND 103 103 PASS rightFlags is keyRange.RIGHT_OPEN | keyRange.RIGHT_BOUND 104 IDBKeyRange.bound(33,43,true,false)104 webkitIDBKeyRange.bound(33,43,true,false) 105 105 PASS keyRange.left is 33 106 106 PASS keyRange.right is 43 107 107 PASS leftFlags is keyRange.LEFT_OPEN | keyRange.LEFT_BOUND 108 108 PASS rightFlags is keyRange.RIGHT_BOUND 109 IDBKeyRange.bound(34,44,true,true)109 webkitIDBKeyRange.bound(34,44,true,true) 110 110 PASS keyRange.left is 34 111 111 PASS keyRange.right is 44 112 112 PASS leftFlags is keyRange.LEFT_OPEN | keyRange.LEFT_BOUND 113 113 PASS rightFlags is keyRange.RIGHT_OPEN | keyRange.RIGHT_BOUND 114 IDBKeyRange.bound('aaa','aba',false,false)114 webkitIDBKeyRange.bound('aaa','aba',false,false) 115 115 PASS keyRange.left is 'aaa' 116 116 PASS keyRange.right is 'aba' 117 117 PASS leftFlags is keyRange.LEFT_BOUND 118 118 PASS rightFlags is keyRange.RIGHT_BOUND 119 IDBKeyRange.bound('aab','abb',undefined,undefined)119 webkitIDBKeyRange.bound('aab','abb',undefined,undefined) 120 120 PASS keyRange.left is 'aab' 121 121 PASS keyRange.right is 'abb' 122 122 PASS leftFlags is keyRange.LEFT_BOUND 123 123 PASS rightFlags is keyRange.RIGHT_BOUND 124 IDBKeyRange.bound('aac','abc',false,false)124 webkitIDBKeyRange.bound('aac','abc',false,false) 125 125 PASS keyRange.left is 'aac' 126 126 PASS keyRange.right is 'abc' 127 127 PASS leftFlags is keyRange.LEFT_BOUND 128 128 PASS rightFlags is keyRange.RIGHT_BOUND 129 IDBKeyRange.bound('aad','abd',false,true)129 webkitIDBKeyRange.bound('aad','abd',false,true) 130 130 PASS keyRange.left is 'aad' 131 131 PASS keyRange.right is 'abd' 132 132 PASS leftFlags is keyRange.LEFT_BOUND 133 133 PASS rightFlags is keyRange.RIGHT_OPEN | keyRange.RIGHT_BOUND 134 IDBKeyRange.bound('aae','abe',true,false)134 webkitIDBKeyRange.bound('aae','abe',true,false) 135 135 PASS keyRange.left is 'aae' 136 136 PASS keyRange.right is 'abe' 137 137 PASS leftFlags is keyRange.LEFT_OPEN | keyRange.LEFT_BOUND 138 138 PASS rightFlags is keyRange.RIGHT_BOUND 139 IDBKeyRange.bound('aaf','abf',true,true)139 webkitIDBKeyRange.bound('aaf','abf',true,true) 140 140 PASS keyRange.left is 'aaf' 141 141 PASS keyRange.right is 'abf' -
trunk/LayoutTests/storage/indexeddb/keyrange.html
r67087 r69540 17 17 function checkSingleKeyRange(value) 18 18 { 19 keyRange = evalAndLog(" IDBKeyRange.only(" + value + ")");19 keyRange = evalAndLog("webkitIDBKeyRange.only(" + value + ")"); 20 20 shouldBe("keyRange.left", "" + value); 21 21 shouldBe("keyRange.right", "" + value); … … 25 25 function checkLeftBoundKeyRange(value, open) 26 26 { 27 keyRange = evalAndLog(" IDBKeyRange.leftBound(" + value + "," + open + ")");27 keyRange = evalAndLog("webkitIDBKeyRange.leftBound(" + value + "," + open + ")"); 28 28 shouldBe("keyRange.left", "" + value); 29 29 shouldBeNull("keyRange.right"); … … 33 33 function checkRightBoundKeyRange(value, open) 34 34 { 35 keyRange = evalAndLog(" IDBKeyRange.rightBound(" + value + "," + open + ")");35 keyRange = evalAndLog("webkitIDBKeyRange.rightBound(" + value + "," + open + ")"); 36 36 shouldBe("keyRange.right", "" + value); 37 37 shouldBeNull("keyRange.left"); … … 41 41 function checkBoundKeyRange(left, right, openLeft, openRight) 42 42 { 43 keyRange = evalAndLog(" IDBKeyRange.bound(" + left + "," + right + "," + openLeft + "," + openRight + ")");43 keyRange = evalAndLog("webkitIDBKeyRange.bound(" + left + "," + right + "," + openLeft + "," + openRight + ")"); 44 44 shouldBe("keyRange.left", "" + left); 45 45 shouldBe("keyRange.right", "" + right); … … 52 52 function test() 53 53 { 54 shouldBeTrue("'SINGLE' in IDBKeyRange");55 shouldBeTrue("'LEFT_OPEN' in IDBKeyRange");56 shouldBeTrue("'RIGHT_OPEN' in IDBKeyRange");57 shouldBeTrue("'LEFT_BOUND' in IDBKeyRange");58 shouldBeTrue("'RIGHT_BOUND' in IDBKeyRange");59 shouldBeFalse("'left' in IDBKeyRange");60 shouldBeFalse("'right' in IDBKeyRange");61 shouldBeFalse("'flags' in IDBKeyRange");62 shouldBeTrue("'only' in IDBKeyRange");63 shouldBeTrue("'leftBound' in IDBKeyRange");64 shouldBeTrue("'rightBound' in IDBKeyRange");65 shouldBeTrue("'bound' in IDBKeyRange");54 shouldBeTrue("'SINGLE' in webkitIDBKeyRange"); 55 shouldBeTrue("'LEFT_OPEN' in webkitIDBKeyRange"); 56 shouldBeTrue("'RIGHT_OPEN' in webkitIDBKeyRange"); 57 shouldBeTrue("'LEFT_BOUND' in webkitIDBKeyRange"); 58 shouldBeTrue("'RIGHT_BOUND' in webkitIDBKeyRange"); 59 shouldBeFalse("'left' in webkitIDBKeyRange"); 60 shouldBeFalse("'right' in webkitIDBKeyRange"); 61 shouldBeFalse("'flags' in webkitIDBKeyRange"); 62 shouldBeTrue("'only' in webkitIDBKeyRange"); 63 shouldBeTrue("'leftBound' in webkitIDBKeyRange"); 64 shouldBeTrue("'rightBound' in webkitIDBKeyRange"); 65 shouldBeTrue("'bound' in webkitIDBKeyRange"); 66 66 67 67 debug(""); 68 68 69 var instance = evalAndLog("instance = IDBKeyRange.only(1)");69 var instance = evalAndLog("instance = webkitIDBKeyRange.only(1)"); 70 70 shouldBeTrue("'SINGLE' in instance"); 71 71 shouldBeTrue("'LEFT_OPEN' in instance"); -
trunk/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
r69247 r69540 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true … … 132 132 PASS event.target.readyState is event.target.DONE 133 133 134 PASS event.code is IDBDatabaseException.UNKNOWN_ERR134 PASS event.code is webkitIDBDatabaseException.UNKNOWN_ERR 135 135 db.transaction() 136 136 store = transaction.objectStore('storeName') -
trunk/LayoutTests/storage/indexeddb/objectstore-basics.html
r69247 r69540 17 17 function test() 18 18 { 19 result = evalAndLog(" indexedDB.open('name', 'description')");19 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 20 20 verifyResult(result); 21 21 result.onsuccess = openSuccess; … … 160 160 verifyErrorEvent(event); 161 161 // FIXME: This error code needs to be specced. 162 shouldBe("event.code", " IDBDatabaseException.UNKNOWN_ERR");162 shouldBe("event.code", "webkitIDBDatabaseException.UNKNOWN_ERR"); 163 163 164 164 transaction = evalAndLog("db.transaction()"); -
trunk/LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt
r69121 r69540 4 4 5 5 6 indexedDB.open('someDB', 'some description')6 webkitIndexedDB.open('someDB', 'some description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/objectstore-cursor.html
r69121 r69540 29 29 function openDatabase() 30 30 { 31 result = evalAndLog(" indexedDB.open('someDB', 'some description')");31 result = evalAndLog("webkitIndexedDB.open('someDB', 'some description')"); 32 32 verifyResult(result); 33 33 result.onsuccess = setVersion; … … 159 159 var keyRange; 160 160 if (lower !== null && upper !== null) 161 keyRange = IDBKeyRange.bound(testData[lower], testData[upper], lowerIsOpen, upperIsOpen);161 keyRange = webkitIDBKeyRange.bound(testData[lower], testData[upper], lowerIsOpen, upperIsOpen); 162 162 else if (lower !== null) 163 keyRange = IDBKeyRange.leftBound(testData[lower], lowerIsOpen);163 keyRange = webkitIDBKeyRange.leftBound(testData[lower], lowerIsOpen); 164 164 else 165 keyRange = IDBKeyRange.rightBound(testData[upper], upperIsOpen);166 167 // FIXME: Should be IDBCursor.NEXT :IDBCursor.PREV, but we can't do that yet.165 keyRange = webkitIDBKeyRange.rightBound(testData[upper], upperIsOpen); 166 167 // FIXME: Should be webkitIDBCursor.NEXT : webkitIDBCursor.PREV, but we can't do that yet. 168 168 var request = objectStore.openCursor(keyRange, ascending ? 0 : 2); 169 169 request.onsuccess = cursorIteration; -
trunk/LayoutTests/storage/indexeddb/objectstore-removeobjectstore-expected.txt
r69121 r69540 1 Test IndexedDB's IDBObjectStore.removeObjectStore().1 Test IndexedDB's webkitIDBObjectStore.removeObjectStore(). 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/objectstore-removeobjectstore.html
r69121 r69540 11 11 <script> 12 12 13 description("Test IndexedDB's IDBObjectStore.removeObjectStore().");13 description("Test IndexedDB's webkitIDBObjectStore.removeObjectStore()."); 14 14 if (window.layoutTestController) 15 15 layoutTestController.waitUntilDone(); … … 17 17 function test() 18 18 { 19 result = evalAndLog(" indexedDB.open('name', 'description')");19 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 20 20 verifyResult(result); 21 21 result.onsuccess = startSetVersion; -
trunk/LayoutTests/storage/indexeddb/open-cursor-expected.txt
r69121 r69540 4 4 5 5 6 indexedDB.open('name', 'description')6 webkitIndexedDB.open('name', 'description') 7 7 PASS 'onsuccess' in result is true 8 8 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/open-cursor.html
r69121 r69540 26 26 { 27 27 debug("Opening an empty cursor."); 28 keyRange = IDBKeyRange.leftBound("InexistentKey");28 keyRange = webkitIDBKeyRange.leftBound("InexistentKey"); 29 29 result = evalAndLog("objectStore.openCursor(keyRange)"); 30 30 verifyResult(result); … … 48 48 { 49 49 debug("Opening cursor"); 50 keyRange = IDBKeyRange.leftBound("myKey");50 keyRange = webkitIDBKeyRange.leftBound("myKey"); 51 51 result = evalAndLog("event.source.openCursor(keyRange)"); 52 52 verifyResult(result); … … 88 88 function test() 89 89 { 90 result = evalAndLog(" indexedDB.open('name', 'description')");90 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 91 91 verifyResult(result); 92 92 result.onsuccess = openSuccess; -
trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt
r69247 r69540 4 4 5 5 6 PASS ' indexedDB' in window is true7 PASS indexedDB == null is false8 indexedDB.open('name', 'description')6 PASS 'webkitIndexedDB' in window is true 7 PASS webkitIndexedDB == null is false 8 webkitIndexedDB.open('name', 'description') 9 9 PASS 'onsuccess' in result is true 10 10 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/transaction-basics.html
r69247 r69540 17 17 function test() 18 18 { 19 shouldBeTrue("' indexedDB' in window");20 shouldBeFalse(" indexedDB == null");21 22 result = evalAndLog(" indexedDB.open('name', 'description')");19 shouldBeTrue("'webkitIndexedDB' in window"); 20 shouldBeFalse("webkitIndexedDB == null"); 21 22 result = evalAndLog("webkitIndexedDB.open('name', 'description')"); 23 23 verifyResult(result); 24 24 result.onsuccess = openSuccess; -
trunk/WebCore/ChangeLog
r69539 r69540 1 2010-10-11 Andrei Popescu <andreip@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 The names of IndexedDB-specific attributes of DOMWindow should be prefixed with 'webkit'. 6 https://bugs.webkit.org/show_bug.cgi?id=47508 7 8 * bindings/generic/RuntimeEnabledFeatures.h: 9 (WebCore::RuntimeEnabledFeatures::setWebkitIndexedDBEnabled): 10 (WebCore::RuntimeEnabledFeatures::webkitIndexedDBEnabled): 11 (WebCore::RuntimeEnabledFeatures::webkitIDBCursorEnabled): 12 (WebCore::RuntimeEnabledFeatures::webkitIDBDatabaseEnabled): 13 (WebCore::RuntimeEnabledFeatures::webkitIDBDatabaseErrorEnabled): 14 (WebCore::RuntimeEnabledFeatures::webkitIDBDatabaseExceptionEnabled): 15 (WebCore::RuntimeEnabledFeatures::webkitIDBErrorEventEnabled): 16 (WebCore::RuntimeEnabledFeatures::webkitIDBEventEnabled): 17 (WebCore::RuntimeEnabledFeatures::webkitIDBFactoryEnabled): 18 (WebCore::RuntimeEnabledFeatures::webkitIDBIndexEnabled): 19 (WebCore::RuntimeEnabledFeatures::webkitIDBKeyRangeEnabled): 20 (WebCore::RuntimeEnabledFeatures::webkitIDBObjectStoreEnabled): 21 (WebCore::RuntimeEnabledFeatures::webkitIDBRequestEnabled): 22 (WebCore::RuntimeEnabledFeatures::webkitIDBSuccessEventEnabled): 23 (WebCore::RuntimeEnabledFeatures::webkitIDBTransactionEnabled): 24 * page/DOMWindow.cpp: 25 (WebCore::DOMWindow::webkitIndexedDB): 26 * page/DOMWindow.h: 27 * page/DOMWindow.idl: 28 1 29 2010-10-11 Sam Weinig <sam@webkit.org> 2 30 -
trunk/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r69249 r69540 55 55 static bool geolocationEnabled() { return isGeolocationEnabled; } 56 56 57 static void set IndexedDBEnabled(bool isEnabled) { isIndexedDBEnabled = isEnabled; }58 static bool indexedDBEnabled() { return isIndexedDBEnabled; }59 static bool iDBCursorEnabled() { return isIndexedDBEnabled; }60 static bool iDBDatabaseEnabled() { return isIndexedDBEnabled; }61 static bool iDBDatabaseErrorEnabled() { return isIndexedDBEnabled; }62 static bool iDBDatabaseExceptionEnabled() { return isIndexedDBEnabled; }63 static bool iDBErrorEventEnabled() { return isIndexedDBEnabled; }64 static bool iDBEventEnabled() { return isIndexedDBEnabled; }65 static bool iDBFactoryEnabled() { return isIndexedDBEnabled; }66 static bool iDBIndexEnabled() { return isIndexedDBEnabled; }67 static bool iDBKeyRangeEnabled() { return isIndexedDBEnabled; }68 static bool iDBObjectStoreEnabled() { return isIndexedDBEnabled; }69 static bool iDBRequestEnabled() { return isIndexedDBEnabled; }70 static bool iDBSuccessEventEnabled() { return isIndexedDBEnabled; }71 static bool iDBTransactionEnabled() { return isIndexedDBEnabled; }57 static void setWebkitIndexedDBEnabled(bool isEnabled) { isIndexedDBEnabled = isEnabled; } 58 static bool webkitIndexedDBEnabled() { return isIndexedDBEnabled; } 59 static bool webkitIDBCursorEnabled() { return isIndexedDBEnabled; } 60 static bool webkitIDBDatabaseEnabled() { return isIndexedDBEnabled; } 61 static bool webkitIDBDatabaseErrorEnabled() { return isIndexedDBEnabled; } 62 static bool webkitIDBDatabaseExceptionEnabled() { return isIndexedDBEnabled; } 63 static bool webkitIDBErrorEventEnabled() { return isIndexedDBEnabled; } 64 static bool webkitIDBEventEnabled() { return isIndexedDBEnabled; } 65 static bool webkitIDBFactoryEnabled() { return isIndexedDBEnabled; } 66 static bool webkitIDBIndexEnabled() { return isIndexedDBEnabled; } 67 static bool webkitIDBKeyRangeEnabled() { return isIndexedDBEnabled; } 68 static bool webkitIDBObjectStoreEnabled() { return isIndexedDBEnabled; } 69 static bool webkitIDBRequestEnabled() { return isIndexedDBEnabled; } 70 static bool webkitIDBSuccessEventEnabled() { return isIndexedDBEnabled; } 71 static bool webkitIDBTransactionEnabled() { return isIndexedDBEnabled; } 72 72 73 73 #if ENABLE(VIDEO) -
trunk/WebCore/page/DOMWindow.cpp
r69406 r69540 701 701 702 702 #if ENABLE(INDEXED_DATABASE) 703 IDBFactory* DOMWindow:: indexedDB() const703 IDBFactory* DOMWindow::webkitIndexedDB() const 704 704 { 705 705 if (m_idbFactory) -
trunk/WebCore/page/DOMWindow.h
r69283 r69540 235 235 236 236 #if ENABLE(INDEXED_DATABASE) 237 IDBFactory* indexedDB() const;237 IDBFactory* webkitIndexedDB() const; 238 238 #endif 239 239 -
trunk/WebCore/page/DOMWindow.idl
r69249 r69540 174 174 #endif 175 175 #if defined(ENABLE_INDEXED_DATABASE) && ENABLE_INDEXED_DATABASE 176 readonly attribute [EnabledAtRuntime] IDBFactory indexedDB;177 178 attribute [EnabledAtRuntime] IDBCursorConstructor IDBCursor;179 attribute [EnabledAtRuntime] IDBDatabaseConstructor IDBDatabase;180 attribute [EnabledAtRuntime] IDBDatabaseErrorConstructor IDBDatabaseError;181 attribute [EnabledAtRuntime] IDBDatabaseExceptionConstructor IDBDatabaseException;182 attribute [EnabledAtRuntime] IDBErrorEventConstructor IDBErrorEvent;183 attribute [EnabledAtRuntime] IDBEventConstructor IDBEvent;184 attribute [EnabledAtRuntime] IDBFactoryConstructor IDBFactory;185 attribute [EnabledAtRuntime] IDBIndexConstructor IDBIndex;186 attribute [EnabledAtRuntime] IDBKeyRangeConstructor IDBKeyRange;187 attribute [EnabledAtRuntime] IDBObjectStoreConstructor IDBObjectStore;188 attribute [EnabledAtRuntime] IDBRequestConstructor IDBRequest;189 attribute [EnabledAtRuntime] IDBSuccessEventConstructor IDBSuccessEvent;190 attribute [EnabledAtRuntime] IDBTransactionConstructor IDBTransaction;176 readonly attribute [EnabledAtRuntime] IDBFactory webkitIndexedDB; 177 178 attribute [EnabledAtRuntime] IDBCursorConstructor webkitIDBCursor; 179 attribute [EnabledAtRuntime] IDBDatabaseConstructor webkitIDBDatabase; 180 attribute [EnabledAtRuntime] IDBDatabaseErrorConstructor webkitIDBDatabaseError; 181 attribute [EnabledAtRuntime] IDBDatabaseExceptionConstructor webkitIDBDatabaseException; 182 attribute [EnabledAtRuntime] IDBErrorEventConstructor webkitIDBErrorEvent; 183 attribute [EnabledAtRuntime] IDBEventConstructor webkitIDBEvent; 184 attribute [EnabledAtRuntime] IDBFactoryConstructor webkitIDBFactory; 185 attribute [EnabledAtRuntime] IDBIndexConstructor webkitIDBIndex; 186 attribute [EnabledAtRuntime] IDBKeyRangeConstructor webkitIDBKeyRange; 187 attribute [EnabledAtRuntime] IDBObjectStoreConstructor webkitIDBObjectStore; 188 attribute [EnabledAtRuntime] IDBRequestConstructor webkitIDBRequest; 189 attribute [EnabledAtRuntime] IDBSuccessEventConstructor webkitIDBSuccessEvent; 190 attribute [EnabledAtRuntime] IDBTransactionConstructor webkitIDBTransaction; 191 191 #endif 192 192 #if defined(ENABLE_FILE_SYSTEM) && ENABLE_FILE_SYSTEM -
trunk/WebKit/chromium/ChangeLog
r69537 r69540 1 2010-10-11 Andrei Popescu <andreip@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 The names of IndexedDB-specific attributes of DOMWindow should be prefixed with 'webkit'. 6 https://bugs.webkit.org/show_bug.cgi?id=47508 7 8 * src/WebRuntimeFeatures.cpp: 9 (WebKit::WebRuntimeFeatures::enableIndexedDatabase): 10 (WebKit::WebRuntimeFeatures::isIndexedDatabaseEnabled): 11 1 12 2010-10-11 Tony Chang <tony@chromium.org> 2 13 -
trunk/WebKit/chromium/src/WebRuntimeFeatures.cpp
r66570 r69540 172 172 { 173 173 #if ENABLE(INDEXED_DATABASE) 174 RuntimeEnabledFeatures::set IndexedDBEnabled(enable);174 RuntimeEnabledFeatures::setWebkitIndexedDBEnabled(enable); 175 175 #endif 176 176 } … … 179 179 { 180 180 #if ENABLE(INDEXED_DATABASE) 181 return RuntimeEnabledFeatures:: indexedDBEnabled();181 return RuntimeEnabledFeatures::webkitIndexedDBEnabled(); 182 182 #else 183 183 return false;
Note: See TracChangeset
for help on using the changeset viewer.