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

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

Issue 1364823002: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop [Measure] where done Created 5 years, 1 month 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/Source/modules/indexeddb/IDBRequestTest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
index ebac05538d87d8972218969e8fef1e0e6dbe03fa..d55ca470c5b134ae6d23ccba3a524afe47a18488 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/third_party/WebKit/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"
@@ -85,7 +86,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());
@@ -106,7 +107,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.)

Powered by Google App Engine
This is Rietveld 408576698