| Index: LayoutTests/storage/indexeddb/resources/transaction-error.js
|
| diff --git a/LayoutTests/storage/indexeddb/resources/transaction-error.js b/LayoutTests/storage/indexeddb/resources/transaction-error.js
|
| index f0c839ff40c10ccfe5b954976db285178808705c..e0a9cb5d2b13f97ea5ce8b42e4376400980b0682 100644
|
| --- a/LayoutTests/storage/indexeddb/resources/transaction-error.js
|
| +++ b/LayoutTests/storage/indexeddb/resources/transaction-error.js
|
| @@ -46,6 +46,8 @@ function testErrorFromRequest()
|
| evalAndLog("request = trans.objectStore('storeName').add('value2', 'key')");
|
| request.onsuccess = unexpectedSuccessCallback;
|
| request.onerror = function() {
|
| + shouldBeUndefined("request.result");
|
| + shouldBeNonNull("request.error");
|
| shouldBe("request.error.name", "'ConstraintError'");
|
| evalAndLog("request_error = request.error");
|
| };
|
| @@ -68,6 +70,8 @@ function testErrorFromException()
|
| evalAndLog("request = trans.objectStore('storeName').add('value2', 'key')");
|
| request.onsuccess = unexpectedSuccessCallback;
|
| request.onerror = function() {
|
| + shouldBeUndefined("request.result");
|
| + shouldBeNonNull("request.error");
|
| shouldBe("request.error.name", "'ConstraintError'");
|
| debug("Throwing exception...");
|
|
|
|
|