diff options
author | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-20 23:06:40 +0000 |
---|---|---|
committer | jsbell@chromium.org <jsbell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-20 23:06:40 +0000 |
commit | cd261a9235a5343b9e72828422703907febe7eeb (patch) | |
tree | a4bccc5f4451b59816929e2374314c339baf819f /content | |
parent | c22418befbc72b25c7ee2ca8e6fe0a7c9344437e (diff) | |
download | chromium_src-cd261a9235a5343b9e72828422703907febe7eeb.zip chromium_src-cd261a9235a5343b9e72828422703907febe7eeb.tar.gz chromium_src-cd261a9235a5343b9e72828422703907febe7eeb.tar.bz2 |
Remove references to IDBDatabaseException and IDBRequest.errorCode
That interface/attribute were removed from the IndexedDB spec a year ago, and
are being removed from the WebKit implementation in wkbug.com/102514. Update
tests to remove references, and update value checks for error codes (disabled
until webkit patch lands/rolls).
BUG=129766
Review URL: https://chromiumcodereview.appspot.com/11415083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/test/data/indexeddb/key_types_test.js | 5 | ||||
-rw-r--r-- | content/test/data/indexeddb/object_store_test.js | 2 | ||||
-rw-r--r-- | content/test/data/indexeddb/value_size_test.js | 9 |
3 files changed, 8 insertions, 8 deletions
diff --git a/content/test/data/indexeddb/key_types_test.js b/content/test/data/indexeddb/key_types_test.js index 63ea776..7f0f8e1 100644 --- a/content/test/data/indexeddb/key_types_test.js +++ b/content/test/data/indexeddb/key_types_test.js @@ -4,8 +4,6 @@ window.indexedDB = window.indexedDB || window.webkitIndexedDB; window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction; -window.IDBDatabaseException = window.IDBDatabaseException || - window.webkitIDBDatabaseException; function test() { indexedDBTest(prepareDatabase, testValidKeys); @@ -143,7 +141,8 @@ function testInvalidKeys() { return; } catch (e) { window.ex = e; - shouldBe("ex.code", "IDBDatabaseException.DATA_ERR"); + // TODO(jsbell): Uncomment when wkbug.com/102514 has landed/rolled. + //shouldBe("ex.code", "0"); shouldBe("ex.name", "'DataError'"); } }); diff --git a/content/test/data/indexeddb/object_store_test.js b/content/test/data/indexeddb/object_store_test.js index d067451..ef663de 100644 --- a/content/test/data/indexeddb/object_store_test.js +++ b/content/test/data/indexeddb/object_store_test.js @@ -66,8 +66,6 @@ function moreDataAddedSuccess() function addWithSameKeyFailed() { debug('Adding a record with same key failed'); - shouldBe("event.target.errorCode", - "webkitIDBDatabaseException.CONSTRAINT_ERR"); shouldBe("event.target.error.name", "'ConstraintError'"); event.preventDefault(); diff --git a/content/test/data/indexeddb/value_size_test.js b/content/test/data/indexeddb/value_size_test.js index f1a8a5f..78aff59 100644 --- a/content/test/data/indexeddb/value_size_test.js +++ b/content/test/data/indexeddb/value_size_test.js @@ -97,7 +97,8 @@ function testOverLimit() } catch (e) { debug('Exception (expected)'); ex = e; - shouldBe("ex.code", "IDBDatabaseException.DATA_ERR"); + // TODO(jsbell): Uncomment when wkbug.com/102514 has landed/rolled. + //shouldBe("ex.code", "0"); shouldBe("ex.name", "'DataError'"); } @@ -109,7 +110,8 @@ function testOverLimit() } catch (e) { debug('Exception (expected)'); ex = e; - shouldBe("ex.code", "IDBDatabaseException.DATA_ERR"); + // TODO(jsbell): Uncomment when wkbug.com/102514 has landed/rolled. + //shouldBe("ex.code", "0"); shouldBe("ex.name", "'DataError'"); } @@ -125,7 +127,8 @@ function testOverLimit() } catch (e) { debug('Exception (expected)'); ex = e; - shouldBe("ex.code", "IDBDatabaseException.DATA_ERR"); + // TODO(jsbell): Uncomment when wkbug.com/102514 has landed/rolled. + //shouldBe("ex.code", "0"); shouldBe("ex.name", "'DataError'"); transaction.abort(); |