Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js

Issue 1362953003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js
diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js
index e0a9cb5d2b13f97ea5ce8b42e4376400980b0682..0d5ca15940585f6f23c850a04b8430cc39924d90 100644
--- a/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js
+++ b/third_party/WebKit/LayoutTests/storage/indexeddb/resources/transaction-error.js
@@ -46,6 +46,7 @@ function testErrorFromRequest()
evalAndLog("request = trans.objectStore('storeName').add('value2', 'key')");
request.onsuccess = unexpectedSuccessCallback;
request.onerror = function() {
+ expectError();
shouldBeUndefined("request.result");
shouldBeNonNull("request.error");
shouldBe("request.error.name", "'ConstraintError'");
@@ -58,6 +59,7 @@ function testErrorFromRequest()
debug("trans.error.message = " + trans.error.message);
shouldBeNonNull("trans.error.message");
shouldBe("trans.error", "request_error");
+
testErrorFromException();
};
}
@@ -92,6 +94,7 @@ function testErrorFromException()
debug("trans.error.message = " + trans.error.message);
shouldBeNonNull("trans.error.message");
shouldBe("trans.error.name", "'AbortError'");
+
testErrorFromCommit();
};
}

Powered by Google App Engine
This is Rietveld 408576698