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

Unified Diff: Source/modules/indexeddb/IDBRequestTest.cpp

Issue 1182233003: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 3 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
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.idl ('k') | Source/modules/indexeddb/IDBTransaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBRequestTest.cpp
diff --git a/Source/modules/indexeddb/IDBRequestTest.cpp b/Source/modules/indexeddb/IDBRequestTest.cpp
index a8cf8dd9cc624766c44ce310e7ae722a292bcc1f..5c050996536cbe9cfc20a03c3d2ec4f210204e0d 100644
--- a/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/Source/modules/indexeddb/IDBRequestTest.cpp
@@ -29,7 +29,8 @@
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8BindingForTesting.h"
-#include "core/dom/DOMError.h"
+#include "core/dom/DOMException.h"
+#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/testing/NullExecutionContext.h"
#include "modules/indexeddb/IDBDatabaseCallbacks.h"
@@ -87,7 +88,7 @@ TEST_F(IDBRequestTest, EventsAfterStopping)
executionContext()->stopActiveDOMObjects();
// Ensure none of the following raise assertions in stopped state:
- request->onError(DOMError::create(AbortError, "Description goes here."));
+ request->onError(DOMException::create(AbortError, "Description goes here."));
request->onSuccess(Vector<String>());
request->onSuccess(nullptr, IDBKey::createInvalid(), IDBKey::createInvalid(), IDBValue::create());
request->onSuccess(IDBKey::createInvalid());
@@ -108,7 +109,7 @@ TEST_F(IDBRequestTest, AbortErrorAfterAbort)
// Now simulate the back end having fired an abort error at the request to clear up any intermediaries.
// Ensure an assertion is not raised.
- request->onError(DOMError::create(AbortError, "Description goes here."));
+ request->onError(DOMException::create(AbortError, "Description goes here."));
// Stop the request lest it be GCed and its destructor
// finds the object in a pending state (and asserts.)
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.idl ('k') | Source/modules/indexeddb/IDBTransaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698