<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[194595] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/194595">194595</a></dd>
<dt>Author</dt> <dd>beidson@apple.com</dd>
<dt>Date</dt> <dd>2016-01-05 11:57:07 -0800 (Tue, 05 Jan 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Modern IDB: Error message updates for two failing tests.
https://bugs.webkit.org/show_bug.cgi?id=152735

Reviewed by Alex Christensen.

Source/WebCore:

No new tests (Covered by existing tests).

Add error messages for various operations on deleted objects.

* Modules/indexeddb/client/IDBCursorImpl.cpp:
(WebCore::IDBClient::IDBCursor::update):
(WebCore::IDBClient::IDBCursor::advance):
(WebCore::IDBClient::IDBCursor::continueFunction):
(WebCore::IDBClient::IDBCursor::deleteFunction):

* Modules/indexeddb/client/IDBIndexImpl.cpp:
(WebCore::IDBClient::IDBIndex::openCursor):
(WebCore::IDBClient::IDBIndex::doCount):
(WebCore::IDBClient::IDBIndex::openKeyCursor):
(WebCore::IDBClient::IDBIndex::doGet):
(WebCore::IDBClient::IDBIndex::doGetKey):

* Modules/indexeddb/client/IDBObjectStoreImpl.cpp:
(WebCore::IDBClient::IDBObjectStore::openCursor):
(WebCore::IDBClient::IDBObjectStore::get):
(WebCore::IDBClient::IDBObjectStore::putOrAdd):
(WebCore::IDBClient::IDBObjectStore::deleteFunction):
(WebCore::IDBClient::IDBObjectStore::clear):
(WebCore::IDBClient::IDBObjectStore::createIndex):
(WebCore::IDBClient::IDBObjectStore::index):
(WebCore::IDBClient::IDBObjectStore::deleteIndex):
(WebCore::IDBClient::IDBObjectStore::doCount):

* bindings/js/JSIDBObjectStoreCustom.cpp:
(WebCore::JSIDBObjectStore::createIndex):

LayoutTests:

- Update results to accommodate new error messages.
- openKeyCursor on IDBObjectStore has been removed, so remove that from the results.
- &quot;undefined&quot; and &quot;null&quot; are invalid keys, so update the keypath-basics test to reflect this.

* platform/mac-wk1/TestExpectations:
* storage/indexeddb/deleted-objects-expected.txt:
* storage/indexeddb/keypath-basics-expected.txt:
* storage/indexeddb/resources/keypath-basics.js:
* storage/indexeddb/transaction-basics-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk1TestExpectations">trunk/LayoutTests/platform/mac-wk1/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsstorageindexeddbdeletedobjectsexpectedtxt">trunk/LayoutTests/storage/indexeddb/deleted-objects-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstorageindexeddbkeypathbasicsexpectedtxt">trunk/LayoutTests/storage/indexeddb/keypath-basics-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstorageindexeddbresourceskeypathbasicsjs">trunk/LayoutTests/storage/indexeddb/resources/keypath-basics.js</a></li>
<li><a href="#trunkLayoutTestsstorageindexeddbtransactionbasicsexpectedtxt">trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBCursorImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBIndexImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplcpp">trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSIDBObjectStoreCustomcpp">trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/ChangeLog        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -1,5 +1,22 @@
</span><span class="cx"> 2016-01-05  Brady Eidson  &lt;beidson@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Modern IDB: Error message updates for two failing tests.
+        https://bugs.webkit.org/show_bug.cgi?id=152735
+
+        Reviewed by Alex Christensen.
+
+        - Update results to accommodate new error messages.
+        - openKeyCursor on IDBObjectStore has been removed, so remove that from the results.
+        - &quot;undefined&quot; and &quot;null&quot; are invalid keys, so update the keypath-basics test to reflect this.
+        
+        * platform/mac-wk1/TestExpectations:
+        * storage/indexeddb/deleted-objects-expected.txt:
+        * storage/indexeddb/keypath-basics-expected.txt:
+        * storage/indexeddb/resources/keypath-basics.js:
+        * storage/indexeddb/transaction-basics-expected.txt:
+
+2016-01-05  Brady Eidson  &lt;beidson@apple.com&gt;
+
</ins><span class="cx">         IndexedDB TestExpectations gardening.
</span><span class="cx"> 
</span><span class="cx">         Reviewed by Alex Christensen.
</span></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk1TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk1/TestExpectations        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -85,10 +85,6 @@
</span><span class="cx"> storage/indexeddb/intversion-long-queue.html [ Skip ]
</span><span class="cx"> storage/indexeddb/transaction-starvation.html [ Skip ]
</span><span class="cx"> 
</span><del>-# IDB tests with text failures related to error message differences
-storage/indexeddb/deleted-objects.html [ Failure ]
-storage/indexeddb/keypath-basics.html [ Failure ]
-
</del><span class="cx"> # IDB tests with other text failures
</span><span class="cx"> fast/history/page-cache-indexed-closed-db.html [ Failure ]
</span><span class="cx"> storage/indexeddb/intversion-gated-on-delete.html [ Failure ]
</span></span></pre></div>
<a id="trunkLayoutTestsstorageindexeddbdeletedobjectsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/storage/indexeddb/deleted-objects-expected.txt (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/storage/indexeddb/deleted-objects-expected.txt        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/storage/indexeddb/deleted-objects-expected.txt        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -17,12 +17,12 @@
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="cx"> PASS ename is 'InvalidStateError'
</span><del>-Exception message: Failed to execute 'put' on 'IDBObjectStore': The object store has been deleted.
</del><ins>+Exception message: Failed to store record in an IDBObjectStore: The object store has been deleted.
</ins><span class="cx"> Expecting exception from deletedStore.add(0, 0)
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="cx"> PASS ename is 'InvalidStateError'
</span><del>-Exception message: Failed to execute 'add' on 'IDBObjectStore': The object store has been deleted.
</del><ins>+Exception message: Failed to store record in an IDBObjectStore: The object store has been deleted.
</ins><span class="cx"> Expecting exception from deletedStore.delete(0)
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="lines">@@ -73,31 +73,6 @@
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="cx"> PASS ename is 'InvalidStateError'
</span><span class="cx"> Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The object store has been deleted.
</span><del>-Expecting exception from deletedStore.openKeyCursor()
-PASS Exception was thrown.
-PASS code is DOMException.INVALID_STATE_ERR
-PASS ename is 'InvalidStateError'
-Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The object store has been deleted.
-Expecting exception from deletedStore.openKeyCursor(0)
-PASS Exception was thrown.
-PASS code is DOMException.INVALID_STATE_ERR
-PASS ename is 'InvalidStateError'
-Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The object store has been deleted.
-Expecting exception from deletedStore.openKeyCursor(0, 'next')
-PASS Exception was thrown.
-PASS code is DOMException.INVALID_STATE_ERR
-PASS ename is 'InvalidStateError'
-Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The object store has been deleted.
-Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0))
-PASS Exception was thrown.
-PASS code is DOMException.INVALID_STATE_ERR
-PASS ename is 'InvalidStateError'
-Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The object store has been deleted.
-Expecting exception from deletedStore.openKeyCursor(IDBKeyRange.only(0), 'next')
-PASS Exception was thrown.
-PASS code is DOMException.INVALID_STATE_ERR
-PASS ename is 'InvalidStateError'
-Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The object store has been deleted.
</del><span class="cx"> Expecting exception from deletedStore.createIndex('name', 'path')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span></span></pre></div>
<a id="trunkLayoutTestsstorageindexeddbkeypathbasicsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/storage/indexeddb/keypath-basics-expected.txt (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/storage/indexeddb/keypath-basics-expected.txt        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/storage/indexeddb/keypath-basics-expected.txt        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -11,16 +11,6 @@
</span><span class="cx"> store = db.createObjectStore('name')
</span><span class="cx"> PASS store.keyPath is null
</span><span class="cx"> Deleted all object stores.
</span><del>-store = db.createObjectStore('name', {keyPath: null})
-PASS store.keyPath is null
-index = store.createIndex('name', null)
-PASS index.keyPath is 'null'
-Deleted all object stores.
-store = db.createObjectStore('name', {keyPath: undefined})
-PASS store.keyPath is null
-index = store.createIndex('name', undefined)
-PASS index.keyPath is 'undefined'
-Deleted all object stores.
</del><span class="cx"> store = db.createObjectStore('name', {keyPath: ''})
</span><span class="cx"> PASS store.keyPath is ''
</span><span class="cx"> index = store.createIndex('name', '')
</span><span class="lines">@@ -154,514 +144,524 @@
</span><span class="cx"> Expecting exception from store = db.createObjectStore('storeName', {autoIncrement: true, keyPath: ''})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_ACCESS_ERR
</span><del>-Exception message: InvalidAccessError: DOM IDBDatabase Exception 15
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from store = db.createObjectStore('storeName', {autoIncrement: true, keyPath: ['a']})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_ACCESS_ERR
</span><del>-Exception message: InvalidAccessError: DOM IDBDatabase Exception 15
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from store = db.createObjectStore('storeName', {autoIncrement: true, keyPath: ['']})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_ACCESS_ERR
</span><del>-Exception message: InvalidAccessError: DOM IDBDatabase Exception 15
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The autoIncrement option was set but the keyPath option was empty or an array.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> 
</span><span class="cx"> Key paths which are never valid:
</span><ins>+Expecting exception from db.createObjectStore('name').createIndex('name', null)
+PASS Exception was thrown.
+PASS code is DOMException.SYNTAX_ERR
+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
+Deleted all object stores.
+Expecting exception from db.createObjectStore('name').createIndex('name', undefined)
+PASS Exception was thrown.
+PASS code is DOMException.SYNTAX_ERR
+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
+Deleted all object stores.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: ' '})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', ' ')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo '})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo ')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo bar'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo bar')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo. bar'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo. bar')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo .bar'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo .bar')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo..bar'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo..bar')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '+foo'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '+foo')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: 'foo%'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', 'foo%')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '1'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '1')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '1.0'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '1.0')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: []})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', [])
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0300'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0300')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0903'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0903')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0300'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0300')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u203F'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u203F')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u200C'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u200C')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u200D'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u200D')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u002D'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u002D')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0028'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0028')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0029'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0029')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00AB'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00AB')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00BB'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00BB')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0021'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0021')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u002B'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u002B')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00A2'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00A2')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u005E'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u005E')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00A6'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00A6')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00A0'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00A0')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u2028'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u2028')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u2029'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u2029')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u0000'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u0000')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\u00AD'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\u00AD')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\uD800'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\uD800')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\uE000'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\uE000')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\uFFFE'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\uFFFE')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '\uFFFF'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '\uFFFF')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u002D'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u002D')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u0028'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u0028')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u0029'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u0029')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00AB'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00AB')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00BB'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00BB')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u0021'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u0021')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u002B'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u002B')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00A2'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00A2')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u005E'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u005E')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00A6'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00A6')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00A0'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00A0')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u2028'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u2028')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u2029'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u2029')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u0000'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u0000')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\u00AD'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\u00AD')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\uD800'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\uD800')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\uE000'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\uE000')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\uFFFE'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\uFFFE')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> Expecting exception from db.createObjectStore('name', {keyPath: '_\uFFFF'})
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createObjectStore' on 'IDBDatabase': The keyPath option is not a valid key path.
</ins><span class="cx"> Expecting exception from db.createObjectStore('name').createIndex('name', '_\uFFFF')
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.SYNTAX_ERR
</span><del>-Exception message: SyntaxError: DOM IDBDatabase Exception 12
</del><ins>+Exception message: Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.
</ins><span class="cx"> Deleted all object stores.
</span><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsstorageindexeddbresourceskeypathbasicsjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/storage/indexeddb/resources/keypath-basics.js (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/storage/indexeddb/resources/keypath-basics.js        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/storage/indexeddb/resources/keypath-basics.js        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -15,8 +15,6 @@
</span><span class="cx">     deleteAllObjectStores(db);
</span><span class="cx"> 
</span><span class="cx">     testKeyPaths = [
</span><del>-        { keyPath: &quot;null&quot;, storeExpected: &quot;null&quot;, indexExpected: &quot;'null'&quot; },
-        { keyPath: &quot;undefined&quot;, storeExpected: &quot;null&quot;, indexExpected: &quot;'undefined'&quot; },
</del><span class="cx">         { keyPath: &quot;''&quot; },
</span><span class="cx">         { keyPath: &quot;'foo'&quot; },
</span><span class="cx">         { keyPath: &quot;'foo.bar.baz'&quot; },
</span><span class="lines">@@ -78,6 +76,12 @@
</span><span class="cx"> 
</span><span class="cx">     debug(&quot;&quot;);
</span><span class="cx">     debug(&quot;Key paths which are never valid:&quot;);
</span><ins>+
+    evalAndExpectException(&quot;db.createObjectStore('name').createIndex('name', null)&quot;, &quot;DOMException.SYNTAX_ERR&quot;);
+    deleteAllObjectStores(db);
+    evalAndExpectException(&quot;db.createObjectStore('name').createIndex('name', undefined)&quot;, &quot;DOMException.SYNTAX_ERR&quot;);
+    deleteAllObjectStores(db);
+    
</ins><span class="cx">     testKeyPaths = [
</span><span class="cx">         &quot;' '&quot;,
</span><span class="cx">         &quot;'foo '&quot;,
</span><span class="lines">@@ -141,6 +145,7 @@
</span><span class="cx">         &quot;'_\\uFFFE'&quot;, // Special
</span><span class="cx">         &quot;'_\\uFFFF'&quot;  // Special
</span><span class="cx">     ];
</span><ins>+   
</ins><span class="cx">     testKeyPaths.forEach(function (keyPath) {
</span><span class="cx">         evalAndExpectException(&quot;db.createObjectStore('name', {keyPath: &quot; + keyPath + &quot;})&quot;, &quot;DOMException.SYNTAX_ERR&quot;);
</span><span class="cx">         evalAndExpectException(&quot;db.createObjectStore('name').createIndex('name', &quot; + keyPath + &quot;)&quot;, &quot;DOMException.SYNTAX_ERR&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsstorageindexeddbtransactionbasicsexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="cx"> PASS ename is 'InvalidStateError'
</span><del>-Exception message: An operation was called on an object on which it is not allowed or at a time when it is not allowed.
</del><ins>+Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The object store has been deleted.
</ins><span class="cx"> 
</span><span class="cx"> testSetVersionAbort2():
</span><span class="cx"> PASS self.db.objectStoreNames is []
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> PASS Exception was thrown.
</span><span class="cx"> PASS code is DOMException.INVALID_STATE_ERR
</span><span class="cx"> PASS ename is 'InvalidStateError'
</span><del>-Exception message: An operation was called on an object on which it is not allowed or at a time when it is not allowed.
</del><ins>+Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The object store has been deleted.
</ins><span class="cx"> store = db.createObjectStore('storeFail', null)
</span><span class="cx"> index = store.createIndex('indexFail', 'x')
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/Source/WebCore/ChangeLog        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -1,3 +1,41 @@
</span><ins>+2016-01-05  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Modern IDB: Error message updates for two failing tests.
+        https://bugs.webkit.org/show_bug.cgi?id=152735
+
+        Reviewed by Alex Christensen.
+
+        No new tests (Covered by existing tests).
+
+        Add error messages for various operations on deleted objects.
+        
+        * Modules/indexeddb/client/IDBCursorImpl.cpp:
+        (WebCore::IDBClient::IDBCursor::update):
+        (WebCore::IDBClient::IDBCursor::advance):
+        (WebCore::IDBClient::IDBCursor::continueFunction):
+        (WebCore::IDBClient::IDBCursor::deleteFunction):
+        
+        * Modules/indexeddb/client/IDBIndexImpl.cpp:
+        (WebCore::IDBClient::IDBIndex::openCursor):
+        (WebCore::IDBClient::IDBIndex::doCount):
+        (WebCore::IDBClient::IDBIndex::openKeyCursor):
+        (WebCore::IDBClient::IDBIndex::doGet):
+        (WebCore::IDBClient::IDBIndex::doGetKey):
+        
+        * Modules/indexeddb/client/IDBObjectStoreImpl.cpp:
+        (WebCore::IDBClient::IDBObjectStore::openCursor):
+        (WebCore::IDBClient::IDBObjectStore::get):
+        (WebCore::IDBClient::IDBObjectStore::putOrAdd):
+        (WebCore::IDBClient::IDBObjectStore::deleteFunction):
+        (WebCore::IDBClient::IDBObjectStore::clear):
+        (WebCore::IDBClient::IDBObjectStore::createIndex):
+        (WebCore::IDBClient::IDBObjectStore::index):
+        (WebCore::IDBClient::IDBObjectStore::deleteIndex):
+        (WebCore::IDBClient::IDBObjectStore::doCount):
+
+        * bindings/js/JSIDBObjectStoreCustom.cpp:
+        (WebCore::JSIDBObjectStore::createIndex):
+
</ins><span class="cx"> 2016-01-05  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Avoid NULL deference in Page::updateIsPlayingMedia
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBCursorImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBCursorImpl.cpp        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -116,6 +116,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (sourcesDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'update' on 'IDBCursor': The cursor's source or effective object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -182,6 +183,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (sourcesDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'advance' on 'IDBCursor': The cursor's source or effective object store has been deleted.&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -238,6 +240,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (sourcesDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'continue' on 'IDBCursor': The cursor's source or effective object store has been deleted.&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -293,6 +296,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (sourcesDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'delete' on 'IDBCursor': The cursor's source or effective object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBIndexImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -92,6 +92,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted || m_objectStore-&gt;isDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'openCursor' on 'IDBIndex': The index or its object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -178,6 +179,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (m_deleted || m_objectStore-&gt;isDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'count' on 'IDBIndex': The index or its object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -202,6 +204,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted || m_objectStore-&gt;isDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'openKeyCursor' on 'IDBIndex': The index or its object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -269,6 +272,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (m_deleted || m_objectStore-&gt;isDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'get' on 'IDBIndex': The index or its object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -323,6 +327,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (m_deleted || m_objectStore-&gt;isDeleted()) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'getKey' on 'IDBIndex': The index or its object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesindexeddbclientIDBObjectStoreImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/Source/WebCore/Modules/indexeddb/client/IDBObjectStoreImpl.cpp        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -117,6 +117,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'openCursor' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -163,6 +164,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'get' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -194,6 +196,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'get' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -256,6 +259,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to store record in an IDBObjectStore: The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -347,6 +351,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'delete' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -397,6 +402,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'clear' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -415,6 +421,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'createIndex' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -469,6 +476,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'index' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -501,6 +509,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'deleteIndex' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -588,6 +597,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (m_deleted) {
</span><span class="cx">         ec.code = IDBDatabaseException::InvalidStateError;
</span><ins>+        ec.message = ASCIILiteral(&quot;Failed to execute 'count' on 'IDBObjectStore': The object store has been deleted.&quot;);
</ins><span class="cx">         return nullptr;
</span><span class="cx">     }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSIDBObjectStoreCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp (194594 => 194595)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp        2016-01-05 19:42:16 UTC (rev 194594)
+++ trunk/Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp        2016-01-05 19:57:07 UTC (rev 194595)
</span><span class="lines">@@ -32,6 +32,7 @@
</span><span class="cx"> #include &quot;JSIDBObjectStore.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;IDBBindingUtilities.h&quot;
</span><ins>+#include &quot;IDBDatabaseException.h&quot;
</ins><span class="cx"> #include &quot;IDBKeyPath.h&quot;
</span><span class="cx"> #include &quot;IDBObjectStore.h&quot;
</span><span class="cx"> #include &quot;JSDOMBinding.h&quot;
</span><span class="lines">@@ -113,7 +114,14 @@
</span><span class="cx">     IDBKeyPath keyPath;
</span><span class="cx">     JSValue keyPathValue = state.argument(1);
</span><span class="cx">     if (!keyPathValue.isUndefinedOrNull())
</span><del>-        keyPath = idbKeyPathFromValue(&amp;state, state.argument(1));
</del><ins>+        keyPath = idbKeyPathFromValue(&amp;state, keyPathValue);
+    else {
+        ExceptionCodeWithMessage ec;
+        ec.code = IDBDatabaseException::SyntaxError;
+        ec.message = ASCIILiteral(&quot;Failed to execute 'createIndex' on 'IDBObjectStore': The keyPath argument contains an invalid key path.&quot;);
+        setDOMException(&amp;state, ec);
+        return jsUndefined();
+    }
</ins><span class="cx"> 
</span><span class="cx">     if (state.hadException())
</span><span class="cx">         return jsUndefined();
</span></span></pre>
</div>
</div>

</body>
</html>