Index: LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js |
diff --git a/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js b/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js |
index e4126506ae31388a1dfe5fac1651d1c25fbcff99..48d0b5fd7a47c5010a1c736f6f850ee90a734966 100644 |
--- a/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js |
+++ b/LayoutTests/storage/indexeddb/resources/error-causes-abort-by-default.js |
@@ -29,7 +29,6 @@ function addData() |
function addMore() |
{ |
- |
request = evalAndLog("event.target.source.add({x: 'value', y: 'zzz'}, 'key')"); |
request.onsuccess = unexpectedSuccessCallback; |
request.addEventListener("error", preventTheDefault); |
@@ -52,6 +51,7 @@ function transactionCompleted() |
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')"); |
request.onsuccess = unexpectedSuccessCallback; |
request.onerror = allowDefault; |
+ expectError(); |
} |
function allowDefault() |
@@ -70,6 +70,7 @@ function transactionAborted1() |
store = evalAndLog("store = trans.objectStore('storeName')"); |
request = evalAndLog("store.add({x: 'value', y: 'zzz'}, 'key')"); |
request.onsuccess = unexpectedSuccessCallback; |
+ expectError(); |
debug("Omitting an onerror handler"); |
} |