Changeset 89506 in webkit
- Timestamp:
- Jun 22, 2011, 5:57:42 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r89503 r89506 1 2011-06-22 Mark Pilgrim <pilgrim@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 IndexedDB open (database) should NOT throw if name is null 6 https://bugs.webkit.org/show_bug.cgi?id=63110 7 8 * storage/indexeddb/database-name-undefined-expected.txt: 9 * storage/indexeddb/database-name-undefined.html: removed some code here 10 because it's duplicated in the mozilla/open-database-null-name test 11 * storage/indexeddb/mozilla/open-database-null-name-expected.txt: 12 * storage/indexeddb/mozilla/open-database-null-name.html: fixed expected 13 behavior (db.name ends up as four-character string "null") 14 1 15 2011-06-22 Nate Chapin <japhet@chromium.org> 2 16 -
trunk/LayoutTests/storage/indexeddb/database-name-undefined-expected.txt
r89378 r89506 13 13 PASS IDBKeyRange == null is false 14 14 PASS indexedDB.open(); threw exception TypeError: Not enough arguments. 15 PASS indexedDB.open(null); threw exception Error: NON_TRANSIENT_ERR: DOM IDBDatabase Exception 2.16 15 PASS successfullyParsed is true 17 16 -
trunk/LayoutTests/storage/indexeddb/database-name-undefined.html
r89378 r89506 28 28 29 29 shouldThrow("indexedDB.open();"); 30 shouldThrow("indexedDB.open(null);");31 30 done(); 32 31 } -
trunk/LayoutTests/storage/indexeddb/mozilla/open-database-null-name-expected.txt
r85770 r89506 1 Test IndexedDB: should throw when opening a database with a null name1 Test IndexedDB: should NOT throw when opening a database with a null name 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 10 10 IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction; 11 11 PASS IDBTransaction == null is false 12 Expecting exception from indexedDB.open(null, description) 13 PASS Exception was thrown. 14 PASS code is IDBDatabaseException.NON_TRANSIENT_ERR12 indexedDB.open(null); 13 db = event.target.result 14 PASS db.name is 'null' 15 15 PASS successfullyParsed is true 16 16 -
trunk/LayoutTests/storage/indexeddb/mozilla/open-database-null-name.html
r85770 r89506 18 18 <script> 19 19 20 description("Test IndexedDB: should throw when opening a database with a null name");20 description("Test IndexedDB: should NOT throw when opening a database with a null name"); 21 21 if (window.layoutTestController) 22 22 layoutTestController.waitUntilDone(); … … 32 32 33 33 description = "My Test Database"; 34 evalAndExpectException("indexedDB.open(null, description)", "IDBDatabaseException.NON_TRANSIENT_ERR"); 34 request = evalAndLog("indexedDB.open(null);"); 35 request.onsuccess = openSuccess; 36 request.onerror = unexpectedErrorCallback; 37 } 38 39 function openSuccess() 40 { 41 db = evalAndLog("db = event.target.result"); 42 shouldBe("db.name", "'null'"); 35 43 done(); 36 44 } -
trunk/Source/WebCore/ChangeLog
r89505 r89506 1 2011-06-22 Mark Pilgrim <pilgrim@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 IndexedDB open (database) should NOT throw if name is null 6 https://bugs.webkit.org/show_bug.cgi?id=63110 7 8 * storage/IDBFactory.idl: remove ConvertNullToNullString flag on 9 name argument, let IDL code generator stringify null value to "null" 10 1 11 2011-06-22 Ryosuke Niwa <rniwa@webkit.org> 2 12 -
trunk/Source/WebCore/storage/IDBFactory.idl
r89378 r89506 29 29 Conditional=INDEXED_DATABASE 30 30 ] IDBFactory { 31 [CallWith=ScriptExecutionContext] IDBRequest open(in [ConvertNullToNullString]DOMString name)31 [CallWith=ScriptExecutionContext] IDBRequest open(in DOMString name) 32 32 raises (IDBDatabaseException); 33 33 };
Note:
See TracChangeset
for help on using the changeset viewer.